Comment on page
Creating an Airtable export URL (API)
You can now dynamically create export URLs using our API


This can be done by clicking 'Create New CSV Getter Key'. This Key will be stored in the interface and can be used to make requests via our API

API Endpoint:
https://api.csvgetter.com/urls/create
HTTP Method:
POST
Request Headers
- Authorization: Bearer token for authentication ('
Bearer <your_csv_getter_key>
').- Type: String (Required)
- Content-Type: The content type of the request body.
- Type: String (Required)
- Value:
application/json
Request Body
The request body should be a JSON object containing the following parameters:
- base (String): Identifier for the base..
- Type: String (Required)
- table (String): Identifier for the table.
- Type: String (Required)
- view (String): Identifier for the view.
- Type: String (Optional)
These IDs can be found in your Airtable URL when your table is open:

Identifying the correct IDs
Example Request
bash
curl --location --request POST 'https://api.csvgetter.com/urls/create' \
--header 'Authorization: Bearer <your_csv_getter_key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"base": "app13WtrDjOcPZBkD",
"table": "tblMSaWQG5tTlrMef",
"view": "viwuKZsGqzfAHbjpv"
}'
Response Body
The response is a JSON object containing a URL. The URL points to the newly created resource.
- URL (String): URL of the created resource.
- Type: String
Example Response
json
{
"URL": "https://api.csvgetter.com/750997dbf6e143c9ab70"
}
Last modified 1mo ago