List search fields
curl --request POST \
--url https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"database": "People"
}
'import requests
url = "https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields"
payload = { "database": "People" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({database: 'People'})
};
fetch('https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'database' => 'People'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields"
payload := strings.NewReader("{\n \"database\": \"People\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"database\": \"People\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"database\": \"People\"\n}"
response = http.request(request)
puts response.read_body{
"connectives": [
"And",
"Or",
"AndNot"
],
"database": "People",
"fields": [
{
"label": "Name",
"name": "Field_Name"
},
{
"label": "Activity type",
"name": "Field_Activity_type"
},
{
"label": "Nationality",
"name": "Field_Nationality"
}
],
"observed_at_ms": 1791608418261,
"page_sizes": [
10,
25,
50,
100,
250
],
"sort_options": [
{
"label": "Unsorted",
"name": "Search_Unsorted"
},
{
"label": "Name",
"name": "Search_SortName"
}
],
"source_url": "https://collections-search.bfi.org.uk/web/search/getexpertsearchfields?sourcename=People"
}BFI Collections Search
List search fields
Before search_records on a database whose field names you do not know.
POST
https://api.aisa.one
/
apis
/
v1
/
collections-search-bfi-org-uk
/
records
/
list-search-fields
List search fields
curl --request POST \
--url https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"database": "People"
}
'import requests
url = "https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields"
payload = { "database": "People" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({database: 'People'})
};
fetch('https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'database' => 'People'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields"
payload := strings.NewReader("{\n \"database\": \"People\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"database\": \"People\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"database\": \"People\"\n}"
response = http.request(request)
puts response.read_body{
"connectives": [
"And",
"Or",
"AndNot"
],
"database": "People",
"fields": [
{
"label": "Name",
"name": "Field_Name"
},
{
"label": "Activity type",
"name": "Field_Activity_type"
},
{
"label": "Nationality",
"name": "Field_Nationality"
}
],
"observed_at_ms": 1791608418261,
"page_sizes": [
10,
25,
50,
100,
250
],
"sort_options": [
{
"label": "Unsorted",
"name": "Search_Unsorted"
},
{
"label": "Name",
"name": "Search_SortName"
}
],
"source_url": "https://collections-search.bfi.org.uk/web/search/getexpertsearchfields?sourcename=People"
}Request contract
- Method and path: POST /apis/v1/collections-search-bfi-org-uk/records/list-search-fields
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/list-search-fields
{
"operationId": "collections-search-bfi-org-uk.records.list-search-fields",
"method": "POST",
"path": "/apis/v1/collections-search-bfi-org-uk/records/list-search-fields",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"database": "People"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"database": {
"description": "database\n\nProvider reference: allowed values [\"ChoiceFilmWorks\", \"ChoiceFilmItems\", \"ChoiceLibrary\", \"ChoiceBooks\", \"ChoiceSerials\", \"ChoiceArticles\", \"ChoicePresscuttings\", \"ChoiceSpecialCollections\", \"ChoiceArchive\", \"ChoicePosters\", \"ChoiceStills\", \"People\"].",
"type": "string"
}
},
"required": [
"database"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
The expert-search field list of one database (GET /web/search/getexpertsearchfields?sourcename={database}): field names and labels usable in search_records conditions, the sort fields and the page sizes the form offers.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
connectives | string[] | |
database | string | |
fields | object[] | |
observed_at_ms | number | |
page_sizes | number[] | |
sort_options | object[] | |
source_url | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.