Package 'diezeit'

Title: R Interface to the ZEIT ONLINE Content API
Description: A wrapper for the ZEIT ONLINE Content API, available at <http://developer.zeit.de>. 'diezeit' gives access to articles and corresponding metadata from the ZEIT archive and from ZEIT ONLINE. A personal API key is required for usage.
Authors: Christian Graul
Maintainer: Christian Graul <[email protected]>
License: MIT + file LICENSE
Version: 0.1-0
Built: 2024-11-04 03:02:39 UTC
Source: https://github.com/chgrl/diezeit

Help Index


View changes notes.

Description

changes brings up the NEWS file of the package.

Usage

changes(pkg = "diezeit")

Arguments

pkg

Set to the default "diezeit". Other packages make no sense.

Examples

## Not run: 
changes()

## End(Not run)

ZEIT ONLINE Content API

Description

A wrapper for the ZEIT ONLINE Content API, available at http://developer.zeit.de. It gives access to articles and corresponding metadata from the ZEIT archive and from ZEIT ONLINE. A personal API key is required for usage.

Details

Accessing the ZEIT archive requires an API key, that can be requested at http://developer.zeit.de/quickstart. Registration is free and allows for API-Access with a limit of 10,000 requests per day. If you do not want to enter your key for each R session, put the following in your .Renviron or .Rprofile file: ZEIT_KEY=PUTYOURKEYHERE

See Also

zeit_client for client information and usage, zeit_search for ZEIT archive search or zeit_get to get content from the ZEIT archive.


Observe your usage

Description

zeit_client does not provide content per se, but lets you get information about your API usage.

Usage

zeit_client(print = TRUE)

Arguments

print

if TRUE (default), the client information is printed.

Value

a list of information about the client and API usage

Examples

## Not run: 
zeit_client()

## End(Not run)

Get detailled content from the ZEIT archive

Description

zeit_get will get you all available metadata for a specific item.

Usage

zeit_get(endpoint, id, fields, print = TRUE)

Arguments

endpoint

one of author, content, department, keyword, product or series – see zeit_search.

id

item id.

fields

partially select output fields, as string value or vector of strings for multiple fields.

print

if TRUE (default) the meta data are printed.

Details

Endpoints

The API is structured into several endpoints that provide specific functionalities:

author content by this author
content get content by ID
department content from this department
keyword content about this keyword
product content from this product
series content in this series

Value

List of metadata items.

Source

http://developer.zeit.de/docs/

Examples

## Not run: 
# get article metadata by ID
zeit_get("content", "3Ed7KYJOO2MXu5SQtnudQA")

# partial selection of output fields
zeit_get("content", "3Ed7KYJOO2MXu5SQtnudQA",
  fields=c("title", "release_date", "href"))

# hide result
article.meta <- zeit_get("content", "3Ed7KYJOO2MXu5SQtnudQA", print=FALSE)

## End(Not run)