{"uid":"cap_g4T6VFi2MknOshLOiXIhP","slug":"brainiac-ad-fraud-click-risk-score-c82cfc93","name":"BRAINIAC Ad Fraud Click Risk Score","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/ad-fraud/click-risk-score?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"click":{"type":"object","required":["id"],"properties":{"x":{"type":"number","maximum":20000,"minimum":0},"y":{"type":"number","maximum":20000,"minimum":0},"at":{"type":"string","maxLength":40,"minLength":8},"id":{"type":"string","maxLength":120,"minLength":1},"gclid":{"type":"string","maxLength":200},"fbclid":{"type":"string","maxLength":200},"clickId":{"type":"string","maxLength":160},"dwellMs":{"type":"integer","maximum":86400000,"minimum":-1000000},"referrer":{"type":"string","maxLength":500},"campaignId":{"type":"string","maxLength":80},"landingUrl":{"type":"string","maxLength":500},"pageLoadAt":{"type":"string","maxLength":40,"minLength":8},"fingerprintId":{"type":"string","maxLength":120},"timeToClickMs":{"type":"integer","maximum":86400000,"minimum":-1000000}},"additionalProperties":false},"history":{"type":"array","items":{"type":"object","properties":{"gclid":{"type":"string","maxLength":200},"fbclid":{"type":"string","maxLength":200},"clickId":{"type":"string","maxLength":160}},"additionalProperties":false},"maxItems":500},"signals":{"type":"object","properties":{"ip":{"type":"string","maxLength":80},"headless":{"type":"boolean"},"keyCount":{"type":"integer","maximum":1000000,"minimum":0},"languages":{"type":"array","items":{"type":"string","maxLength":40},"maxItems":20},"userAgent":{"type":"string","maxLength":400},"webdriver":{"type":"boolean"},"clickCount":{"type":"integer","maximum":1000000,"minimum":0},"mouseMoves":{"type":"integer","maximum":1000000,"minimum":0},"screenWidth":{"type":"integer","maximum":20000,"minimum":0},"scrollCount":{"type":"integer","maximum":1000000,"minimum":0},"deviceMemory":{"type":"number","maximum":1024,"minimum":0},"pluginsCount":{"type":"integer","maximum":500,"minimum":0},"screenHeight":{"type":"integer","maximum":20000,"minimum":0},"timeOnPageMs":{"type":"integer","maximum":86400000,"minimum":0},"acceptLanguage":{"type":"string","maxLength":200},"maxTouchPoints":{"type":"integer","maximum":32,"minimum":0},"automationFlags":{"type":"array","items":{"type":"string","maxLength":40},"maxItems":20},"hardwareConcurrency":{"type":"integer","maximum":512,"minimum":0}},"additionalProperties":false},"campaign":{"type":"object","properties":{"source":{"type":"string","maxLength":80}},"additionalProperties":false},"referrer":{"type":"string","maxLength":500},"conversion":{"type":"object","required":["id"],"properties":{"at":{"type":"string","maxLength":40,"minLength":8},"id":{"type":"string","maxLength":120,"minLength":1},"value":{"type":"number","maximum":1000000000,"minimum":0},"clickId":{"type":"string","maxLength":160},"campaignId":{"type":"string","maxLength":80}},"additionalProperties":false},"landingUrl":{"type":"string","maxLength":500}}},"responseSchema":{"type":"json","example":{"signals":[{"type":"automation_flag","basis":"fact","fields":["signals.webdriver","signals.headless","signals.automationFlags"],"severity":"high","explanation":"A supplied automation flag adds 25 points."},{"type":"automation_ua_token","basis":"heuristic","fields":["signals.userAgent"],"severity":"medium","explanation":"An automation token in the User-Agent adds 20 points. It is a string match."},{"type":"implausible_dwell","basis":"heuristic","fields":["click.dwellMs"],"severity":"low","explanation":"A dwell under 50 ms adds 15 points. One short dwell is a weak indicator."},{"type":"duplicate_click_id","basis":"fact","fields":["click.clickId","click.gclid","click.fbclid","history"],"severity":"medium","explanation":"The click repeats an identifier from the supplied history and adds 30 points."},{"type":"conversion_before_click","basis":"fact","fields":["conversion.at","click.at"],"severity":"high","explanation":"The conversion is timestamped before the click and adds 25 points."}],"success":true,"verdict":"review","analysis":"The score sums the weights of attributes that are present. It is not a fraud accusation.","evidence":[{"kind":"calculation","detail":"Weights: automation flag 25, User-Agent token 20, short dwell 15, click before load 25, duplicate id 30, conversion before click 25, referrer mismatch 12. The sum is capped at 100.","fields":["click"]}],"confidence":"high","risk_score":100,"limitations":["The score is a capped sum of documented weights. It is not a probability of fraud and not an accusation.","Only attributes present on this request are weighted. Missing data reduces confidence and adds no points.","A User-Agent token, a short dwell, and a referrer mismatch are heuristics.","Duplicate identifiers and a conversion before its click are facts about the supplied records only."]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Nz0Zd3-ui3HuROtcplqov","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a digital ad click's behavioral signals, browser fingerprint, and click ID history to return a 0–100 fraud risk score with labeled signals and a verdict.","exampleAgentPrompt":"Score this ad click for fraud risk: the user clicked at coordinates (450, 320) after 180ms on the page, dwell time was 40ms, gclid is 'CjwKCAjw123abc', the user agent is 'HeadlessChrome/114', webdriver flag is true, IP is '203.0.113.42', and we've seen this gclid in our last 10 clicks history.","exampleUseCases":[{"title":"Google Ads click fraud screening","prompt":"We just got a click on our Google Ads campaign with gclid 'CjwKCAjw456xyz' — the dwell time was only 20ms, the user agent says HeadlessChrome, and webdriver is true. Score this click for fraud risk before we let it count as a conversion."},{"title":"Paid social duplicate click detection","prompt":"Check this Facebook ad click for fraud: fbclid is 'AZXkq789', the click happened at timestamp '2024-06-01T14:32:00Z', and we've seen this exact fbclid in our click history 3 times in the last hour. What's the risk score?"},{"title":"Conversion-before-click anomaly check","prompt":"Flag whether this conversion is suspicious — the conversion timestamp is '2024-06-01T09:00:00Z' but the original click timestamp is '2024-06-01T09:05:00Z', meaning the conversion happened before the click. Score the fraud risk on this click event."}],"resultDescription":"Returns a JSON object with: a numeric risk_score (0–100, capped sum of weighted signals), a verdict string (e.g. 'review', 'pass', 'block'), a confidence level, an array of triggered signals each with type, severity, basis (fact or heuristic), affected fields, and explanation, an evidence array with calculation details, and a limitations array clarifying what the score does and does not mean.","failureModes":["Missing required click.id field causes validation error","Truncated or malformed timestamps may reduce signal accuracy","Missing optional signals lower confidence and reduce score coverage","Duplicate click IDs only detected if history array is supplied","Conversion-before-click signal only fires if conversion object is included","Overly large history arrays (>500 items) rejected","Automation signals absent if browser fingerprint data not supplied"],"whenToPreferThis":"Use this endpoint when you need a transparent, deterministic, per-click fraud risk score with labeled signal explanations rather than a black-box ML model. Ideal for ad tech pipelines, campaign monitoring agents, and real-time conversion gating where you need an auditable score and no account setup. Prefer this over general IP reputation APIs when you have rich click-level behavioral data (dwell time, mouse moves, click coordinates, browser signals) and want signal-level explainability. The x402/USDC pay-per-call model means no subscription required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T18:39:59.848Z","isFirstParty":false,"canonicalSlug":"brainiac-ad-fraud-click-risk-score-c82cfc93"}