My “Published URL” column contains URLs of web pages.
Through API, I would like to be able to pull only the record containing a URL I supply in the call.
I am already successfully making a curl call with this…
$base = 'appPtTr2kigmLlCP8';
$table = 'Content';
$view = urlencode('Published (Robert)');
// $fields = urlencode('Published URL'); // Only return these fields, cf. https://community.airtable.com/t/using-fields-filter-in-list-of-records/940
if (!empty($offset)) {
$q_offset = '&offset='.$offset;
}
$airtable_url = 'https://api.airtable.com/v0/' . $base . '/' . $table;
// construct the url query
$url = 'https://api.airtable.com/v0/' . $base . '/' . $table . '?maxRecords=5&pagesize=1000&view='.$view . $q_offset;
But how can I make use of the relevant feature (is it filterByFormula?) to add
Elsewhere on the forum, I have seen reference like…
filterByFormula=SEARCH(‘riva’%2C+%7BLast+Name%7D)
But I have not crystallised how I would perform a query for the record with a specific “Published URL” value.
How do I do this, and what do I need to know about encoding a URL and the whole query parameter pair?
Thanks.