CrossRefOrcid.get_orcid_profile

CrossRefOrcid.get_orcid_profile(orcid_id, section=None, verbose=False)[source]

Fetches the ORCID profile for a given ORCID ID.

Parameters:
  • orcid_id (str) – ORCID iD of the researcher.

  • section (str | None) – Specific section of the profile (e.g. ‘works’); defaults to None.

  • verbose (bool | int) – Whether to print relevant information in the console; defaults to False.

Returns:

A dictionary containing profile data, or None if an error occurs.

Return type:

dict | None

Examples:

>>> from pyhelpers.ops import CrossRefOrcid
>>> co = CrossRefOrcid()
>>> orcid_id = '0000-0002-6502-9934'
>>> profile_data = co.get_orcid_profile(orcid_id)
>>> list(profile_data.keys())
['orcid-identifier',
 'preferences',
 'history',
 'person',
 'activities-summary',
 'path']