Screen an aircraft
curl --request GET \
--url https://api.compliapi.com/api/v1/screen/aircraft/{identifier} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.compliapi.com/api/v1/screen/aircraft/{identifier}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.compliapi.com/api/v1/screen/aircraft/{identifier}', 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.compliapi.com/api/v1/screen/aircraft/{identifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.compliapi.com/api/v1/screen/aircraft/{identifier}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.compliapi.com/api/v1/screen/aircraft/{identifier}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.compliapi.com/api/v1/screen/aircraft/{identifier}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyScreening
Screen an aircraft
Screen an aircraft by registration, serial number or Mode S code
GET
/
screen
/
aircraft
/
{identifier}
Screen an aircraft
curl --request GET \
--url https://api.compliapi.com/api/v1/screen/aircraft/{identifier} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.compliapi.com/api/v1/screen/aircraft/{identifier}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.compliapi.com/api/v1/screen/aircraft/{identifier}', 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.compliapi.com/api/v1/screen/aircraft/{identifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.compliapi.com/api/v1/screen/aircraft/{identifier}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.compliapi.com/api/v1/screen/aircraft/{identifier}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.compliapi.com/api/v1/screen/aircraft/{identifier}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyScreens an aircraft by its registration (tail number), manufacturer’s serial number or Mode S transponder code against the enabled lists that publish aircraft identifiers — today the US OFAC SDN list, which designates several hundred aircraft by registration, serial number and transponder code. Use it before leasing, servicing, fuelling, insuring or financing an aircraft.
Matching is exact. Each match’s
string
required
A registration (
EP-GOL), serial number or Mode S code (140AE7). Punctuation, spaces and case are ignored — EP-GOL, ep gol and EPGOL are the same.string
Comma-separated list slugs to screen against (default: all enabled lists).
metadata carries kind — registration, previous_registration, serial or mode_s — and, where the list gives one, the aircraft model; the response is the shared screening envelope.
Serial numbers shorter than six characters are not screened: short manufacturer and construction numbers repeat across manufacturers, so an unrelated airframe would match. Check the model on any serial-number match.
Example response
{
"value": "EP-GOL",
"flagged": true,
"sanctioned": true,
"lists_checked": ["ofac", "ofac_consolidated"],
"matches": [
{
"list": "ofac",
"list_name": "US OFAC SDN",
"list_type": "sanctions",
"match": "exact",
"value": "EP-GOL",
"source_url": "https://sanctionssearch.ofac.treas.gov/Details.aspx?id=15432",
"metadata": { "sdn_name": "EP-GOL", "sdn_type": "Aircraft", "model": "IL-76TD", "kind": "registration" }
}
]
}