Developers page

Use the San Jose City API.

The API allows direct access to the data published in the San Jose City Open Data site from your applications. It uses a RESTful interface and returns the data in JSON format.

Data streams invoked through the API provide online and standarized access to data contained in HTML pages, XLS, CSV and other similar file types available on Internet.

Get an Auth Key!

The API requires a key to operate.

1

Get one and access to any resource through it.

Jump right into the API resource documentation to get in touch with the requests and methods you can use.

Create a Request

The API accepts RESTful requests.

2

A typical request will look like this:
http://api.data.sanjoseca.gov/api/v2/datastreams/PROCU-CARD-TRANS-23295/data.json/?auth_key=YOUR_API_KEY

A few things to note in the request above:

/api/v2/datastreams/
This is an invoke request, that will return a json response. The entire resources descriptions are available in the API resource documentation.

PROCU-CARD-TRANS-23295
This is the GUID of the data stream you are accessing. You will always find this GUID in the Data Stream Details page, making a data stream search through the API, or in many other places.

auth_key=YOUR_API_KEY
This is the key from step 1. You'll need it for every request.

Process your response

3

Your response will be returned as JSON. You can also obtain the response in XML, CSV and HTML..

To understand the format of the result field, read the API resource documentation.

Powered by Junar, the open data platform This material is Open Data

Loading. Please wait.