XML API - www.crossref.org/openurl/?id=doi:{doi}

Q

How to use XML API URL, www.crossref.org/openurl/?id=doi:{doi}, for DOI-to-metadata query?

✍: FYIcenter.com

A

XML API URL www.crossref.org/openurl/?id=doi:{doi} allows you to query for metadata of a given DOI and receive output in XML format. This is also called OpenURL query.

This XML API supports the following parameters:

pid={email} - Required. The email address to identify yourself.
id=doi:{doi} - Required. The DOI of the research paper.
noredirect=true - Required. Flag to stop redirect.
format={format} - Optional. The format for the returning XML: xsd_xml, unixsd or unixref.

Here is an example of how to use the XML API with the default format, which is a simple text format, not XML:

fyicenter$ curl 'https://www.crossref.org/openurl/?pid=email@address.com&id=doi:10.1577/H02-043&noredirect=true'

<?xml version="1.0" encoding="UTF-8"?>
<crossref_result xmlns="http://www.crossref.org/qrschema/2.0" 
 version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xsi:schemaLocation="http://www.crossref.org/qrschema/2.0 https://www.crossref.org/schema/crossref_query_output2.0.xsd">
  <query_result>
    <head>
      <doi_batch_id>none</doi_batch_id>
    </head>
    <body>
      <query status="resolved" fl_count="20">
        <doi type="journal_article">10.1577/H02-043</doi>
        <issn type="print">0899-7659</issn>
        <issn type="electronic">1548-8667</issn>
        <journal_title>Journal of Aquatic Animal Health</journal_title>
        <contributors>
        <contributor sequence="first" contributor_role="author">
        <given_name>John P.</given_name>
        <surname>Hawke</surname>
        </contributor>
        <contributor sequence="additional" contributor_role="author">
        <given_name>Ronald L.</given_name>
        <surname>Thune</surname>
        </contributor>
        <contributor sequence="additional" contributor_role="author">
        <given_name>Richard K.</given_name>
        <surname>Cooper</surname>
        </contributor>
        <contributor sequence="additional" contributor_role="author">
        <given_name>Erika</given_name>
        <surname>Judice</surname>
        </contributor>
        <contributor sequence="additional" contributor_role="author">
        <given_name>Maria</given_name>
        <surname>Kelly-Smith</surname>
        </contributor>
        </contributors>
        <volume>15</volume>
        <issue>3</issue>
        <first_page>189</first_page>
        <last_page>201</last_page>
        <year media_type="print">2003</year>
        <publication_type>full_text</publication_type>
        <article_title>Molecular and Phenotypic Characterization of Strains ...</article_title>
      </query>
    </body>
  </query_result>
</crossref_result>

 

OAI-PMH API - oai.crossref.org/oai

XML API - doi.crossref.org/search/doi?doi={doi}

Crossref.org DOI Database

⇑⇑ DOI - Frequently Asked Questions

2022-10-08, 257👍, 0💬