Jul 15, 2021 03:53 PM
I am using GET to retrieve data from a table in a base. Rather than getting all the records, I would like to get the records filtered by a view. My query looks something like this:
https://api.airtable.com/v0/appXXXXXXXXX.../TheTableIWant?fields%5B%5D=FIELD1&fields%5B%5D=FIELD2_ETC
What would the query look like to get a view?
Solved! Go to Solution.
Jul 15, 2021 06:20 PM
Hey Leo,
Have you tried adding a query parameter naming the view, like this?
&view=All%20projects%20
Jul 15, 2021 04:48 PM
Looks like I need the “metadata” API?
Jul 15, 2021 06:20 PM
Hey Leo,
Have you tried adding a query parameter naming the view, like this?
&view=All%20projects%20
Jul 15, 2021 06:21 PM
The REST API documentation is located at the link below. As @acco mentioned, you need to use the view parameter:
Jul 16, 2021 12:57 AM
I could not find what I was looking for in the API docs. @acco’s response gave me what I was looking for. Thanks!
Jul 16, 2021 01:05 AM
It’s in the exact same location where you got your GET statement from, under “List Records”.
Jul 16, 2021 01:21 AM
I got my GET by stepping through someone else’s Airtable.swift package. Thanks to you and @acco taking the time to explain this I’m understanding how to use the doc’s.