Creates a new ORCID API client.
ORCID identifier (can include or omit the full URL)
Optional client configuration
Base URL for API requests
The ORCID identifier for this client instance
Request timeout in milliseconds
Static ReadonlyDEFAULT_Default headers for all ORCID API requests.
Fetches detailed work records for specified put codes.
Array of put codes to fetch (maximum 100)
Promise resolving to array of detailed work objects
Fetches detailed work records for given put codes.
OptionalputCodes: string | number | string[] | number[] | nullPut code(s) to fetch, or null/empty to fetch first 100 works
Promise resolving to array of detailed work objects
Fetches all work summaries associated with this ORCID ID.
Promise resolving to array of work summaries
Computes statistics for cached works.
Promise resolving to statistics object
Uses cached works from getWorks.
Gets works associated with the ORCID, with automatic caching.
Promise resolving to array of works
This method caches the results. First call fetches from API, subsequent calls return cached data. Use fetchWorks to bypass cache.
Groups cached works by a specified property.
Property key to group by
Promise resolving to object mapping group keys to work arrays
Uses cached works from getWorks.
ORCID API client for fetching and parsing works and work details.
Remarks
This class provides methods to interact with the ORCID public API, fetch publication data, and perform various filtering and analysis operations.
Example
Basic usage:
Example
With custom configuration: