Replace the variables below in the script
YOURBASEID: your Airtable base ID starting with 'app...'YOURCOOKIESFORAIRTABLEDOMAINyour browser cookie for airtable.com domain
| const myHeaders = new Headers(); | |
| myHeaders.append("x-airtable-application-id", "YOURBASEID"); | |
| myHeaders.append("x-time-zone", "America/Sao_Paulo"); // change to your timezone if you want to | |
| myHeaders.append("x-user-locale", "pt-BR"); // change to your language if you want to | |
| myHeaders.append("X-Requested-With", "XMLHttpRequest"); | |
| myHeaders.append("Cookie", "YOURCOOKIESFORAIRTABLEDOMAIN"; | |
| const requestOptions = { | |
| method: 'GET', | |
| headers: myHeaders, | |
| redirect: 'follow' | |
| }; | |
| const response = await fetch("https://airtable.com/v0.3/application/YOURBASEID/read", requestOptions); | |
| const schema = await response.json(); |