SheetJSON.com
Convert Google Spreadsheets to JSON API endpoints instantly. No signup required. No dumpster diving for an API key.
Quick Start
- Set your spreadsheet access to "Anyone with the link."
- Ensure the first row contains the column headers
- Replace
`docs.google.com`with`sheetjson.com`in the URL
Example
Try this example of a Food Truck directory:
Example Spreadsheet:
https://docs.google.com/spreadsheets/d/1olparkGzvli14s-Jn-uVX66vhAf64Fpt78e7pfQPtQ8/edit?gid=1971483596
API Endpoint:
https://sheetjson.com/spreadsheets/d/1olparkGzvli14s-Jn-uVX66vhAf64Fpt78e7pfQPtQ8/edit?gid=1971483596
What about /edit?
Google Docs has several URL suffixes that indicate the mode of a document: /edit for editing, /view for viewing, and /preview for previewing. These suffixes can be ignored. You can keep or omit them.
Sample Response:
[
{
"truck_id": "FT003",
"truck_name": "Pasta.exe",
"cuisine_type": "Italian",
"signature_dish": "Code Red Ravioli",
"price_range": "$$",
"current_location": "Silicon Valley Mall",
"is_open": true,
"rating": 4.7,
"last_review_date": "2024-01-15",
"weekly_schedule": "Wed-Sun: 12:00-22:00",
"close_time": "22:00",
"updated_at": "11/13/2024 20:10:08"
},
// ... more entries
]
Features
- 🚀 Frictionless: No registration or API keys required
- 🔄 Fresh: Changes to your sheet show up within about 5 minutes
- 🏎️ Fast: Served from the cache of Cloudflare's global edge network
Accessing Specific Sheets
Use the gid query param to access different tabs in the spreadsheet:
https://sheetjson.com/spreadsheets/d/{spreadsheetId}?gid=1234
Errors
Successful responses are a JSON array of rows. Errors use a non-200 status and this shape:
{ "error": "message", "code": "not_public", "docs": "https://sheetjson.com/#error-not-public" }
404 not_public: The sheet does not exist, or it is not shared as "Anyone with the link". In Google Sheets, open Share and set General access to "Anyone with the link".404 invalid_url: The path is not a sheet URL. Use/spreadsheets/d/{spreadsheetId}?gid={gid}.400 invalid_gid:gidmust be the number aftergid=in the sheet URL. A gid that does not exist returns another tab of the sheet, because that is how Google responds.413 too_large: The sheet is too large to convert. Split it into smaller tabs.405 method_not_allowed: Only GET, HEAD and OPTIONS are supported.
For agents and tools: llms.txt, openapi.json.
Use Cases
- 🏎️ Rapid prototyping
- 📊 Dashboard data sources
- 💻 Simple CMS
- 🌐 Access public datasets
Limitations
- Only works with public spreadsheets
- Responses are cached: edits can take up to about 5 minutes to appear
- Reasonable rate limits may apply
Credits
Parsing is based on public-google-sheets-parser. Hosted on Cloudflare Workers.
Terms of Use
This service is provided as-is without any guarantees.