

Below we'll look at examples of how to use the API using Python. The documentation provides API usage documentation for curl and Javascript. A nice feature of the Airtable API documentation is after you log in to your account, you can view the documentation specific to the Airtable base you want to use.
#Nucleo de la celula update#
The Airtable REST API allows you to perform a few core actions: add a record, retrieve records, update records, and delete records. Include the following at the top of the file:Įnter fullscreen mode Exit fullscreen mode With all the variables assembled to make our requests, it's time to put it together into a python file. You'll need that to complete the URL for making requests. env file naming it AIRTABLE_BASE_ID.įinally, make a note of the sheet name you want to modify via the API. On the next page, you will see the ID of your Airtable Base. Select the base you want to work with from the list. Make sure you are logged into your Airtable account and go to the API docs. env to avoid accidentally exposing this information! Make sure you keep this token private and do not share it with anyone! If you're committing files to a GitHub repo (or any other source control system), make sure you exclude the. Scroll down to the API section of your account page, and you will see your token.Ĭopy the token value and paste it into your. You can find your API token by going to your account page. Submitting a request to the Airtable REST API requires three pieces of information:Īirtable uses a bearer token to authenticate each API request, which should be saved in a. There is also a Jupyer notebook, AirtablePractice.ipynb in the repo you can use to follow along.įirst, let's look at the authentication for submitting a request.

In the repo you will find a file airtable.py with example functions you'll build here. You will need to create a table in Airtable with the following four columns and data types:Īll the code referenced here is available in a GitHub repo. You'll learn how to add, retrieve, update, and delete records in Airtable through the Airtable REST API and also talk about some of the common gotchas and limitations.įor this tutorial, we will be using scores from a round of golf as a toy dataset.

The API documentation only contains curl and Javascript examples, so this tutorial will look at how you can interact with Airtable using Python complete with examples. Airtable has a REST API that can be used to perform common operations on your Airtable. Airtable is a cloud-based relational database that simplifies data storage without having to write SQL.
