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?
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.