Texas Capital Report Data API

This Netlify site hosts JSON datasets used by Texas Capital Report and the National Data System.

Current Dataset

Ghost Integration

Your Ghost HTML search page retrieves ZIP data from:

https://data.texascapitalreport.com/texas-zips.json

Deployment

  1. Create a new empty folder.
  2. Place index.html in the folder.
  3. Place texas-zips.json in the same folder.
  4. Create a file named _headers (no extension) with the contents shown below.
  5. Zip the folder and drag the ZIP onto Netlify Deploy.
  6. Point data.texascapitalreport.com to the Netlify site.

_headers file

/texas-zips.json
  Access-Control-Allow-Origin: *
  Content-Type: application/json; charset=utf-8
  Cache-Control: public, max-age=3600

Once deployed, your Ghost pages can search all Texas ZIP codes without embedding thousands of records into the page.