2

Is there a Socrata API for reading a site's catalog of datasets?

For example, for Boston, is there an API equivalent of this page?

Ed Staub
  • 15,480
  • 3
  • 61
  • 91

2 Answers2

2

Try this

https://data.cityofboston.gov/data.json

That should have every dataset in JSON format.

Manraj Singh
  • 143
  • 4
  • Thanks again. How'd you figure _this_ one out? – Ed Staub Apr 22 '15 at 00:05
  • I had asked a question similar to yours at the time Socrata was doing a demo for our agency. It isn't documented on their API page. – Manraj Singh Apr 22 '15 at 19:24
  • One thing to watch out for is that the format of the `data.json` and the `/api/views/abcd-1234.json` are quite different from each other. For instance, tags are "keywords" in the data.json. – Steve Bennett Jan 06 '17 at 03:51
0

There is also a (beta) API available for catalog reading/searching, which may be easier to filter/parse than the data.json file (but either would work!). You can find information about this here: http://labs.socrata.com/docs/search.html.

  • Whilst this may theoretically answer the question, [it would be preferable](//meta.stackoverflow.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – Enamul Hassan May 02 '16 at 23:52
  • @manetsus - Are you a bot, or do you really want HoogieMan to replicate the beta, evolving API docs here? This is the kind of mindless regurgitation of SO rules that gives me conniptions. – Ed Staub May 06 '16 at 01:32
  • @EdStaub "You can find information..." I just ask to add more 'information' here as I got it in review queue. However, now, it seems to me that your question is off-topic in stackoverflow as you are asking for an API. Thanks. – Enamul Hassan May 06 '16 at 01:41