datacommonsorg/docsite

API doc for new REST endpoint: /stat/set

Opened this issue · 0 comments

beets commented

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"}'