SyntaxError: JSON.parse in Crossref API

I’m trying to retrieval metadata from this item (Crossref Metadata Search) with the REST API and get the error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data (https://0-api-crossref-org.libus.csd.mu.edu/v1/works/10.15252/embj.2020105043)

The same happen with https://0-api-crossref-org.libus.csd.mu.edu/v1/works/10.15252/embj.2020105043

I don’t see where the problem can be. Any ideas to solve it?

Thanks in advanced,
Lorenzo Bermúdez

1 Like

Hi @lbermudez ,

Thanks for your message.

We recently migrated the backend of the Public pool of the REST API to Elasticsearch (from Solr), as you can read more about here: Behind the scenes improvements to the REST API - Crossref.

Looks like we may have a bug with how those new DOIs are being ingested into the Public pool of the REST API. They’re present in the Polite pool (when identifying myself with a mailto parameter):

https://0-api-crossref-org.libus.csd.mu.edu/works/10.5821/ace.16.46.9524?mailto=support@crossref.org
https://0-api-crossref-org.libus.csd.mu.edu/works/10.15252/embj.2020105043?mailto=support@crossref.org

I’ve opened an issue with our technical team to investigate: DOIs missing in the Public pool of the REST API - please push! (#1387) · Issues · crossref / Issue Tracker · GitLab

Please let me know if you have any additional questions.

Kind regards,
Isaac

1 Like

Hi @lbermudez ,

These DOIs are now appearing in the Public pool of the API, as you can see here:

https://0-api-crossref-org.libus.csd.mu.edu/works/10.5821/ace.16.46.9524
https://0-api-crossref-org.libus.csd.mu.edu/works/10.15252/embj.2020105043

My best,
Isaac

1 Like

Thank you so much for your help @ifarley

1 Like