DOI Content in Formatted Text Citation

Q

How to represent DOI content in Formatted Text Citation style?

✍: FYIcenter.com

A

You can use the DOI Content Negotiation service provided by doi.org to represent the content of a given DOI in Formatted Text Citation style.

The Formatted Text Citation style is triggered by the "text/x-bibliography" MIME type as shown this HTTP request syntax:

GET https://doi.org/{doi} HTTP/1.1
Accept: text/x-bibliography

Here is an example of how to use the DOI Content Negotiation service to get the Formatted Text Citation of a given DOI:

fyicenter$ curl -H "Accept: text/x-bibliography" \
  'https://doi.org/10.1126/science.169.3946.635'

<html><head><title>Handle Redirect</title></head>
<body>
<a href="https://api.crossref.org/v1/works/10.1126%2Fscience.169.3946.635/transform">
https://api.crossref.org/v1/works/10.1126%2Fscience.169.3946.635/transform</a>
</body></html>

Okay, doi.org is not serving this Content Negotiation request directly. It is redirecting you to api.crossref.org to get the response.

You can add the -L option to let "curl" follow the redirected location. api.crossref.org will return you the DOI content in Formatted Text Citation style.

fyicenter$ curl -LH "Accept: text/x-bibliography" \
  'https://doi.org/10.1126/science.169.3946.635'

Frank, H. S. (1970). The Structure of Ordinary Water. Science, 169(3946), 635–641. 
https://doi.org/10.1126/science.169.3946.635

 

DOI Content in BibTeX (Bibliography for LaTeX)

What Is DOI Content Negotiation

DOI Content Negotiation at doi.org

⇑⇑ DOI - Frequently Asked Questions

2022-10-06, 244👍, 0💬