Skip to content

Instantly share code, notes, and snippets.

@jvwong
Last active May 23, 2023 18:27
Show Gist options
  • Save jvwong/2a18ed724a8e7fdd9fe06c16283aedf7 to your computer and use it in GitHub Desktop.
Save jvwong/2a18ed724a8e7fdd9fe06c16283aedf7 to your computer and use it in GitHub Desktop.
Crossref: Query
QUERY="Inositol pyrophosphate dynamics reveals control of the yeast PHO starvation program through 1,5-IP8 and the SPX domain of Pho81"
curl --get --data-urlencode "query.bibliographic=${QUERY}" "https://api.crossref.org/works/?filter=type:journal-article,type:posted-content&rows=1" | jq '. | { title: .message.items[0].title[0], abstract: .message.items[0].abstract, doi: .message.items[0].DOI, publisher: .message.items[0].publisher }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment