Example
Store locations: from CSV to API
Power a store finder or opening-hours widget.
In short
Use 5 columns with "store_id" as the key column and name, city as searchable fields; upload the CSV, check the inferred types, create an API key and query rows over HTTPS.
Example CSV
store_id,name,city,opening_hours,phone
S12,"Harbour Lane","Example City","Tue-Sat 7-16","+1 555 0100"
Columns and types
| Column | Type | Example |
|---|---|---|
| store_id | text | S12 |
| name | text | Harbour Lane |
| city | text | Example City |
| opening_hours | text | Tue-Sat 7-16 |
| phone | text | +1 555 0100 |
Key column: store_id (unique per row). Searchable: name, city.
Example query
GET /v1/data/datasets/{id}/records?filter[city]=Example%20City
Authorization: Bearer <your API key>
Your dataset page shows the exact URL.
Step by step
- Upload. Store locations CSV.
- Schema. Key: store_id.
- Query. Create a key, call it.
Questions and answers
How do I refresh the store locations?
Upload the new file to the same dataset.
Who can read the store locations API?
Only callers with a key you created.