Create a key in the portal and make your first screening request with any HTTP client. No SDK and no sandbox required.
Sign up, then open Account, API Keys in the portal and create a key with Read on the portal.sanctions-search module (each endpoint in the API Reference lists the module and level it needs). Copy it when it is shown; it is not displayed again.
Any HTTP client works. Keep the key out of source control: put it in an environment variable and send it as Authorization: ApiKey .... Official SDKs (Node.js, Python and Go) are in the works.
Run a sanctions search with fetch (Node 18+). The same call works from curl or any language.
const res = await fetch('https://api.on8.ai/api/v1/screening/sanctions', {
method: 'POST',
headers: {
'Authorization': `ApiKey ${process.env.ON8_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ query: 'Vladimir Putin', schemaType: 'Person', mode: 'fuzzy' }),
});
const { success, data } = await res.json();
// success is true on a 2xx; the failure envelope carries { error }, not { data }.
console.log(success, data.isClear, data.totalHits); // true, false, 12We use strictly necessary cookies to run on8, and, with your consent, optional cookies for analytics and marketing. Read our Cookie Policy.