Skip to main content

Programmatic Adverse Media Screening: Didit API How-To

POST /v3/aml/ with include_adverse_media true screens a person against sanctions, PEP, warning and watchlist data from 1,300+ global watchlists, with adverse-media enrichment in the same call, for $0.20.

Programmatic Adverse Media Screening: Didit API How-To

Contents

In this guide

Jump to the part you need.

Programmatic adverse media screening fits teams that need a repeatable adverse media check inside their own system rather than in a console: fintechs, payment providers, crypto businesses and lenders onboarding at volume. We charge $0.20 per completed AML screening, and adverse media is available in that same call when you set include_adverse_media to true. The caveat is latency. With adverse media switched on, the request waits for enrichment, so set a client timeout of at least 60 seconds.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Programmatic adverse media screening with the Didit API at a glance
ItemDetail
EndpointPOST https://verification.didit.me/v3/aml/
Authenticationx-api-key header, held server side only
Price$0.20 per completed AML screening; taxes are added where they apply
Datasets in the callSanctions, PEP, warning and watchlist screening against 1,300+ global watchlists, with adverse-media enrichment in the same call
Adverse media switchinclude_adverse_media: true
LatencyA few seconds plain; with adverse media, about 5 seconds initial pause plus up to about 25 seconds polling
Stored resultsave_api_request defaults to true, then GET /v3/session/{sessionId}/decision/
Retry safetyIdempotency-Key header; a replayed answer is not billed again
SandboxFree on every plan, mocked result unless you pass sandbox_scenario

Start free in the sandbox at business.didit.me, no sales call needed. If you build with an AI assistant, connect Didit through the Didit MCP server. The matching product page is AML Screening, and every unit price is on the pricing page.

The AML screening tab on a session in the Didit Business Console
The AML screening tab on a session shows the result the API returns, next to the rest of the customer record.

What adverse media screening means

Adverse media, also called negative news, is unfavorable reporting about a person or a company that may point to financial crime risk: allegations, investigations, indictments, convictions or regulatory action. It is not a legal prohibition and it is not a position of influence. That is the difference from the two datasets next to it. A sanctions listing is a legal restriction. A PEP record marks someone with a prominent public function. An adverse media hit is a reported fact or allegation that changes how much scrutiny the customer deserves.

In an AML program the three are read together, which is why we run them in a single call. Splitting adverse media into its own separate vendor means one more contract, one more key and one more place where a decision can drift out of the audit trail.

Treat an adverse media result as enrichment data: it adds context to a decision, and your compliance policy decides what that context means for the customer. A plain adverse media search on a search engine returns links. A screening API returns records with identity confidence and entity risk attached, plus a warning code your system can branch on. For compliance work, that difference is the whole product.

The outcome you should design for

The call is done when three things are true: you know whether the person matched an adverse media record, you know how confident the match is, and you know which of your thresholds decided the case. Didit answers with a two-score model.

  • Match score (0 to 100): how likely the listed entity is the same person you sent. It is built from the weights you set for name, date of birth and country, and a matching document_number acts as a golden key that overrides the match score to 100.
  • Risk score (0 to 100): how risky the listed entity is, independent of who you are screening.

Hits whose match score falls below aml_match_score_threshold (default 93) are tagged review_status as a false positive and ignored for risk purposes. The highest risk score among the remaining hits becomes aml.score, and that single number drives the status: above aml_score_review_threshold (default 100) the status is Declined, above aml_score_approve_threshold (default 80) it is In Review, otherwise Approved. The recommended method is therefore not to read headlines in code. Read two numbers, apply your policy, and route the middle band to a human.

The details of one AML hit in the Didit Business Console
One hit in the console: the record, the matched fields and the review controls behind an In Review decision.

Prerequisites

  • A Didit application and its API key. In the Business Console open Developers, then API keys, or create the key through the programmatic register and verify-email flow. Sandbox keys start with sk_test_, live keys with sk_live_.
  • Server-side code. The key is a secret with full access to your application, so never ship it to a browser or a mobile bundle.
  • The data you actually hold: at minimum full_name. Date of birth and nationality raise match quality, because they are the other two weighted components.
  • Three threshold decisions before you go live: aml_match_score_threshold, aml_score_approve_threshold and aml_score_review_threshold. If you also send custom weights, aml_name_weight plus aml_dob_weight plus aml_country_weight must sum to exactly 100.
  • A client timeout of at least 60 seconds, because adverse media enrichment is the slow part of the call.

Steps to run a programmatic adverse media check

  1. Start in the sandbox. Sandbox keys skip screening and billing entirely and return a mocked Approved result with zero hits unless you pass sandbox_scenario. That lets you build the parsing, the thresholds and the routing for free before any live record is touched.
  2. Pick the route that matches the job. Use POST /v3/aml/ when you want a one-shot screen decoupled from a hosted flow. Use a workflow with the AML feature when the screen belongs inside a verification session; the decision then carries aml_screenings[]. For adverse media only, the standalone route is the shorter path.
  3. Send the request with adverse media switched on. The documented example:
curl -X POST 'https://verification.didit.me/v3/aml/' -H "x-api-key: $DIDIT_API_KEY" -H "Content-Type: application/json" -d '{"full_name": "Javier Ejemplo Modelo", "entity_type": "person", "date_of_birth": "1974-01-01", "nationality": "ES", "include_adverse_media": true, "vendor_data": "user-1234"}'
  1. Read the scores and the warnings. Do not branch on the presence of hits alone. Branch on aml.score against your thresholds, and log the warnings[] risk codes that came with it: ADVERSE_MEDIA_HIT, POSSIBLE_MATCH_FOUND, MATCH_FOUND, SANCTIONED_ENTITY, PEP_MATCH, HIGH_RISK_COUNTRY, ONGOING_MONITORING_ENABLED. A POSSIBLE_MATCH_FOUND warning is added whenever the score is non-zero and at or above the approve threshold; a score of exactly 0 never warns.
  2. Keep the record. save_api_request defaults to true, so the screening is stored as a session, appears in the console, fires a status.updated webhook, and stays open to later hit review status updates. Retrieve it with GET /v3/session/{sessionId}/decision/. If you set save_api_request to false, nothing is stored and request_id is only a transient correlation id.

Expected output

The documented response shape is a request id and an aml object holding the status, the screening id, the hits and the warnings:

{
  "request_id": "...",
  "aml": {
    "status": "Approved",
    "screening_id": "...",
    "hits": [ ... ],
    "warnings": [ ... ]
  }
}

On a sandbox key, that is literally what you get back: Approved with zero hits. On a live key, each hit carries its own match_score and risk_score, and a hit below the match threshold is tagged as a false positive rather than removed, so you can still see what was discarded and why. The AML status field uses this enum: Not Started, In Progress, Approved, In Review, Declined, Abandoned or Kyc Expired.

The score breakdown of one AML hit in the Didit Business Console
The score breakdown of a single hit, which is what an analyst reads when a case lands In Review.

Failure cases and how to recover

What goes wrong on an adverse media call, and what to do
FailureWhat it meansRecovery
400 on weightsName, DOB and country weights do not sum to exactly 100Fix the three numbers; missing components are re-normalized away
400 on monitoringinclude_ongoing_monitoring=true without save_api_request=trueTurn persistence back on, monitoring needs a stored profile
401The x-api-key header is wrong, malformed, revoked or expiredRe-fetch the key from Developers, then API keys in the console
403No key, a scoped key without access, or an insufficient balanceTop up or use a key with the right scope. The refusal happens before any new screening
409The same Idempotency-Key was reused with a different bodySend a new key for a new request body
429Rate limit reachedThe response carries a wait field in seconds; back off, then retry
Adverse media timeoutThe upstream enrichment was slow; the result comes back without the adverse media hitsIt is still actionable. If you need the news layer, run a new screening with a new Idempotency-Key; reusing the key replays the stored answer
DeclinedThe score is above aml_score_review_threshold (default 100)Stop the flow or route to enhanced due diligence, following your own policy
In ReviewThe score is above the approve threshold and not above the review thresholdSend it to your manual queue. This is the band the API deliberately does not decide

Design around the timeout: send an Idempotency-Key on the first attempt, so a retry returns the stored answer without a second charge.

Inputs and outputs

Request fields for POST /v3/aml/
FieldRequiredNotes
full_nameYesPerson or company being screened, minimum 2 characters
entity_typeNoperson or a company entity
date_of_birthNoFeeds the DOB weight in the match score
nationalityNoFeeds the country weight
include_adverse_mediaNoSet to true for the adverse media layer; this is what adds the long poll
vendor_dataNoYour own identifier, echoed back
save_api_requestNoDefaults to true, which stores the session and the report
include_ongoing_monitoringNoKeeps the profile under provider-driven monitoring; requires save_api_request=true
aml_match_score_threshold, aml_score_approve_threshold, aml_score_review_thresholdNoDefaults 93, 80 and 100
Idempotency-Key headerNoUp to 255 characters, scoped to your application and the exact request body
What comes back
OutputWhat it tells you
request_idCorrelation id; with persistence on it works with the decision endpoint
aml.statusApproved, In Review, Declined or another enum value
aml.screening_idIdentifier of the screening that produced the report
aml.hits[]Every potential match with match_score, risk_score and its review_status
aml.scoreThe highest risk score among hits that survived the match threshold
aml.warnings[]Risk codes for automation, including ADVERSE_MEDIA_HIT

One AML API credit is charged after the first successful screening, at $0.20. The published $0.20 is for a completed AML screening; taxes are added where they apply. Replayed idempotent responses are not charged again, and an insufficient balance returns 403 before any new screening runs. The sandbox is free on every plan, so parsing and threshold testing cost nothing. If a saved screening needs a PDF for a file or a partner, that report is retrieved from the same session.

Ongoing monitoring is a separate line at $0.07 per screened person per year, and it requires save_api_request=true. You can switch it off from the Business Console.

The review boundary sits inside the two-score model, not inside your code. Below the match threshold, hits are set aside as false positives. Above it, the risk score decides whether the case is approved, sent to review or declined. Anything the API marks In Review is, by design, a human decision, and that is where a review queue earns its keep.

Worked cost example

Take a lender that onboards 5,000 new customers a month and runs one adverse media screening plus a full ID check on each of them, at list prices.

  • AML screening with adverse media: 5,000 x $0.20 = $1,000.00
  • Full ID check: 5,000 x $0.33 = $1,650.00
  • Total per month: $1,000.00 + $1,650.00 = $2,650.00
  • Ongoing monitoring for that month's cohort: 5,000 x $0.07 = $350.00 per year

The same volume on the Growth plan takes 4% off every Didit price: AML becomes $0.192 per screen (5,000 x $0.192 = $960.00) and the full ID check becomes $0.3168 (5,000 x $0.3168 = $1,584.00), so $960.00 + $1,584.00 = $2,544.00 a month. Retried idempotent calls add nothing to either figure. The two figures above are the compliance bundle arithmetic at list price, $0.53 x 5,000 = $2,650.00, which is the same total from the other direction.

Why an adverse media check with a Google search from C# is not a screen

People search for how to run an adverse media check with a Google search from C#, usually after a scrape stopped working. We understand the temptation and we do not recommend it. A search result gives you a link, not a record. It gives you no match score, so you cannot separate a namesake from your customer. It gives you no risk score, so every result looks equally alarming. It gives you no stable coverage, because results depend on the query, the region and the day. And it gives you nothing to show a regulator when they ask what you screened and what you decided.

If you already have a C# service, the API is one HTTP call. Send the same person fields you would put in the search box, set include_adverse_media to true, and store the returned decision next to the customer record.

Automating adverse media screening after onboarding

Adverse media changes after the customer is approved, which is why the monitoring line exists. Set include_ongoing_monitoring=true together with save_api_request=true and the profile stays under provider-driven monitoring, with the provider's updates reaching the report. You get the ONGOING_MONITORING_ENABLED warning on the record, and you can disable it from the console when a relationship ends. For teams handling wallets and transactions, AML screening sits alongside our Transaction Monitoring line, so a single credit balance pays for the whole flow.

Sources

Next step: create a sandbox application at business.didit.me, send one adverse media screening with a test key, and read the scores before you touch a live record. No sales call is involved.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Frequently asked questions

What is adverse media screening in simple terms?

Adverse media screening checks whether a person or company appears in negative news or public reporting that suggests financial crime risk, such as an investigation, an indictment or a conviction. It is not a sanctions listing and not a PEP record, though all three are usually run together. The output is a set of potential matches, each scored for identity confidence and for entity risk.

What is the adverse media API endpoint and what does it cost?

The endpoint is POST https://verification.didit.me/v3/aml/ on verification.didit.me, authenticated with an x-api-key header. You add adverse media to the call with include_adverse_media: true. The price is $0.20 per completed AML screening; taxes are added where they apply. The same call covers sanctions, PEP, warning and watchlist screening against 1,300+ global watchlists, with adverse-media enrichment when the switch is on, and sandbox calls are free.

What does an adverse media screening example request look like?

A minimal call sends full_name, optionally entity_type, date_of_birth and nationality, plus include_adverse_media: true and your own vendor_data. In curl it is a single POST with the API key header and a JSON body, exactly as shown in our docs. The response returns a request_id and an aml object with status, hits and warnings.

Can I run an adverse media check with a Google search from C# instead of an API?

You can write the code, but it is not a screening control. A search gives no match score, no risk score, no stable list coverage and no audit record of what was screened. Regulated programs need a reproducible result per customer, which is what an API response and a stored decision give you. The better use of C# is a single POST to the AML endpoint.

How does Didit decide whether a hit is a true match or a false positive?

Each hit gets a match score from 0 to 100, built from the weights you set for name, date of birth and country, with a matching document number forcing the score to 100. Hits below aml_match_score_threshold, default 93, are tagged as false positives and excluded from risk. The highest risk score among the surviving hits becomes the screening score that drives the status.

What is an adverse media report and can I get one per person?

A report is the stored record of one screening: the input, the hits, both scores, the warnings and the status. Because save_api_request defaults to true, every screening becomes a session you can retrieve with GET /v3/session/{sessionId}/decision/ or export as a PDF, and it is also visible in the Business Console. Reviewers can update hit review statuses later without re-running the screen.

What makes adverse media screening advanced rather than a name search?

Advanced screening separates two questions that a name search confuses: is this the same person, and how risky is that person. Didit answers both with separate scores, exposes the thresholds and weights so you can tune them, returns warning codes your code can branch on, and keeps the profile under monitoring after onboarding. That is the difference between a list of links and a decision you can defend.

Where does the adverse media database come from?

Didit screens against sanctions, PEP, warning and watchlist data from 1,300+ global watchlists, with adverse-media enrichment in the same call. That means one request returns the identity matches, the risk scores and the adverse-media layer instead of you stitching together separate feeds. Coverage and list content are documented on our side and applied at request time. Treat an adverse media result as enrichment data and review it under your own compliance policy.

How long does an adverse media check take?

A plain screening typically completes in a few seconds. With include_adverse_media=true the API waits for enrichment, an initial pause of about 5 seconds plus up to about 25 seconds of polling. Configure your client timeout to at least 60 seconds and treat a slow adverse media layer as a known condition, not an error.

How do I automate adverse media screening and monitor people afterwards?

Call the AML endpoint as part of your onboarding flow, branch on the returned status against your thresholds, and send the In Review band to a queue. For monitoring, add include_ongoing_monitoring=true with save_api_request=true and the profile stays under provider-driven monitoring at $0.07 per screened person per year. Subscribe to the status.updated webhook so updates reach your system without polling.

What happens if my client times out while adverse media is still loading?

Send an Idempotency-Key header on the first attempt, then retry with the same key. The first completed request stores its response, and later identical retries return that same response without running or billing another screening. If the original request is still running, retry later with the same key. If the completed response came back without adverse-media hits because the upstream was slow, run a new screening with a new key to request the news layer again.

Does an adverse media hit block the customer automatically?

Only if your thresholds say so. The API returns Declined when the score is above aml_score_review_threshold (default 100), In Review when it is above aml_score_approve_threshold (default 80) and not above the review threshold, and Approved otherwise. The middle band is deliberately left for a human, because a namesake match and a confirmed conviction should not end in the same automated action.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.