Sheetfetch API Basics
Written By Richard
Last updated About 1 month ago
A clear guide to URL, endpoints, headers, parameters, authentication, and HTTP methods
What Is an API URL Path?
When working with APIs, the URL path is the full address you use to call an API. It combines a Base URL and an endpoint:
https://api.sheetfetch.com/v1/usersBase URL is the core address of the API
Endpoint is the specific route that returns or processes data
Together they form the API URL Path, which is essential for every API request you make.
APIs work just like website URLs — you type a full address into a browser to view a page. For APIs, the same idea applies, but instead of a human‑viewable page, the server returns structured data like JSON.
Base URL and Endpoints
Base URL
This is the root domain for all Sheetfetch API routes and stays the same for every request. All valid paths start from this base.
Example:
https://api.sheetfetch.comEndpoint
An endpoint is a named route added to the base URL to request specific data or perform actions. Each endpoint maps to a particular part of the API’s functionality.
Examples:
/v1/users→ get user list/v1/sheets→ access spreadsheet data
You append the endpoint to the base URL to build a full API URL path:
https://api.sheetfetch.com/v1/sheetsThe API documentation should list all endpoints available and what they do.
HTTP Request Methods
When calling an API, you choose an HTTP method depending on what action you want:
Each endpoint supports one or more methods, and using the right method tells the server what you want to do.
Headers
Headers are extra information you send with your request. They help the server understand how to process the request.
Common headers:
Content-Type: Format of request body (likeapplication/json)Accept: Format expected in responseAuthorization: Credentials (API key, Bearer token, etc)
Example:
Content-Type: application/json
Authorization: Bearer {your_token}Headers are critical for authenticated routes and telling the API how to interpret your data.
Parameters
Query Parameters
These are key‑value pairs appended to the URL to refine or filter responses:
GET https://api.sheetfetch.com/v1/users?limit=10&page=2Here limit=10 and page=2 adjust how data is returned — such as pagination or filtering.
Body Parameters
For methods like POST, PUT, or PATCH, data is sent inside the request body in formats like JSON:
{
"name": "bro",
"email": "bro@example.com"
}Authentication
Most APIs require authentication so the server knows who is making requests and whether they’re allowed.
Common methods:
API Key — simple token string
Bearer Token (found in Authorization header)
OAuth Tokens — secure token standards
Example header:
Authorization: Bearer your_actual_tokenWithout valid authentication, protected endpoints will refuse access.
Putting It All Together — A Request Example
Here’s a typical API call:
GET https://api.sheetfetch.com/v1/sheets/12345?limit=50&page=1
Headers:
Content-Type: application/json
Authorization: Bearer abc123tokenThis means:
Call the GET method
Hit the
/v1/sheets/12345endpoint (specific sheet)Ask for 50 rows on page 1
Send authentication via Bearer token
Summary
When using Sheetfetch API, every request involves:
Base URL — the main address
Endpoint — specific feature route
Method — GET, POST, PUT, etc.
Headers — help describe it
Parameters — customize request
Authentication — authorize access
Understanding all parts of the URL and how they interact is essential to using Sheetfetch’s API effectively.