search_placekey: Fetch place attributes by placekey

View source: R/search_placekey.R

search_placekeyR Documentation

Fetch place attributes by placekey

Description

Use the SafeGraph [Places API](https://docs.safegraph.com/reference#places-api) to fetch POI attributes for a given placekey.

Usage

search_placekey(placekey, key = Sys.getenv("SAFEGRAPH_SECRET"))

Arguments

placekey

A vector of placekeys. Must not exceed 100 values.

key

Your SafeGraph API key. Recommend to be stored as an environment variable called 'SAFEKEY_SECRET'.

Details

The SafeGraph places API will only return up to 4000 rows. This utilize your $200 credit. Each subsequent placekey will cost $0.05. You will not be charged if you have not set up payment.

Currently pagination and rate limiting for this API endpoint are not implemented.

If you do not have an API key, generate one on SafeGraph's [website](https://shop.safegraph.com/api/).


JosiahParry/placekey documentation built on March 17, 2023, 2:41 a.m.