Learn R Programming

helsinki (version 1.0.6)

get_linkedevents: Access Helsinki Linked Events API

Description

Easy access to Helsinki Linked Events API

Usage

get_linkedevents(query, ...)

Value

Data frame or a list

Arguments

query

The API query as a string, for example "event", "category", "language", "place" or "keyword".

...

Additional parameters that narrow down the output (optional).

Author

Juuso Parkkinen louhos@googlegroups.com, Pyry Kantanen

Details

Complete list of possible query input: "keyword", "keyword_set", "place", "language", "organization", "image", "event", "search", "user".

With "..." the user can pass on additional parameters that depend on the chosen query input. For example, when performing a search (query = "search"), the search can be narrowed down with parameters such as:

  • q="konsertti" complete search, returns events that have the word "konsertti"

  • input="konse" partial search, returns events with words that contain "konse"

  • type="event" returns only "events"

  • start="2017-01-01" events starting on 2017-01-01 or after

  • end="2017-01-10" events ending on 2017-01-10 or before

For more detailed explanation, see http://api.hel.fi/linkedevents/v1/.

Examples

Run this code
if (FALSE) {
events <- get_linkedevents(query="search", q="teatteri", start="2020-01-01")
}

Run the code above in your browser using DataLab