Skip to content

Instantly share code, notes, and snippets.

@pcj
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcj/9c6a0ff56b7467ad7364 to your computer and use it in GitHub Desktop.
Save pcj/9c6a0ff56b7467ad7364 to your computer and use it in GitHub Desktop.
CrossRef API output
  • Output from api.crossref.org is not strictly CSL-JSON, but looking at the docs they don't claim it (container-title, title, ISSN should be a string, not Array).

  • Output from dx.doi.org does produce CSL-JSON output.

{
"message": {
"DOI": "10.1148/radiology.206.3.9494508",
"ISSN": [
"0033-8419",
"1527-1315"
],
"URL": "http://dx.doi.org/10.1148/radiology.206.3.9494508",
"author": [
{
"family": "Rubin",
"given": "G D"
},
{
"family": "Paik",
"given": "D S"
},
{
"family": "Johnston",
"given": "P C"
},
{
"family": "Napel",
"given": "S"
}
],
"container-title": [
"Radiology"
],
"deposited": {
"date-parts": [
[
2014,
7,
8
]
],
"timestamp": 1404777600000
},
"indexed": {
"date-parts": [
[
2015,
2,
11
]
],
"timestamp": 1423636126572
},
"issue": "3",
"issued": {
"date-parts": [
[
1998,
3
]
]
},
"member": "http://id.crossref.org/member/1577",
"page": "823-829",
"prefix": "http://id.crossref.org/prefix/10.1148",
"publisher": "Radiological Society of North America (RSNA)",
"reference-count": 0,
"score": 1.0,
"source": "CrossRef",
"subject": [
"Radiology Nuclear Medicine and imaging"
],
"subtitle": [],
"title": [
"Measurement of the aorta and its branches with helical CT."
],
"type": "journal-article",
"volume": "206"
},
"message-type": "work",
"message-version": "1.0.0",
"status": "ok"
}
{
"DOI": "10.1148/radiology.206.3.9494508",
"ISSN": [
"0033-8419",
"1527-1315"
],
"URL": "http://dx.doi.org/10.1148/radiology.206.3.9494508",
"author": [
{
"family": "Rubin",
"given": "G D"
},
{
"family": "Paik",
"given": "D S"
},
{
"family": "Johnston",
"given": "P C"
},
{
"family": "Napel",
"given": "S"
}
],
"container-title": "Radiology",
"deposited": {
"date-parts": [
[
2014,
7,
8
]
],
"timestamp": 1404777600000
},
"indexed": {
"date-parts": [
[
2015,
2,
11
]
],
"timestamp": 1423636126572
},
"issue": "3",
"issued": {
"date-parts": [
[
1998,
3
]
]
},
"member": "http://id.crossref.org/member/1577",
"page": "823-829",
"prefix": "http://id.crossref.org/prefix/10.1148",
"publisher": "Radiological Society of North America (RSNA)",
"reference-count": 0,
"score": 1.0,
"source": "CrossRef",
"subject": [
"Radiology Nuclear Medicine and imaging"
],
"subtitle": [],
"title": "Measurement of the aorta and its branches with helical CT.",
"type": "journal-article",
"volume": "206"
}
get_api:
curl -X GET -H "Content-Type: application/json" http://api.crossref.org/works/10.1148/radiology.206.3.9494508 | python -m json.tool
get_dx:
curl -LH "Accept: application/citeproc+json" http://dx.doi.org/10.1148/radiology.206.3.9494508 | python -m json.tool
<PubmedArticle>
<MedlineCitation Owner="NLM" Status="MEDLINE">
<PMID Version="1">9494508</PMID>
<DateCreated>
<Year>1998</Year>
<Month>03</Month>
<Day>26</Day>
</DateCreated>
<DateCompleted>
<Year>1998</Year>
<Month>03</Month>
<Day>26</Day>
</DateCompleted>
<DateRevised>
<Year>2013</Year>
<Month>11</Month>
<Day>21</Day>
</DateRevised>
<Article PubModel="Print">
<Journal>
<ISSN IssnType="Print">0033-8419</ISSN>
<JournalIssue CitedMedium="Print">
<Volume>206</Volume>
<Issue>3</Issue>
<PubDate>
<Year>1998</Year>
<Month>Mar</Month>
</PubDate>
</JournalIssue>
<Title>Radiology</Title>
<ISOAbbreviation>Radiology</ISOAbbreviation>
</Journal>
<ArticleTitle>Measurement of the aorta and its branches with helical CT.</ArticleTitle>
<Pagination>
<MedlinePgn>823-9</MedlinePgn>
</Pagination>
<Abstract>
<AbstractText>Contiguous orthonormal arterial cross sections, segment lengths, and curvature were semiautomatically quantified from helical computed tomographic (CT) angiographic data in phantoms and two patients. Measurements of mean diameter and curvature correlated with reference values (r2 = .99), and mean fractional errors were 0.07 and 0.06 for mean diameter and curvature measurements, respectively. Volumetric measurement showed a potential to increase the accuracy, precision, and diagnostic utility of CT angiography.</AbstractText>
</Abstract>
<AuthorList CompleteYN="Y">
<Author ValidYN="Y">
<LastName>Rubin</LastName>
<ForeName>G D</ForeName>
<Initials>GD</Initials>
<AffiliationInfo>
<Affiliation>Department of Radiology, Stanford University School of Medicine, CA 94305-5105, USA.</Affiliation>
</AffiliationInfo>
</Author>
<Author ValidYN="Y">
<LastName>Paik</LastName>
<ForeName>D S</ForeName>
<Initials>DS</Initials>
</Author>
<Author ValidYN="Y">
<LastName>Johnston</LastName>
<ForeName>P C</ForeName>
<Initials>PC</Initials>
</Author>
<Author ValidYN="Y">
<LastName>Napel</LastName>
<ForeName>S</ForeName>
<Initials>S</Initials>
</Author>
</AuthorList>
<Language>eng</Language>
<GrantList CompleteYN="N">
<Grant>
<GrantID>1P41-RR09784</GrantID>
<Acronym>RR</Acronym>
<Agency>NCRR NIH HHS</Agency>
<Country>United States</Country>
</Grant>
<Grant>
<GrantID>1R01CA72023</GrantID>
<Acronym>CA</Acronym>
<Agency>NCI NIH HHS</Agency>
<Country>United States</Country>
</Grant>
<Grant>
<GrantID>R01HL50305</GrantID>
<Acronym>HL</Acronym>
<Agency>NHLBI NIH HHS</Agency>
<Country>United States</Country>
</Grant>
</GrantList>
<PublicationTypeList>
<PublicationType UI="D016428">Journal Article</PublicationType>
<PublicationType UI="D013485">Research Support, Non-U.S. Gov't</PublicationType>
<PublicationType UI="D013487">Research Support, U.S. Gov't, P.H.S.</PublicationType>
</PublicationTypeList>
</Article>
<MedlineJournalInfo>
<Country>UNITED STATES</Country>
<MedlineTA>Radiology</MedlineTA>
<NlmUniqueID>0401260</NlmUniqueID>
<ISSNLinking>0033-8419</ISSNLinking>
</MedlineJournalInfo>
<ChemicalList>
<Chemical>
<RegistryNumber>0</RegistryNumber>
<NameOfSubstance UI="D003287">Contrast Media</NameOfSubstance>
</Chemical>
<Chemical>
<RegistryNumber>4419T9MX03</RegistryNumber>
<NameOfSubstance UI="D007472">Iohexol</NameOfSubstance>
</Chemical>
</ChemicalList>
<CitationSubset>AIM</CitationSubset>
<CitationSubset>IM</CitationSubset>
<MeshHeadingList>
<MeshHeading>
<DescriptorName MajorTopicYN="N" UI="D000328">Adult</DescriptorName>
</MeshHeading>
<MeshHeading>
<DescriptorName MajorTopicYN="N" UI="D001012">Aorta, Abdominal</DescriptorName>
<QualifierName MajorTopicYN="Y" UI="Q000530">radiography</QualifierName>
</MeshHeading>
<MeshHeading>
<DescriptorName MajorTopicYN="N" UI="D017544">Aortic Aneurysm, Abdominal</DescriptorName>
<QualifierName MajorTopicYN="Y" UI="Q000530">radiography</QualifierName>
</MeshHeading>
<MeshHeading>
<DescriptorName MajorTopicYN="N" UI="D001027">Aortography</DescriptorName>
<QualifierName MajorTopicYN="N" UI="Q000295">instrumentation</QualifierName>
<QualifierName MajorTopicYN="N" UI="Q000379">methods</QualifierName>
</MeshHeading>
<MeshHeading>
<DescriptorName MajorTopicYN="N" UI="D003287">Contrast Media</DescriptorName>
</MeshHeading>
<MeshHeading>
<DescriptorName MajorTopicYN="N" UI="D005240">Feasibility Studies</DescriptorName>
</MeshHeading>
<MeshHeading>
<DescriptorName MajorTopicYN="N" UI="D006801">Humans</DescriptorName>
</MeshHeading>
<MeshHeading>
<DescriptorName MajorTopicYN="N" UI="D007472">Iohexol</DescriptorName>
<QualifierName MajorTopicYN="N" UI="Q000176">diagnostic use</QualifierName>
</MeshHeading>
<MeshHeading>
<DescriptorName MajorTopicYN="N" UI="D008297">Male</DescriptorName>
</MeshHeading>
<MeshHeading>
<DescriptorName MajorTopicYN="N" UI="D008955">Models, Cardiovascular</DescriptorName>
</MeshHeading>
<MeshHeading>
<DescriptorName MajorTopicYN="N" UI="D019047">Phantoms, Imaging</DescriptorName>
</MeshHeading>
<MeshHeading>
<DescriptorName MajorTopicYN="N" UI="D014057">Tomography, X-Ray Computed</DescriptorName>
<QualifierName MajorTopicYN="N" UI="Q000295">instrumentation</QualifierName>
<QualifierName MajorTopicYN="Y" UI="Q000379">methods</QualifierName>
</MeshHeading>
</MeshHeadingList>
</MedlineCitation>
<PubmedData>
<History>
<PubMedPubDate PubStatus="pubmed">
<Year>1998</Year>
<Month>3</Month>
<Day>12</Day>
</PubMedPubDate>
<PubMedPubDate PubStatus="medline">
<Year>1998</Year>
<Month>3</Month>
<Day>12</Day>
<Hour>0</Hour>
<Minute>1</Minute>
</PubMedPubDate>
<PubMedPubDate PubStatus="entrez">
<Year>1998</Year>
<Month>3</Month>
<Day>12</Day>
<Hour>0</Hour>
<Minute>0</Minute>
</PubMedPubDate>
</History>
<PublicationStatus>ppublish</PublicationStatus>
<ArticleIdList>
<ArticleId IdType="pubmed">9494508</ArticleId>
<ArticleId IdType="doi">10.1148/radiology.206.3.9494508</ArticleId>
</ArticleIdList>
</PubmedData>
</PubmedArticle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment