Multiple sheets
By default, the first sheet is selected, however, if you want to select another one, add the sheet attribute and specify the sheet name.
When the sheet is not found, you will receive a 404 error with the following JSON response. This applies to all read endpoints (GET /api/v1/{API_ID}, /search, /search_or, /count and /csv) as well as to deleting rows with DELETE /api/v1/{API_ID}/{column}/{value}, which does not modify any data in that case. The /csv endpoint also returns this JSON error instead of a CSV file.
{
"error": "Sheet not found."
}
Deleting a sheet (tab) that does not exist with DELETE /api/v1/{API_ID}/sheet returns a 400 error instead, see Delete a sheet.
Here are some examples:
GET https://sheetdb.io/api/v1/58f61be4dda40?sheet=sheet2
POST https://sheetdb.io/api/v1/58f61be4dda40?sheet=sheet2
PATCH https://sheetdb.io/api/v1/58f61be4dda40/{column}/{value}?sheet=sheet2
DELETE https://sheetdb.io/api/v1/58f61be4dda40/{column}/{value}?sheet=sheet2