Lookup terms
curl --request POST \
--url https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/lookup-terms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"database": "ChoiceFilmWorks",
"field": "Field_Genre",
"term": "west"
}
'import requests
url = "https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/lookup-terms"
payload = {
"database": "ChoiceFilmWorks",
"field": "Field_Genre",
"term": "west"
}
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: 'ChoiceFilmWorks', field: 'Field_Genre', term: 'west'})
};
fetch('https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/lookup-terms', 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/lookup-terms",
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' => 'ChoiceFilmWorks',
'field' => 'Field_Genre',
'term' => 'west'
]),
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/lookup-terms"
payload := strings.NewReader("{\n \"database\": \"ChoiceFilmWorks\",\n \"field\": \"Field_Genre\",\n \"term\": \"west\"\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/lookup-terms")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"database\": \"ChoiceFilmWorks\",\n \"field\": \"Field_Genre\",\n \"term\": \"west\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/lookup-terms")
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\": \"ChoiceFilmWorks\",\n \"field\": \"Field_Genre\",\n \"term\": \"west\"\n}"
response = http.request(request)
puts response.read_body{
"database": "ChoiceFilmWorks",
"field": "Field_Genre",
"field_label": "Genre",
"observed_at_ms": 1791608425029,
"source_url": "https://collections-search.bfi.org.uk/web/helper/GetLookupValues?searchType=advanced&database=ChoiceFilmWorks&fieldName=Field_Genre&term=west",
"term": "west",
"terms": [
"Western",
"Wildlife TV programme"
],
"total": 2
}BFI Collections Search
Lookup terms
Find the exact genre, subject, work type or other authority term spelling before searching on it.
POST
https://api.aisa.one
/
apis
/
v1
/
collections-search-bfi-org-uk
/
records
/
lookup-terms
Lookup terms
curl --request POST \
--url https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/lookup-terms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"database": "ChoiceFilmWorks",
"field": "Field_Genre",
"term": "west"
}
'import requests
url = "https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/lookup-terms"
payload = {
"database": "ChoiceFilmWorks",
"field": "Field_Genre",
"term": "west"
}
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: 'ChoiceFilmWorks', field: 'Field_Genre', term: 'west'})
};
fetch('https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/lookup-terms', 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/lookup-terms",
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' => 'ChoiceFilmWorks',
'field' => 'Field_Genre',
'term' => 'west'
]),
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/lookup-terms"
payload := strings.NewReader("{\n \"database\": \"ChoiceFilmWorks\",\n \"field\": \"Field_Genre\",\n \"term\": \"west\"\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/lookup-terms")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"database\": \"ChoiceFilmWorks\",\n \"field\": \"Field_Genre\",\n \"term\": \"west\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/lookup-terms")
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\": \"ChoiceFilmWorks\",\n \"field\": \"Field_Genre\",\n \"term\": \"west\"\n}"
response = http.request(request)
puts response.read_body{
"database": "ChoiceFilmWorks",
"field": "Field_Genre",
"field_label": "Genre",
"observed_at_ms": 1791608425029,
"source_url": "https://collections-search.bfi.org.uk/web/helper/GetLookupValues?searchType=advanced&database=ChoiceFilmWorks&fieldName=Field_Genre&term=west",
"term": "west",
"terms": [
"Western",
"Wildlife TV programme"
],
"total": 2
}Request contract
- Method and path: POST /apis/v1/collections-search-bfi-org-uk/records/lookup-terms
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/collections-search-bfi-org-uk/records/lookup-terms
{
"operationId": "collections-search-bfi-org-uk.records.lookup-terms",
"method": "POST",
"path": "/apis/v1/collections-search-bfi-org-uk/records/lookup-terms",
"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": "ChoiceFilmWorks",
"field": "Field_Genre",
"term": "west"
}
}
},
"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"
},
"field": {
"description": "Field with a lookup list, e.g. Field_Genre or Field_SubjectMuseum on ChoiceFilmWorks. Pattern: ^Field_[A-Za-z0-9_]{1,80}$.",
"type": "string"
},
"search_type": {
"default": "advanced",
"description": "Which form's lookup to use; the vocabulary is the same.\n\nProvider reference: allowed values [\"advanced\", \"expert\"]; default \"advanced\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"advanced",
"expert"
]
}
},
"term": {
"description": "Starting point in the alphabetical list.",
"type": "string"
}
},
"required": [
"database",
"field",
"term"
],
"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
Controlled-vocabulary browse for a search field (GET /web/helper/GetLookupValues): the site's lookup popup for fields such as Field_Genre or Field_SubjectMuseum returns the vocabulary terms from the alphabetical position of term onwards (one window of up to 32 terms) with the total count. Terms are exact values for search_records conditions with truncation off.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
database | string | |
field | string | |
field_label | string | The popup title (Genre, Subject, ...). |
observed_at_ms | number | |
source_url | string | |
term | string | |
terms | string[] | |
total | number | Results (N) as the popup states it; null when the popup shows no count. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.