API Learning Hub

We want everybody to have access to the metadata in our API but we also acknowledge that this is not a trivial task and some help does not hurt. Here we will collect some of the tools and resources that our team prepare and that you can freely use to start your metadata exploring adventure.

Choose your path:

First steps

  • API 101 for publishers, researchers, and librarians with Postman and Crossref: Postman offers an friendly interface to build and modify your API queries. In this collection you will find templates to which you can add or modify the parameters of your choice.
  • Intro to Crossref API using code: if your aim is to create workflows to download, analyze, and visualize data, you will probably want to create programs and scripts. We currently have available the following tutorials using R and/or Python that you can use and modify to your convenience.

Retrieve specific metadata

  • Crossref API for funding data: how to query data from the funders endpoint and grant-type records.

  • Get Crossref citations: this project contains a Jupyter notebook that shows how to compare citation counts from different Crossref endpoints.

  • Get journal-level metadata from Crossref’s API using R: how to retrieve journal-level metadata from a list of ISSN.

  • Cursor-based pagination using R: how to retrieve long lists of records using cursors.

Retrieve all the metadata

You have an alternative to the REST API if your goal is to obtain the entire body of Crossref’s records. With the public data file you have access to every DOI ever registered with Crossref. Learn more about the Public Data File

Some convenient tools:

  • API cheatsheet: we prepared a quick-reference sheet that you can use to get started with building your queries.

  • JSON-file viewer: When you make a request to the REST API you will get a JSON file in the output. If you are making requests from your web browser and depending on its version, perhaps you will need a JSON-viewer plugin. For example, click this simple request. If you see a string of seemingly disorganized text, you will need to install a plugin. Alternatively, you can use other viewers such as JSON hero, which provides an extra layer of interactivity.

Page owner: Luis Montilla   |   Last updated 2024-March-07