Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to get collaborator information

115 views
Skip to first unread message

Jesús Miguel Arenas Cebreros

unread,
Jul 15, 2024, 4:04:00 PM7/15/24
to ORCID API Users
Hi! I am using the ORCID API to gather information relating to the works of multiple investigators. Most of the information is included in the .json output files but I'm missing the contributors section. I checked the sample files from their GitHub and contributor information is present.

Here's the shell code I'm running to get the json files (I changed the real value of authtoken to my key and ORCID-ID for the investigator's ID): curl -H 'Content-Type: application/orcid+json' -H 'Authorization: Bearer authtoken' 'https://pub.orcid.org/v3.0/ORCID-ID/works' -i -o output.json

Both the .xml and .json files are generated properly but they are missing contributor information.

Any advise on what could be the cause of this and a possible solution to the issue?

Jordan Holt

unread,
Jul 22, 2024, 3:36:05 PM7/22/24
to ORCID API Users

Hello,

Thanks for your question.

The /works endpoint provides a summary of works associated with an ORCID iD, but it does not include detailed information about each work. This detailed information, including work contributors if available, is found in the /work endpoint.

Please note that contributor information is optional and may not always be present in the detailed output.

In the code you've shared, you are fetching the summary of works (/works). To retrieve the contributor details, you'll need to make a separate API call for each work item using its specific put-code (/work/[PUT-CODE]).

For example:

curl -i -H "Accept: application/vnd.orcid+json" -H 'Authorization: Bearer [ACCESS TOKEN]' 'https://pub.orcid.org/v3.0/[ORCID-ID]/work/[PUT-CODE]'

Our read and write samples generally have complete metadata, including contributor information, which you can use as a reference.

Reply all
Reply to author
Forward
0 new messages