socrata / discuss

Discuss all the things!
https://dev.socrata.com
Apache License 2.0
10 stars 3 forks source link

[data.sfgov.org/fjki-2fab] Question about "San Francisco COVID-19 Data and Reports" #121

Open vishishttiwari opened 4 years ago

vishishttiwari commented 4 years ago

API Docs: https://dev.socrata.com/foundry/data.sfgov.org/fjki-2fab

This always keeps giving me the following error: 400 Bad Request { "error": true, "message": "Non-tabular datasets do not support rows requests." }.

This is when we use the following cURL command: curl --location --request GET 'https://data.sfgov.org/resource/fjki-2fab.json' \ --header 'Accept: application/json' \ --header 'app_token: oYapjYeKLzKCHRGE2vTaFn14N' \ --header 'limit: 20' \ --header 'Content-Type: application/json'

znep commented 4 years ago

Hi Vishisht,

Sorry for the excessively delayed response. https://data.sfgov.org/stories/s/San-Francisco-COVID-19-Data-and-Reports/fjki-2fab is not a dataset itself so it can't be queried using Socrata dataset APIs. Some of the data linked is in datasets that can be queried, for example if you follow the link to https://data.sfgov.org/stories/s/dak2-gvuj (COVID-19 Cases and Deaths) then links to "source data" (eg. https://data.sfgov.org/COVID-19/COVID-19-Cases-Summarized-by-Date-Transmission-and/tvq9-ec9w / https://dev.socrata.com/foundry/data.sfgov.org/tvq9-ec9w )

I have opened an internal ticket to update https://dev.socrata.com/foundry/data.sfgov.org/fjki-2fab make that clear. Do you recall where you found the link to https://dev.socrata.com/foundry/data.sfgov.org/fjki-2fab to begin with?

Thanks,

Marc