Using the JSON Response

For every returned html response is also an accompanying json response you can use for your projects. To get to the json response just switch search.html to search.json in your url. You can use this json response client-side or server-side.

Note, if you’re using client-side javascript you’ll need to use jsonp to avoid getting a CORS error. jQuery automatically pads the json into jsonop through a callback, which is why I used it in this simple example, but you can use whatever you want.

Try it out

Try searching for the terms "Richmond", "Strategic plan" or "!noshow."

Matching results: