Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API doc for new REST endpoint: /stat/set #151

Open
beets opened this issue Feb 18, 2021 · 0 comments
Open

API doc for new REST endpoint: /stat/set #151

beets opened this issue Feb 18, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request REST

Comments

@beets
Copy link
Contributor

beets commented Feb 18, 2021

This endpoint allows a user to get the value for a set of statistical variables, for a single date, across a set of places.

Endpoint: /stat/set (code)

Params:

  • places (list)
  • stat_vars (list)
  • date

Available as POST

Example: curl -X POST https://api.datacommons.org/stat/set -d '{ "places": ["geoId/06", "geoId/0649670", "country/FRA", "country/USA"], "stat_vars": ["Count_Person", "Count_CriminalActivities_CombinedCrime"], "date": "2017"}'

@beets beets added enhancement New feature or request documentation Improvements or additions to documentation REST labels Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request REST
Projects
None yet
Development

No branches or pull requests

2 participants