3 ms·
The standard way for getting the actual PDF from a DOI, when it's a Crossref DOI (which it probably is) is to use the full-text link, available in the CrossRef
by afandian 11y ago
The standard way for getting the actual PDF from a DOI, when it's a Crossref DOI (which it probably is) is to use the full-text link, available in the CrossRef API.
For DOI 10.1155/2010/963926
http://api.crossref.org/works/10.1155/2010/963926 http://api.crossref.org/works/10.1155/2010/963926
From the returned JSON message -> link -> there's the PDF!
[
{
intended-application: "text-mining",
content-version: "vor",
content-type: "application/pdf",
URL: "http://downloads.hindawi.com/journals/jo/2010/963926.pdf"
},
{
intended-application: "text-mining",
content-version: "vor",
content-type: "application/xml",
URL: "http://downloads.hindawi.com/journals/jo/2010/963926.xml"
}
]
Publishers are still getting round to including the full-text links in metadata, but there are 16,000,000 DOIs with such data. Not all are open-access however.
When a PDF has Crossref CrossMark, the DOI is embedded in the metadata (I can't say how but I can find out)
http://www.plosone.org/article/fetchObject.action?uri=info:doi/10.1371/journal.pone.0138493&representation=PDF http://www.plosone.org/article/fetchObject.action?uri=info:d...
Drop us a line on labs@crossref.org
- IanCal 11y agoThanks, I'd not thought of the crossref api for this. I use the API pretty heavily for other things though, really good work! Just noticed this part of the response: "affiliation": [], How well filled in is that? I find it's currently a really poorly provided thing on many sites (although there are metatags, they're often wrong). > When a PDF has Crossref CrossMark, the DOI is embedded in the metadata (I can't say how but I can find out) That's likely to come in really useful, thanks.
- afandian 11y agohttp://api.crossref.org/works?filter=has-affiliation:true => total-results: 964,696 Do ask us questions on labs@crossref.org or raise a ticket on https://github.com/CrossRef/rest-api-doc https://github.com/CrossRef/rest-api-doc