Learn R Programming

rcrossref (version 0.3.0)

cr_search: Search the CrossRef Metatdata API.

Description

Search the CrossRef Metatdata API.

Usage

cr_search(query = NULL, doi = NULL, page = NULL, rows = NULL,
  sort = NULL, year = NULL, type = NULL, ...)

Arguments

query
Query terms.
doi
Search by a single DOI or many DOIs.
page
Page to return from results.
rows
Number of records to return.
sort
Sort either by "score" or "year".
year
Year to search.
type
Record type, e.g., "Journal Article" or "Journal Issue"
...
Named parameters passed on to GET

Details

See http://search.labs.crossref.org/help/api for more info on this Crossref API service.

See Also

cr_r, cr_citation, cr_search_free

Examples

Run this code
cr_search(query = c("renear", "palmer"))

# limit to 4 results
cr_search(query = c("renear", "palmer"), rows = 4)

# get more results than standard
cr_search(query = c("renear", "palmer"), rows = 40)

# sort results by score
cr_search(query = c("renear", "palmer"), rows = 10, sort = "score")

# sort results by year
cr_search(query = c("renear", "palmer"), rows = 10, sort = "year")

# get results for a certain year
cr_search(query = c("renear", "palmer"), year = 2010)

# search by a single DOI
cr_search(doi = "10.1890/10-0340.1")

# search for many DOI's
cr_search(doi = c("10.1890/10-0340.1","10.1016/j.fbr.2012.01.001",
                  "10.1111/j.1469-8137.2012.04121.x"))

# find all the records of articles from a journal ISBN
cr_search(query = "1461-0248", type="Journal Article")

# curl stuff
library('httr')
cr_search(doi = "10.1890/10-0340.1", config=verbose())
cr_search(query = c("renear", "palmer"), rows = 40, config=progress())

Run the code above in your browser using DataLab