Function: useAuthorProfile()
useAuthorProfile(
did):UseQueryResult<{affiliation:string;affiliations:object[];arxivAuthorId:string;avatar:string;bio:string;dblpId:string;did:string;displayName:string;fields:string[];googleScholarId:string;handle:string;nameVariants:string[];openAlexId:string;openReviewId:string;orcid:string;pdsEndpoint:string;previousAffiliations:object[];researchKeywords:object[];scopusAuthorId:string;semanticScholarId:string;website:string; },Error>
Defined in: web/lib/hooks/use-author.ts:121
Fetches just the author's profile information (without metrics).
Parameters
did
string
The author's DID
Returns
UseQueryResult<{ affiliation: string; affiliations: object[]; arxivAuthorId: string; avatar: string; bio: string; dblpId: string; did: string; displayName: string; fields: string[]; googleScholarId: string; handle: string; nameVariants: string[]; openAlexId: string; openReviewId: string; orcid: string; pdsEndpoint: string; previousAffiliations: object[]; researchKeywords: object[]; scopusAuthorId: string; semanticScholarId: string; website: string; }, Error>
Query result with author profile
Remarks
Uses the same endpoint but extracts only the profile portion. Useful when you don't need metrics data.
Example
const { data: profile } = useAuthorProfile('did:plc:abc123');