Developers

SODA APIs

The Socrata Open Data API (SODA) allows software developers to access data hosted in Socrata sites such as Data.Medicare.gov. In this platform, every dataset is automatically provided with a simple Application Programming Interface, or API (i.e. API endpoint), ensuring access to every dataset.

For more information and examples on how to use the SODA API, visit the Developer Documentation.

API Endpoints

To start accessing a dataset, users need to know its API access endpoint. The API access endpoint for a given dataset can be found by clicking the Export > API link located above each interactive dataset.

a screen shot showing the API endpoint URL under Export tab

In general, the endpoint for every dataset is by default hosted under /resource. Datasets are addressable by that dataset’s unique identifier, which users can locate at the end of any dataset URL.

Available Data Formats

The SODA API supports a number of different formats, including JSON, XML, CSV, and RDF. To change the output format of a request, simply change the extension you use on the resource. The JSON format is the most commonly used format for API responses, as it is the most compact and efficient format provided by Socrata.