本页内容

API

API 参考文档

API · Pro测试版
API 密钥与额度
本页内容

身份验证

注意

需要额度:有效的 Pro 账户每月包含的20个额度,或在账户页面购买的额度。两者都没有的账户会收到 403 pro_required。

重要

此密钥仅显示一次。请将其安全保存在服务器上。

在账户中创建 API 密钥并复制仅显示一次的值。将 NOCALL_API_KEY 配置为服务器秘密。使用 HTTPS,不要在浏览器代码、仓库、截图或日志中放入密钥。

在 Authorization: Bearer 中发送完整密钥,Bearer 后留一个空格。不要使用 X-API-Key,也不要把密钥放入 URL。

在 /v1/data/* + /v2/* 中,有效密钥代替浏览器的 ByteGuard 证明。仍会检查过期、撤销、订阅、额度和频率限制,不会授权其他路由。openapi.json 和 products 是公开的。

HTTP
Authorization: Bearer <NOCALL_API_KEY>

首次查询

全部 46 个 tools 均可通过 API 使用:调用 POST /v2/<tool-id>,或调用 POST /v2/tools 并在请求体中加入 tool 字段。每个 tool 都有自己的 JSON 请求体,详见其指南。data.result 包含 tool 的结果。请使用表中的标识符。

每个新操作都应生成新的 Idempotency-Key。只有使用相同输入重试同一操作时才保留该标识。

bash
REQUEST_ID="$(uuidgen)" && [ -n "$REQUEST_ID" ] &&
curl --request POST 'https://api.nocall.io/v2/tools' \
  --header "Authorization: Bearer $NOCALL_API_KEY" \
  --header 'Content-Type: application/json' \
  --header "Idempotency-Key: $REQUEST_ID" \
  --data '{"tool":"who-calls","phone":"+12025550123","country":"US"}'

API v2 · tools

全部 46 个 tools 均可通过 API 使用:调用 POST /v2/<tool-id>,或调用 POST /v2/tools 并在请求体中加入 tool 字段。每个 tool 都有自己的 JSON 请求体,详见其指南。data.result 包含 tool 的结果。请使用表中的标识符。

tool用途POST虚构示例
who-calls谁在给我打电话?/v2/who-calls{"phone":"+12025550123","country":"US"}
phone-exposure我的号码泄露了吗?/v2/phone-exposure{"phone":"+12025550123","country":"US"}
phone-intelligence电话情报/v2/phone-intelligence{"phone":"+12025550123","country":"US"}
phone-risk电话风险/v2/phone-risk{"phone":"+12025550123","country":"US"}
carrier-lookup查询运营商/v2/carrier-lookup{"phone":"+12025550123","country":"US"}
verified-business反查已验证企业/v2/verified-business{"phone":"+12025550123","country":"US"}
phone-formats电话号码格式/v2/phone-formats{"phone":"+34912345678","country":"ES"}
callback-cost回拨要花多少钱?/v2/callback-cost{"phone":"806123456","country":"ES"}
prefix-origin这个区号是哪里的?/v2/prefix-origin{"phone":"910","country":"ES"}
number-validator电话号码验证与格式化/v2/number-validator{"phone":"+12025550123","country":"US"}
line-type是手机还是固话?/v2/line-type{"phone":"+34600111222","country":"ES"}
premium-rate这是增值付费号码吗?/v2/premium-rate{"phone":"806","country":"ES"}
wangiriwangiri检查:这个未接来电是诈骗吗?/v2/wangiri{"phone":"+216","country":"ES"}
commercial-400这通推销电话合法吗?/v2/commercial-400{"phone":"+34400000000","country":"ES"}
number-research用 AI 调查号码/v2/number-research{"phone":"+12025550123","country":"US","language":"en"}
dial-code有人让你拨一串代码?/v2/dial-code{"code":"**21*+34600000000#","country":"ES"}
call-scam-check这个电话是诈骗吗?/v2/call-scam-check{"answers":{"impersonation":true,"sms_code":true,"pressure":true},"country":"ES"}
sms-check检查短信是否为诈骗/v2/sms-check{"message":"Your parcel is held. Pay the fee at https://example.invalid/pay","sender":"Correos","language":"en","country":"GB"}
sms-brand这条品牌短信是真的吗?/v2/sms-brand{"brand":"correos","link":"https://correos-envio.example.invalid/pago","country":"ES"}
sms-sender这条短信是谁发的?/v2/sms-sender{"sender":"Correos","country":"ES"}
sms-code有人向你索要短信验证码?/v2/sms-code{"unrequested":true,"asked":true,"sensitive":true,"shared":false}
sms-report诈骗短信去哪里举报/v2/sms-report{"sender":"Correos","tapped":false,"gaveData":false,"country":"ES"}
sms-campaigns短信诈骗活动/v2/sms-campaigns{}
sms-redact删除短信中的个人信息/v2/sms-redact{"message":"BBVA: su tarjeta 4111 1111 1111 1111 ha sido bloqueada. Llame al +34 612 34 56 78 o entre en https://bbva-seguro.com/login"}
callback-number要拨打这条消息里的号码吗?/v2/callback-number{"text":"Your account is locked. Call us now on 0909 879 0000 or +216 71 123 456","country":"GB"}
prefix-directory区号/v2/prefix-directory{"country":"ES","serviceClass":"premium","page":1,"limit":3}
operator-directory运营商/v2/operator-directory{"country":"ES","operator":"Movistar"}
calling-codes国际区号/v2/calling-codes{"query":"216","language":"en"}
spam-directory骚扰号码/v2/spam-directory{"country":"US","category":"SCAM","page":1,"limit":20}
trends数据洞察/v2/trends{"country":"ES"}
smishing什么是短信钓鱼?/v2/smishing{"message":"CORREOS: su paquete está retenido. Pague urgente las tasas en https://correos-entrega.info/pago","country":"ES"}
link-check检查链接/v2/link-check{"url":"http://192.168.1.1/login","country":"ES"}
safety-tools安全工具/v2/safety-tools{"text":"URGENTE: su cuenta BBVA ha sido bloqueada, verifique en https://bbva-seguro.com/login","mode":"email","country":"ES"}
sms-filter垃圾短信过滤/v2/sms-filter{"country":"ES"}
qr-check这个二维码安全吗?/v2/qr-check{"payload":"BCD\n002\n1\nSCT\n\nAparcamientos Ejemplo SL\nES9121000418450200051332\nEUR49.90\n\n\nMulta de aparcamiento 4471","country":"ES"}
email-headers这封邮件是真的吗?/v2/email-headers{"headers":"Delivered-To: [email protected]\nReceived: from mail.bank.example (mail.bank.example [192.0.2.10]) by mx.google.com with ESMTPS id x1 for <[email protected]>; Tue, 27 Oct 2026 09:00:00 -0700\nAuthentication-Results: mx.google.com; dkim=pass [email protected] header.s=s1; spf=pass (google.com: domain of [email protected] designates 192.0.2.10 as permitted sender) [email protected]; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bank.example\nFrom: \"Bank Alerts\" <[email protected]>\nReply-To: [email protected]\nSubject: Your statement is ready\nMessage-ID: <[email protected]>","country":"ES"}
mx-lookup查询 MX 记录/v2/mx-lookup{"domain":"example.com"}
spf-check检查 SPF/v2/spf-check{"domain":"example.com"}
dmarc-check检查 DMARC/v2/dmarc-check{"domain":"example.com"}
dkim-check检查 DKIM/v2/dkim-check{"domain":"example.com","selector":"s1"}
email-verify检查邮箱地址/v2/email-verify{"email":"[email protected]"}
website-age这个网站是什么时候建的?/v2/website-age{"url":"https://www.example.com/login","country":"ES"}
domain-popularity域名知名度/v2/domain-popularity{"url":"https://shop.example.com/cart","country":"ES"}
website-legit这个网站靠谱吗?/v2/website-legit{"url":"https://[email protected]/login","country":"ES"}
ip-lookupIP 地址查询/v2/ip-lookup{"ip":"193.0.6.139"}
ssl-checkSSL 证书检查/v2/ssl-check{"url":"https://www.example.com/login","country":"ES"}

可用端点

仅显示经审核或公开的技术信息,不显示私人身份和防护信号。

API v1 · phone 必填,最多64个字符,建议使用 E.164。country 是受支持的双字母国家代码,可选,默认为 ES。Content-Type 必须为 application/json。

HTTPURL用途使用要求
POST/v2/tools通过 API 使用Authorization: Bearer · Pro
GET/v2/toolsNoCall 产品目录Authorization: Bearer · Pro
GET/v2/openapi.jsonOpenAPI 3.1—
POST/v2/who-calls谁在给我打电话?Authorization: Bearer · Pro
POST/v2/phone-exposure我的号码泄露了吗?Authorization: Bearer · Pro
POST/v2/phone-intelligence电话情报Authorization: Bearer · Pro
POST/v2/phone-risk电话风险Authorization: Bearer · Pro
POST/v2/carrier-lookup查询运营商Authorization: Bearer · Pro
POST/v2/verified-business反查已验证企业Authorization: Bearer · Pro
POST/v2/phone-formats电话号码格式Authorization: Bearer · Pro
POST/v2/callback-cost回拨要花多少钱?Authorization: Bearer · Pro
POST/v2/prefix-origin这个区号是哪里的?Authorization: Bearer · Pro
POST/v2/number-validator电话号码验证与格式化Authorization: Bearer · Pro
POST/v2/line-type是手机还是固话?Authorization: Bearer · Pro
POST/v2/premium-rate这是增值付费号码吗?Authorization: Bearer · Pro
POST/v2/wangiriwangiri检查:这个未接来电是诈骗吗?Authorization: Bearer · Pro
POST/v2/commercial-400这通推销电话合法吗?Authorization: Bearer · Pro
POST/v2/number-research用 AI 调查号码Authorization: Bearer · Pro
POST/v2/dial-code有人让你拨一串代码?Authorization: Bearer · Pro
POST/v2/call-scam-check这个电话是诈骗吗?Authorization: Bearer · Pro
POST/v2/sms-check检查短信是否为诈骗Authorization: Bearer · Pro
POST/v2/sms-brand这条品牌短信是真的吗?Authorization: Bearer · Pro
POST/v2/sms-sender这条短信是谁发的?Authorization: Bearer · Pro
POST/v2/sms-code有人向你索要短信验证码?Authorization: Bearer · Pro
POST/v2/sms-report诈骗短信去哪里举报Authorization: Bearer · Pro
POST/v2/sms-campaigns短信诈骗活动Authorization: Bearer · Pro
POST/v2/sms-redact删除短信中的个人信息Authorization: Bearer · Pro
POST/v2/callback-number要拨打这条消息里的号码吗?Authorization: Bearer · Pro
POST/v2/prefix-directory区号Authorization: Bearer · Pro
POST/v2/operator-directory运营商Authorization: Bearer · Pro
POST/v2/calling-codes国际区号Authorization: Bearer · Pro
POST/v2/spam-directory骚扰号码Authorization: Bearer · Pro
POST/v2/trends数据洞察Authorization: Bearer · Pro
POST/v2/smishing什么是短信钓鱼?Authorization: Bearer · Pro
POST/v2/link-check检查链接Authorization: Bearer · Pro
POST/v2/safety-tools安全工具Authorization: Bearer · Pro
POST/v2/sms-filter垃圾短信过滤Authorization: Bearer · Pro
POST/v2/qr-check这个二维码安全吗?Authorization: Bearer · Pro
POST/v2/email-headers这封邮件是真的吗?Authorization: Bearer · Pro
POST/v2/mx-lookup查询 MX 记录Authorization: Bearer · Pro
POST/v2/spf-check检查 SPFAuthorization: Bearer · Pro
POST/v2/dmarc-check检查 DMARCAuthorization: Bearer · Pro
POST/v2/dkim-check检查 DKIMAuthorization: Bearer · Pro
POST/v2/email-verify检查邮箱地址Authorization: Bearer · Pro
POST/v2/website-age这个网站是什么时候建的?Authorization: Bearer · Pro
POST/v2/domain-popularity域名知名度Authorization: Bearer · Pro
POST/v2/website-legit这个网站靠谱吗?Authorization: Bearer · Pro
POST/v2/ip-lookupIP 地址查询Authorization: Bearer · Pro
POST/v2/ssl-checkSSL 证书检查Authorization: Bearer · Pro
GET/v1/data/accountAPI 密钥与额度Authorization: Bearer
POST/v1/data/phone-lookups电话情报Authorization: Bearer · Pro
POST/v1/data/phone-risk-checks电话风险Authorization: Bearer · Pro
POST/v1/data/carrier-lookups查询运营商Authorization: Bearer · Pro
POST/v1/data/reverse-phone-lookups反查已验证企业Authorization: Bearer
POST/v1/data/phone-exposure-checks我的号码泄露了吗?Authorization: Bearer · Pro
POST/v1/data/bulk-lookups批量电话查询Authorization: Bearer
GET/v1/data/productsNoCall 产品目录—
GET/v1/data/openapi.jsonOpenAPI 3.1—

响应

说明

此示例为虚构内容,并非真实查询。请勿拨打电话或打开其中的链接。

data 包含结果,meta 包含 requestId、unitsCharged 和用量。虚构片段显示一次查询后的余额。有效但未找到数据的结果也消耗1额度;验证错误、提供方错误和余额读取不收费。没有数据不代表号码安全。完整约定见 OpenAPI。

JSON · who-calls
{
  "data": {
    "tool": "who-calls",
    "result": {
      "phoneNumber": "+12025550123",
      "found": true,
      "updatedAt": "2026-10-01T09:30:00.000Z",
      "risk": {
        "score": 72,
        "level": "high"
      },
      "reportCount": 14,
      "categories": [
        "TELEMARKETING"
      ],
      "verified": false,
      "carrier": null,
      "verifiedBusiness": null
    }
  },
  "meta": {
    "requestId": "req_example",
    "unitsCharged": 1,
    "usage": {
      "periodStart": "2026-10-01",
      "unitLimit": 20,
      "unitsUsed": 3,
      "unitsRemaining": 17
    }
  }
}
tooldata.result
who-callsphoneNumber, found, updatedAt, risk, reportCount, categories, verified, carrier, verifiedBusiness
phone-exposureatRisk
phone-intelligencephoneNumber, found, updatedAt, risk, reportCount, categories, verified, carrier, verifiedBusiness, commentCount, aiRiskLevel, prefixRisk
phone-riskphoneNumber, found, updatedAt, risk, signals
carrier-lookupphoneNumber, found, updatedAt, carrier
verified-businessphoneNumber, found, updatedAt, verifiedBusiness
phone-formatse164, national, international, callingCode, country, valid
callback-costtier, scope, callingCode, registry
prefix-originkind, planLoaded, numberType, foreignCode, national, row, complete, rows, factsType
number-validatorvalid, possible, country, callingCode, type, e164
line-typee164, valid, type, lineKind
premium-ratecategory, callbackRisk, prefix, callingCode, source
wangiriverdict, code, nanpArea, entry
commercial-400verdict, prefix
number-researchanswer, sources, countryCode, language, cached
dial-codecode, kind, action, service, forwardsTo, calls, risk, undo, operator
call-scam-checkverdict, signals, actions, reportChannel
sms-checkverdict, confidence, reason
sms-brandverdict, host, brand, officialDomains, sightings
sms-senderkind, tooLong, brand, lookalike, digits, code
sms-codeverdict, severity, serviceRecoverySteps, stepCodes
sms-reportchannel, verified, stepCodes, reportFields
sms-campaignstotalCampaigns, totalSightings, topBrands, topDomains
sms-redacttext, counts, total
callback-numbernumbers, signals, attention
prefix-directorycountryCode, callingCode, planVersion, total, page, limit, hasMore, rows
operator-directoryoperators, specialPrefixes
calling-codesrows, total
spam-directoryview, totals, categories, topReported, category, total, page, limit, hasMore, rows
trendstotals, activity24h, verification, freshness, categoryDistribution, phoneTypes, topOperators, growthTimeline, topPrefixes, searchTrends, communityDistribution, impersonationRanking, aiBreakdown
smishingverdict, score, attention, signals, hosts, linkFlags, brand, brandSlug
link-checkhost, hostAscii, official, brand, hosts, linkFlags, signals, attention
safety-toolsattention, signals, hosts, linkFlags
sms-filtercountry, version, updatedAt, source, counts
qr-checkpayload, signals, attention, hosts, linkFlags, link, numbers
email-headersfromDomain, fromDomainAscii, displayName, replyToDomain, returnPathDomain, senderDomain, subject, auth, authenticated, brand, official, freeMail, signals, attention
mx-lookupdomain, domainAscii, found, records, nullMx, implicitMx, acceptsMail, provider, signals, attention
spf-checkdomain, domainAscii, found, record, recordCount, terms, allResult, lookups, includes, signals, valid, attention
dmarc-checkdomain, domainAscii, found, record, foundAt, inherited, policy, subdomainPolicy, effectivePolicy, percentage, alignment, reports, signals, valid, attention
dkim-checkdomain, domainAscii, selectorGiven, selectorsTried, keys, signals, attention
email-verifydomain, domainAscii, status, syntaxValid, acceptsMail, mx, disposable, role, freeMail, suggestion, signals, attention
website-agedomain, domainAscii, rdapAvailable, found, registeredDomain, registered, updated, expires, ageDays, registrar, status, campaigns, signals, attention
domain-popularitydomain, domainAscii, ranked, rank, rankedDomain, refSubnets, refIps, listSize, updated, source
website-legitdomain, domainAscii, verdict, official, brand, ageDays, registered, ranked, rank, campaigns, signals, linkFlags, attention, checks
ip-lookupip, version, public, reverseDns, country, network, tor, hosting, hint, signals, attention, checks
ssl-checkdomain, domainAscii, reachable, unreachableReason, ip, protocol, valid, authorizationError, hostnameMatch, selfSigned, subject, san, sanCount, issuerOrganization, issuerCommonName, validFrom, validTo, ageDays, daysLeft, signals, attention

额度和限制

说明

开通 Pro 每月免费获得 20 个点数

每次 API 调用消耗 1 个点数,优先使用每月点数。

重新生成会停用之前的密钥。额度余额保持不变。

cURL
curl 'https://api.nocall.io/v1/data/account' \
  --header "Authorization: Bearer $NOCALL_API_KEY"

重试与批量查询

每个新操作都应生成新的 Idempotency-Key。只有使用相同输入重试同一操作时才保留该标识。

Idempotency-Key 在单次查询中可选,批量查询中必填:8至128个字母、数字、点、连字符、下划线或冒号。重试时保持相同的标识、路径、API 密钥和请求体。重放响应不重复收费。响应不明确时先检查余额。

批量请求最多50项。product 选择操作。开始前余额必须足以覆盖所有有效输入;仅对已完成的有效结果收费。并发请求共享余额,若最终扣费前余额耗尽,会返回429且不收本次费用。

Idempotency-Key
8–128 ASCII: A–Z a–z 0–9 . _ : -
TTL: 24 h
product
phone-lookup
phone-risk
carrier-lookup
reverse-phone-lookup
phone-exposure
cURL
REQUEST_ID="$(uuidgen)" && [ -n "$REQUEST_ID" ] &&
curl --request POST 'https://api.nocall.io/v1/data/bulk-lookups' \
  --header "Authorization: Bearer $NOCALL_API_KEY" \
  --header 'Content-Type: application/json' \
  --header "Idempotency-Key: $REQUEST_ID" \
  --data '{"product":"phone-risk","inputs":[{"phone":"+12025550123","country":"US"}]}'

故障排查

HTTP理解结果
401缺少密钥、Bearer 格式错误,或密钥已过期、撤销。检查请求头或创建新密钥。
403需要额度:有效的 Pro 账户每月包含的20个额度,或在账户页面购买的额度。两者都没有的账户会收到 403 pro_required。
400 / 422检查 JSON、phone、country 和 Idempotency-Key。验证错误不消耗额度。
409幂等标识已用于不同请求体,或请求仍在处理中。重试相同操作时保持请求体并等待。
429额度耗尽或达到请求频率限制。查看 /account 和 X-RateLimit-Remaining;如有 Retry-After,请遵守。ai_busy 表示 AI 繁忙:该请求不计费,请在 Retry-After 后重试。
500 / 503服务或提供方不可用,或测试版已关闭。稍后用相同 Idempotency-Key 重试,避免连续立即重试。tool_warming 表示 tool 仍在启动:该请求不计费,请在 Retry-After 后重试。