I’m working with Airtable API and facing an issue where I can only pull 100 records at a time. My database has way more entries than that and I need to get all of them in my application. The API seems to have some kind of limit but I’m not sure how to work around it.
totally get it, that 100 limit can be a pain! u just gotta keep callin with the offset until ya pull in all your data. its like a never-ending loop lol, just keep adding to your array from each response. it’ll work out in the end!
To get all records from Airtable past the first 100, you need to use pagination. Airtable’s API sends an offset parameter when there are more records than the limit allows. Make your first call, then check if there’s an offset in the response - if yes, there are more records to fetch. Keep making requests with ?offset=${offset} added to your URL until the response doesn’t include an offset anymore. You might want to add a small delay between requests so you don’t hit rate limits.
Airtable’s API paginates with an offset parameter when you’ve got more than 100 records. You’ll get an offset value back that you use for your next request. I’ve hit this same issue multiple times - a recursive function is your best bet. Check if result.data.offset exists in your response. If it does, make another request with that offset as a query parameter. Keep collecting records from each call until there’s no more offset. That’s how you pull thousands of records instead of getting stuck at 100.