crunchbase_GET: Query CrunchBase.

Description Usage Arguments Note Examples

View source: R/basic_actions.R

Description

Query CrunchBase via a GET request. All of the CrunchBase API's functionality comes through GET requests. This function collects any query parameters and GETs the resulting URL

Usage

1

Arguments

path

A query endpoint, presented either as a single string (e.g. "people" or "person/johndoe") or as a vector that drills down a hierarchy (e.g. c("person", "johndoe"))

...

any other query parameters, see https://developer.crunchbase.com/docs for details

Note

crunchbase_GET keeps track of API calls and will automatically pause a query for the appropriate amount of time in order to keep from making more than 44 calls per minute. Furthermore, results are cached for the length of your R session (using memoise). To make it easier to use the API collections filters (currently only applies to organization queries), you can pass data.frames directly to crunchbase_GET, as long as it contains columns named "type" and "uuid," as the locations and categories collections do.

Examples

1
2
x <- crunchbase_GET(c("people", "bill-gates"))
x <- crunchbase_GET("people/bill-gates")

tarakc02/rcrunchbase documentation built on Jan. 21, 2021, 7:32 p.m.