Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/treg/catalog/capabilities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ platforms:
people: {label: "People & contact data", category: "Enrichment", featured: 2, summary: "Enrich people and find or verify work contact details — role, company, email, phone."}
creators: {label: "Creators & influencers", category: "Enrichment", featured: 3, summary: "Find and enrich creators across Instagram, YouTube, TikTok, Twitch, X and OnlyFans — profile, audience, contact email, posts and lookalikes."}
jobs: {label: "Jobs & salaries", category: "Enrichment", summary: "Match open jobs to a candidate profile and benchmark salaries from posted pay."}
ip: {label: "IP address risk", category: "Enrichment", summary: "Fraud score, proxy, VPN, Tor and bot detection, and geolocation for any IP address."}

ebay: {label: "eBay", category: "E-commerce", summary: "Product listings and search results from eBay."}
walmart: {label: "Walmart", category: "E-commerce", summary: "Product listings and search results from Walmart."}
Expand Down
234 changes: 234 additions & 0 deletions src/treg/catalog/fraudnova.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
# FraudNova scores IP addresses, email addresses and phone numbers for fraud risk on prepaid credit
# packs: one credit per successful check, whatever the type. Every route returns the same envelope —
# `{success, data|results, credits_remaining}` on 200, `{success: false, message}` on 401/402/422/429/503.
# A 503 means the lookup failed upstream and the credit was refunded; the batch routes bill per item
# and report per-item errors instead. The full documented surface is eight operations; seven are
# listed here. GET /my-ip (free, unauthenticated, returns the caller's own IP) is left out on purpose:
# through treg's relay it would only ever answer with treg's egress address.
# UNVERIFIED by treg: prices below are transcribed from the vendor's docs and pricing section; the
# vendor's own live run is in the listing PR.
provider: fraudnova
source:
docs: https://fraudnova.com/docs
openapi: https://fraudnova.com/docs/openapi.json
curated: '2026-11-05'
limits: "600 requests/minute per API key and 10 in-flight checks per account (higher per-account limits on request); 429 with the standard error envelope when exceeded."
pricing_url: https://fraudnova.com/#pricing
proposed_capabilities:
ip.risk.score: "Score an IP address for fraud risk and flag proxy, VPN, Tor, bot and recent-abuse traffic"
ip.risk.score.batch: "Score a list of IP addresses for fraud and proxy risk in one request"
people.email.verify.batch: "Verify a list of email addresses in one request"
people.phone.verify.batch: "Validate a list of phone numbers in one request"
# The IP rows take a `mobile` switch (score the IP as a mobile device), not a person's phone.
proposed_people_data:
ip.risk.score: false
ip.risk.score.batch: false
people.email.verify.batch: true
people.phone.verify.batch: true

endpoints:
- id: fraudnova.ip.risk.score
added: '2026-11-05'
domain: risk
capability: ip.risk.score
platform: ip
scope: any_account
method: GET
path: /check
name: "Score an IP for fraud, proxy, VPN, Tor and bot risk"
summary: "Score a single IP"
input:
queryParams:
ip: {type: string, required: true, example: "8.8.8.8", note: "IPv4 or IPv6 address to score"}
strictness: {type: integer, required: false, default: 2, min: 0, max: 3, note: "0 (lenient) to 3 (strict); higher levels flag more addresses"}
mobile: {type: boolean, required: false, default: false, note: "true when the visitor is on a mobile connection"}
user_agent: {type: string, required: false, note: "the visitor's User-Agent; unlocks operating_system, browser and device fields"}
user_language: {type: string, required: false, note: "the visitor's Accept-Language, e.g. en-US"}
note: "data carries fraud_score (0–100), proxy, vpn, tor, active_vpn, active_tor, recent_abuse, bot_status, country_code, region, city, ISP, organization and ASN. operating_system, browser, device_brand and device_model are filled only when user_agent is sent."
test_request: {queryParams: {ip: "8.8.8.8"}}
cost:
type: per_success
value: 1
currency: credit
per: 1
unit: call
source: docs
source_url: https://fraudnova.com/docs
checked: '2026-11-05'
confidence: documented
note: "One credit per successful check. A 503 (upstream lookup failed) refunds the credit; 401, 402, 422 and 429 spend nothing. Repeating an address within a short window still costs a credit."
docs_url: https://fraudnova.com/docs

- id: fraudnova.people.email.verify
added: '2026-11-05'
domain: contacts
capability: people.email.verify
platform: people
scope: any_account
method: GET
path: /check/email
name: "Score an email for fraud, disposable and deliverability"
summary: "Score a single email address"
input:
queryParams:
email: {type: string, required: true, example: "support@github.com", note: "the address to check"}
note: "data carries valid, fraud_score (0–100), disposable, deliverability (high | medium | low), smtp_score, overall_score, catch_all, generic, common, dns_valid, honeypot, frequent_complainer, suspect, recent_abuse, leaked, spam_trap_score, risky_tld, spf_record, dmarc_record, first_seen, domain_age, result_type and sanitized_email. A syntactically valid but undeliverable address still answers 200 with valid false."
test_request: {queryParams: {email: "support@github.com"}}
cost:
type: per_success
value: 1
currency: credit
per: 1
unit: call
source: docs
source_url: https://fraudnova.com/docs
checked: '2026-11-05'
confidence: documented
note: "One credit per successful check, deliverable or not. A 503 (upstream lookup failed) refunds the credit; 401, 402, 422 and 429 spend nothing."
docs_url: https://fraudnova.com/docs

- id: fraudnova.people.phone.verify
added: '2026-11-05'
domain: contacts
capability: people.phone.verify
platform: people
scope: any_account
method: GET
path: /check/phone
name: "Score a phone number for fraud, VOIP, prepaid and carrier"
summary: "Score a single phone number"
input:
queryParams:
phone: {type: string, required: true, example: "+16502530000", note: "digits with an optional +, spaces, dashes or parentheses; international format or a national number with country"}
country: {type: string, required: false, example: "US", note: "ISO-3166 alpha-2 hint for a national-format number"}
note: "data carries valid, fraud_score (0–100), recent_abuse, VOIP, prepaid, risky, active, carrier, line_type, country, region, city, timezone, zip_code, dialing_code, do_not_call, leaked, spammer, active_status, formatted and local_format. The subscriber's name is never returned. An invalid number still answers 200 with valid false."
test_request: {queryParams: {phone: "+16502530000", country: "US"}}
cost:
type: per_success
value: 1
currency: credit
per: 1
unit: call
source: docs
source_url: https://fraudnova.com/docs
checked: '2026-11-05'
confidence: documented
note: "One credit per successful check, valid number or not. A 503 (upstream lookup failed) refunds the credit; 401, 402, 422 and 429 spend nothing."
docs_url: https://fraudnova.com/docs

- id: fraudnova.ip.risk.score.batch
added: '2026-11-05'
domain: risk
capability: ip.risk.score.batch
platform: ip
scope: any_account
method: POST
path: /check/batch
body_allowlist: true
name: "Score up to 100 IPs for fraud and proxy risk in one call"
summary: "Score up to 100 IPs in one request"
input:
bodyType: json
body:
ips: {type: array, items: {type: string}, required: true, minItems: 1, maxItems: 100, example: ["8.8.8.8"], note: "1–100 IPv4/IPv6 addresses"}
strictness: {type: integer, required: false, default: 2, min: 0, max: 3, note: "applies to the whole batch"}
mobile: {type: boolean, required: false, default: false, note: "applies to the whole batch"}
user_agent: {type: string, required: false, note: "applies to the whole batch"}
user_language: {type: string, required: false, note: "applies to the whole batch"}
note: "results has one entry per submitted item, in order: {ip, success, data, error}. data matches the single-IP check; error is invalid_ip, insufficient_credits or upstream_failed. The response is 200 whenever the envelope is valid, even if every item failed; 402 only when the balance was already zero."
test_request: {body: {ips: ["8.8.8.8"]}}
price:
value: '1'
currency: credit
per: 1
unit: result
note: "One credit per IP scored successfully; an item answering error (invalid_ip, upstream_failed, insufficient_credits) is free. results lists every submitted item, so counting it is an upper bound — a batch with failed items is charged less upstream. Once the balance reaches zero mid-batch the remaining items return insufficient_credits."
provenance:
source: docs
source_url: https://fraudnova.com/docs
checked: '2026-11-05'
confidence: documented
reserve: {entities: {from: body.ips, max: 100}}
settle: {count: {path: response.results}}
docs_url: https://fraudnova.com/docs

- id: fraudnova.people.email.verify.batch
added: '2026-11-05'
domain: contacts
capability: people.email.verify.batch
platform: people
scope: any_account
method: POST
path: /check/email/batch
body_allowlist: true
name: "Score up to 100 emails for fraud and deliverability"
summary: "Score up to 100 emails in one request"
input:
bodyType: json
body:
emails: {type: array, items: {type: string}, required: true, minItems: 1, maxItems: 100, example: ["support@github.com"], note: "1–100 email addresses"}
note: "results has one entry per submitted item, in order: {email, success, data, error}. data matches the single-email check; error is invalid_email, insufficient_credits or upstream_failed. The response is 200 whenever the envelope is valid, even if every item failed; 402 only when the balance was already zero."
test_request: {body: {emails: ["support@github.com"]}}
price:
value: '1'
currency: credit
per: 1
unit: result
note: "One credit per email checked successfully; an item answering error (invalid_email, upstream_failed, insufficient_credits) is free. results lists every submitted item, so counting it is an upper bound — a batch with failed items is charged less upstream."
provenance:
source: docs
source_url: https://fraudnova.com/docs
checked: '2026-11-05'
confidence: documented
reserve: {entities: {from: body.emails, max: 100}}
settle: {count: {path: response.results}}
docs_url: https://fraudnova.com/docs

- id: fraudnova.people.phone.verify.batch
added: '2026-11-05'
domain: contacts
capability: people.phone.verify.batch
platform: people
scope: any_account
method: POST
path: /check/phone/batch
body_allowlist: true
name: "Score up to 100 phone numbers for fraud and line type"
summary: "Score up to 100 phone numbers in one request"
input:
bodyType: json
body:
phones: {type: array, items: {type: string}, required: true, minItems: 1, maxItems: 100, example: ["+16502530000"], note: "1–100 phone numbers"}
country: {type: string, required: false, example: "US", note: "ISO-3166 alpha-2 hint applied to every national-format number in the batch"}
note: "results has one entry per submitted item, in order: {phone, success, data, error}. data matches the single-phone check; error is invalid_phone, insufficient_credits or upstream_failed. The response is 200 whenever the envelope is valid, even if every item failed; 402 only when the balance was already zero."
test_request: {body: {phones: ["+16502530000"], country: "US"}}
price:
value: '1'
currency: credit
per: 1
unit: result
note: "One credit per phone number checked successfully; an item answering error (invalid_phone, upstream_failed, insufficient_credits) is free. results lists every submitted item, so counting it is an upper bound — a batch with failed items is charged less upstream."
provenance:
source: docs
source_url: https://fraudnova.com/docs
checked: '2026-11-05'
confidence: documented
reserve: {entities: {from: body.phones, max: 100}}
settle: {count: {path: response.results}}
docs_url: https://fraudnova.com/docs

- id: fraudnova.account.usage
added: '2026-11-05'
kind: account
capability: account.usage
platform: account
scope: own_account
method: GET
path: /balance
name: "Get remaining credit balance"
summary: "Return the current credit balance (free, does not consume a credit)"
input:
note: "no parameters — the key rides in the Authorization header"
test_request: {queryParams: {}}
cost: {type: free, value: 0, currency: USD, unit: call, note: "free — this is the registry's health probe; a bad key answers 401 here"}
docs_url: https://fraudnova.com/docs
1 change: 1 addition & 0 deletions src/treg/catalog/fx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
credit_rates_usd:
upspring: {usd: 0.0745, basis: "Starter monthly: $149 / 2,000 credits", source: "https://www.upspring.ai/pricing", checked: "2026-12-06"}
airscale: {usd: 0.01225, basis: "Starter monthly: $49 / 4,000 credits", source: "https://airscale.io/pricing", checked: "2026-11-29"}
fraudnova: {usd: 0.008, basis: "Smallest credit pack, the dearest per credit: $40 / 5,000 credits = $0.008 per credit. One credit is one IP, email or phone check; larger packs cost less per credit, down to $0.005 at 200,000 credits", source: "https://fraudnova.com/#pricing", checked: "2026-11-05"}
orbisearch: {usd: 0.0062, basis: "Purchased 10,000 credits for $62 = $0.0062 per credit; 0.2 credits per verification and one per finder search or company enrichment", source: "Account owner supplied purchase and https://orbisearch.com/docs/concepts/credits", checked: "2026-10-28"}
dropcontact: {usd: 0.034, basis: "Operator-supplied Growth tier: EUR 120 / 4,000 credits = EUR 0.03 per credit, converted at EUR 1 = USD 1.1150 to USD 0.03345 and rounded up to USD 0.034. Unused credits increase effective cost; carry-over can offset that", source: "Operator-supplied plan and https://www.dropcontact.com/pricing and https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml", checked: "2026-10-28"}
anymailfinder: {usd: 0.020, basis: "Operator-supplied 10,000-credit monthly plan: $199 / 10,000 credits = $0.0199 per credit, rounded up to $0.020 platform replacement cost", source: "Operator-supplied plan and https://anymailfinder.com/pricing", checked: "2026-10-28"}
Expand Down
1 change: 1 addition & 0 deletions src/treg/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ def _provider_rate_configuration(self):
platform_key_millionphones: str = "" # x-api-key header; plan credits, free balance on /v1/credits
platform_key_forager: str = "" # X-API-KEY header; monthly plan credits, free balance on /api/users/current/
platform_key_forager_account: str = "" # the account id bound to that key, filled into every path — BOTH must be set
platform_key_fraudnova: str = "" # Bearer key (fn_…); prepaid credit packs, 1 credit per IP, email or phone check, fx.yaml $0.008/credit
# (tomba's data routes need the header pair; TOMBA.platform_extra_setting names this second slot)
platform_key_influencersclub: str = "" # Bearer key (dashboard JWT); creator discovery + enrichment, fx.yaml $0.598/credit
platform_key_crustdata: str = "" # Bearer key; every call also needs the pinned x-api-version header
Expand Down
13 changes: 13 additions & 0 deletions src/treg/domain/capacity/collectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,18 @@ async def _forager(c, key):
"note": f"plan {tier}, subscription {'active' if sub.get('is_active') else 'inactive'}"}


async def _fraudnova(c, key):
# Free. GET /balance answers {"success": true, "credits_remaining": N} (whole prepaid credits,
# one per IP, email or phone check) and 401 for a bad key; it never spends a credit.
d = await _get(c, "https://fraudnova.com/api/v1/balance",
headers={"Authorization": f"Bearer {key}", "Accept": "application/json"})
raw = d.get("credits_remaining") if isinstance(d, dict) and d.get("success") is True else None
balance = _finite(raw) if not isinstance(raw, bool) else None
if balance is None or balance < 0:
raise ValueError("FraudNova balance returned an invalid credit count")
return {"value": balance, "unit": "credits", "note": "prepaid credit balance"}


async def _predictleads(c, key):
# The platform slot holds base64("api_key:api_token") for HTTP Basic — pass it straight through.
d = await _get(c, "https://predictleads.com/api/v3/api_subscription",
Expand Down Expand Up @@ -1251,6 +1263,7 @@ async def _piapi(c, key):
"descovo": _descovo,
"upcell": _upcell,
"surfe": _surfe,
"fraudnova": _fraudnova,
"dataforseo": _dataforseo,
"tikhub": _tikhub,
"tinyfish": _tinyfish,
Expand Down
6 changes: 6 additions & 0 deletions src/treg/domain/capacity/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
"trestleiq": ("cash", "auto_recharge", "manual"),
# Prepaid bundles bought by hand; the free balance route returns the exact credit count.
"hlrlookup": ("credits", "manual", "api"),
# Prepaid credit packs bought by hand; the free balance route returns the exact credit count.
"fraudnova": ("credits", "manual", "api"),
"tavily": ("credits", "manual", "api"),
"search1api": ("credits", "auto_recharge", "api"),
"bravesearch": ("cash", "auto_recharge", "manual"),
Expand Down Expand Up @@ -167,6 +169,8 @@
# network, answering 429 (unbilled) above about 200 requests/s. It publishes no per-second
# quota, so the shared key keeps a conservative pace; BYOK calls bypass this limiter.
"hlrlookup": {"limit": 50, "window_s": 1, "source": "policy"},
# FraudNova documents 600 requests/minute per key; BYOK calls bypass this limiter.
"fraudnova": {"limit": 600, "window_s": 60, "source": "docs"},
# The account's allowance for Search requests. Fetch counts URLs and Agent limits concurrency;
# upstream remains the authority for those differently-shaped limits.
"tinyfish": {"limit": 1000, "window_s": 60, "source": "policy"},
Expand Down Expand Up @@ -296,6 +300,8 @@
# The key reports its concurrency room in every answer (usage.remaining_before.concurrent).
"crawl4ai": 500,
"hlrlookup": 210,
# FraudNova caps each account at 10 in-flight checks (429 above it); raised on request.
"fraudnova": 10,
# The key status API reports its configured concurrency limit.
"litescrape": 100,
# treg's own conservative setting for the shared account (catalog row `limits`).
Expand Down
3 changes: 3 additions & 0 deletions src/treg/domain/capacity/signatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ def __post_init__(self):
# same answer a wrong token gets. Apify also reads a `token` query parameter, and every Apify row
# refuses one on treg's key, so only treg's token can reach Apify there.
Signature("apify", 401, r'"type"\s*:\s*"user-or-token-not-found"', "balance"),
# FraudNova refuses a check with 402 {"success": false, "message": "Insufficient credits."} when
# the prepaid balance is zero; batch routes answer 200 with per-item insufficient_credits instead.
Signature("fraudnova", 402, r'"message"\s*:\s*"insufficient credits', "balance"),
# Tomba: a route's spent allowance is a 429 "You have reached your usage limit", with no Retry-After.
Signature("tomba", 429, r"reached your usage limit", "quota", tripwire=True),
# Fish Audio: too many requests in flight is a 429 "exceeded your current concurrency limit", no Retry-After.
Expand Down
Loading
Loading