身份与验证 · DomScan 产品

电话号码情报 API 参考

解析、验证、分类和格式化全球电话号码,并在有数据时补充离线的归属地区、时区、号段原始运营商、拨号、短号码和监管机构分配信息。

你将获得什么

解析、验证、分类和格式化全球电话号码,并在有数据时补充离线的归属地区、时区、号段原始运营商、拨号、短号码和监管机构分配信息。

同步批量RESTMCPSDK交互式工具

适合选择此产品的场景

适用对象

用于改善表单处理、确定人工审查优先级、补充组织资料,并连接网站声明的资产。

适合选择此产品的场景

需要解析、格式化并评估公开号码和线路类型信号时选择。不证明可达性、所有权或用户身份。

你将获得什么

解析、验证、分类和格式化全球电话号码,并在有数据时补充离线的归属地区、时区、号段原始运营商、拨号、短号码和监管机构分配信息。

端点

集成之前,先了解每个端点接受和返回的内容、支持的模式及其限制。

POST /v1/phone/validate 查看 API 参考
POST /v1/phone/validate/bulk 查看 API 参考

积分和身份验证

1 需要身份验证。确切费用(包括按项目计价的部分)请参阅 API 参考。

操作示例

使用文档化的操作来收集、评估、补充、验证、比较、保护或监测公开证据。

POST/v1/phone/validate积分: 1

正文参数

参数类型必需
phonestring必需
default_countrystring可选
expected_countrystring可选
dialing_from_countrystring可选
languagestring可选

响应字段

字段类型
inputstring
normalized_inputstring
kindstring
validboolean
possibleboolean
statusstring
recommendationstring
validation_levelstring
reasonstring | null
warnings[]string[]
numberobject
number.e164string
number.internationalstring
number.nationalstring
number.rfc3966string
number.national_numberstring
number.extensionstring | null
number.countrystring | null
number.country_namestring | null
number.country_calling_codestring
number.possible_countries[]string[]
number.country_matchboolean | null
number.typestring
number.non_geographicboolean
live_checksobject
live_checks.assignmentstring
live_checks.reachabilitystring
live_checks.current_carrierstring
live_checks.subscriber_identitystring
live_checks.portingstring
privacyobject
privacy.upstream_requestsinteger
privacy.telecom_provider_queriedboolean
privacy.persistedboolean
privacy.domscan_edge_relay_usedboolean
privacy.third_party_requestsinteger
intelligenceobject
intelligence.statusstring
intelligence.kindstring | null
intelligence.reasonstring | null
intelligence.coverageobject
intelligence.coverage.countrystring | null
intelligence.coverage.levelstring
intelligence.coverage.global_numbering_metadataboolean
intelligence.coverage.official_snapshot_availableboolean
intelligence.coverage.official_allocation_matchboolean
intelligence.coverage.official_source_ids[]string[]
intelligence.coverage.matching_source_ids[]string[]
intelligence.coverage.current_carrier_lookupboolean
intelligence.locationobject
intelligence.location.labelstring | null
intelligence.location.country_namestring | null
intelligence.location.countrystring | null
intelligence.location.languagestring
intelligence.location.granularitystring
intelligence.location.current_physical_locationboolean
intelligence.possible_time_zonesobject
intelligence.possible_time_zones.values[]string[]
intelligence.possible_time_zones.current_locationboolean
intelligence.possible_time_zones.inferencestring
intelligence.original_prefix_carrierobject
intelligence.original_prefix_carrier.namestring | null
intelligence.original_prefix_carrier.source_idstring | null
intelligence.original_prefix_carrier.evidencestring
intelligence.original_prefix_carrier.current_carrierboolean
intelligence.original_prefix_carrier.portability_may_change_carrierboolean
intelligence.portabilityobject
intelligence.portability.region_supportedboolean
intelligence.portability.current_port_checkedboolean
intelligence.dialingobject
intelligence.dialing.from_countrystring | null
intelligence.dialing.internationalstring | null
intelligence.dialing.mobilestring | null
intelligence.dialing.internationally_diallableboolean
intelligence.number_detailsobject
intelligence.number_details.geographicalboolean
intelligence.number_details.geographical_area_codestring | null
intelligence.number_details.geographical_area_code_lengthinteger
intelligence.number_details.national_destination_codestring | null
intelligence.number_details.national_destination_code_lengthinteger
intelligence.number_details.subscriber_number_lengthinteger
intelligence.number_details.mobile_tokenstring | null
intelligence.service_signalsobject
intelligence.service_signals.number_typestring
intelligence.service_signals.geographicalboolean
intelligence.service_signals.toll_freeboolean
intelligence.service_signals.premium_rateboolean
intelligence.service_signals.shared_costboolean
intelligence.service_signals.voipboolean
intelligence.service_signals.personal_numberboolean
intelligence.service_signals.likely_sms_capableboolean | null
intelligence.short_numberobject
intelligence.short_number.regionstring
intelligence.short_number.possibleboolean
intelligence.short_number.validboolean
intelligence.short_number.emergencyboolean
intelligence.short_number.connects_to_emergencyboolean
intelligence.short_number.sms_serviceboolean
intelligence.short_number.carrier_specificboolean
intelligence.short_number.expected_coststring
intelligence.regulator_allocations[]object[]
intelligence.regulator_allocations[]object
intelligence.regulator_allocations[].authoritystring
intelligence.regulator_allocations[].countrystring
intelligence.regulator_allocations[].matched_prefixstring
intelligence.regulator_allocations[].matched_range_endstring | null
intelligence.regulator_allocations[].match_kindstring
intelligence.regulator_allocations[].categorystring
intelligence.regulator_allocations[].statusstring
intelligence.regulator_allocations[].original_assigneestring | null
intelligence.regulator_allocations[].operator_codestring | null
intelligence.regulator_allocations[].regionstring | null
intelligence.regulator_allocations[].service_descriptionstring | null
intelligence.regulator_allocations[].assigned_onstring | null
intelligence.regulator_allocations[].effective_onstring | null
intelligence.regulator_allocations[].expires_onstring | null
intelligence.regulator_allocations[].current_operatorboolean
intelligence.regulator_allocations[].portability_includedboolean
intelligence.regulator_allocations[].individual_number_assignment_checkedboolean
intelligence.regulator_allocations[].source_idstring
intelligence.regulator_allocations[].source_filestring | null
intelligence.regulator_allocations[].detailsobject
intelligence.sources[]object[]
intelligence.sources[]object
intelligence.sources[].idstring
intelligence.sources[].namestring
intelligence.sources[].typestring
intelligence.sources[].versionstring | null
intelligence.sources[].updated_atstring | null
intelligence.sources[].retrieved_atstring | null
intelligence.sources[].age_daysinteger | null
intelligence.sources[].record_countinteger | null
intelligence.sources[].licensestring | null
intelligence.sources[].license_urlstring | null
intelligence.sources[].urlstring
intelligence.sources[].attributionstring | null
intelligence.warnings[]string[]
intelligence.relayobject
intelligence.relay.configuredboolean
intelligence.relay.usedboolean
intelligence.relay.persistedboolean
limitations[]string[]
metadataobject
metadata.enginestring
metadata.metadata_basisstring
credits_usedinteger

请求示例

curl -X POST "https://domscan.net/v1/phone/validate" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $DOMSCAN_API_KEY" \
  -d '{
  "phone": "+34 612 345 678",
  "default_country": "ES",
  "expected_country": "ES",
  "dialing_from_country": "ES",
  "language": "es"
}'
const response = await fetch("https://domscan.net/v1/phone/validate", {
  method: "POST",
  headers: { "X-API-Key": process.env.DOMSCAN_API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    "phone": "+34 612 345 678",
    "default_country": "ES",
    "expected_country": "ES",
    "dialing_from_country": "ES",
    "language": "es"
  }),
});
const data = await response.json();
console.log(data);
import os
import requests

response = requests.post(
    "https://domscan.net/v1/phone/validate",
    headers={"X-API-Key": os.environ["DOMSCAN_API_KEY"]},
    json={
        "phone": "+34 612 345 678",
        "default_country": "ES",
        "expected_country": "ES",
        "dialing_from_country": "ES",
        "language": "es",
    },
)
print(response.json())
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
	"strings"
)

func main() {
	body := strings.NewReader(`{
	  "phone": "+34 612 345 678",
	  "default_country": "ES",
	  "expected_country": "ES",
	  "dialing_from_country": "ES",
	  "language": "es"
	}`)
	req, err := http.NewRequest(http.MethodPost, "https://domscan.net/v1/phone/validate", body)
	if err != nil {
		panic(err)
	}
	req.Header.Set("X-API-Key", os.Getenv("DOMSCAN_API_KEY"))
	req.Header.Set("Content-Type", "application/json")

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	data, err := io.ReadAll(resp.Body)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp.Status, string(data))
}
require "json"
require "net/http"

uri = URI("https://domscan.net/v1/phone/validate")
request = Net::HTTP::Post.new(uri)
request["X-API-Key"] = ENV.fetch("DOMSCAN_API_KEY")
request["Content-Type"] = "application/json"
request.body = JSON.generate({
  "phone" => "+34 612 345 678",
  "default_country" => "ES",
  "expected_country" => "ES",
  "dialing_from_country" => "ES",
  "language" => "es"
})

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(request)
end
puts JSON.pretty_generate(JSON.parse(response.body))

响应示例

{
  "input": "+44 20 7946 0123",
  "normalized_input": "+44 20 7946 0123",
  "validation_level": "numbering_plan",
  "live_checks": {
    "assignment": "not_checked",
    "reachability": "not_checked",
    "current_carrier": "not_checked",
    "subscriber_identity": "not_checked",
    "porting": "not_checked"
  },
  "privacy": {
    "upstream_requests": 0,
    "telecom_provider_queried": false,
    "persisted": false,
    "domscan_edge_relay_used": true,
    "third_party_requests": 0
  },
  "intelligence": {
    "status": "available",
    "kind": "phone_number",
    "reason": null,
    "coverage": {
      "country": "GB",
      "level": "global_numbering_metadata",
      "global_numbering_metadata": true,
      "official_snapshot_available": false,
      "official_allocation_match": false,
      "official_source_ids": [],
      "matching_source_ids": [],
      "current_carrier_lookup": false
    },
    "location": {
      "label": "London",
      "country_name": "United Kingdom",
      "country": "GB",
      "language": "en",
      "granularity": "numbering_plan_area",
      "current_physical_location": false
    },
    "possible_time_zones": {
      "values": [
        "Europe/London"
      ],
      "current_location": false,
      "inference": "number_prefix"
    },
    "original_prefix_carrier": {
      "name": null,
      "source_id": null,
      "evidence": "unavailable",
      "current_carrier": false,
      "portability_may_change_carrier": true
    },
    "portability": {
      "region_supported": true,
      "current_port_checked": false
    },
    "dialing": {
      "from_country": "US",
      "international": "011 44 20 7946 0123",
      "mobile": "+44 20 7946 0123",
      "internationally_diallable": true
    },
    "number_details": {
      "geographical": true,
      "geographical_area_code": "20",
      "geographical_area_code_length": 2,
      "national_destination_code": "20",
      "national_destination_code_length": 2,
      "subscriber_number_length": 8,
      "mobile_token": null
    },
    "service_signals": {
      "number_type": "fixed_line",
      "geographical": true,
      "toll_free": false,
      "premium_rate": false,
      "shared_cost": false,
      "voip": false,
      "personal_number": false,
      "likely_sms_capable": null
    },
    "short_number": null,
    "regulator_allocations": [],
    "sources": [
      {
        "id": "google_libphonenumber",
        "name": "Google libphonenumber metadata",
        "type": "offline_metadata",
        "version": "9.0.34",
        "license": "Apache-2.0",
        "url": "https://github.com/google/libphonenumber"
      }
    ],
    "warnings": [
      "LOCATION_IS_NUMBERING_PLAN_AREA_NOT_DEVICE_LOCATION",
      "CARRIER_IS_ORIGINAL_PREFIX_CARRIER_NOT_CURRENT_CARRIER",
      "ALLOCATION_DOES_NOT_PROVE_INDIVIDUAL_ASSIGNMENT",
      "NO_CURRENT_PORTABILITY_LOOKUP",
      "NO_LIVE_TELECOM_CHECKS"
    ],
    "relay": {
      "configured": true,
      "used": true,
      "persisted": false
    }
  },
  "limitations": [
    "NUMBERING_PLAN_ONLY",
    "DOES_NOT_PROVE_ASSIGNMENT",
    "NO_LIVE_TELECOM_CHECKS"
  ],
  "metadata": {
    "engine": "libphonenumber-js/max",
    "metadata_basis": "Google libphonenumber numbering plans"
  },
  "kind": "phone_number",
  "valid": true,
  "possible": true,
  "status": "valid",
  "recommendation": "accept",
  "reason": null,
  "warnings": [],
  "number": {
    "e164": "+442079460123",
    "international": "+44 20 7946 0123",
    "national": "020 7946 0123",
    "rfc3966": "tel:+442079460123",
    "national_number": "2079460123",
    "extension": null,
    "country": "GB",
    "country_name": "United Kingdom",
    "country_calling_code": "44",
    "possible_countries": [
      "GB"
    ],
    "country_match": true,
    "type": "fixed_line",
    "non_geographic": false
  },
  "credits_used": 1
}

HTTP 状态码

  • 200 成功
  • 400 请求错误
  • 401 未授权
  • 402 需要付款
  • 409 HTTP 409
  • 422 HTTP 422
  • 429 请求过多
  • 500 服务器错误

常见问题

在哪里可以找到 电话号码情报 的请求和响应参考?

使用 电话号码情报 的 API 参考来查看参数、响应字段、示例、状态码和支持的操作模式。

应如何解读 电话号码情报 返回的未知或不完整结果?

“未知”或“部分”表示我们无法完全确认结果。请在据此采取行动时,留意状态、置信度、时效性和任何限制。

电话号码情报 如何计费?

价格取决于检查类型和您选择的模式。API 参考会显示当前的积分消耗、是否需要 API 密钥以及按项目计价的信息。

客户评价

4.9/5,基于 34 条已验证买家评价

Having those checks in one place is what sold me on DomScan.

已验证买家 · 2026年11月

It suits the domain hunts, watching certificates and domain expiry hassles I have done manually for years.

已验证买家 · 2026年11月

被这些公司的人员使用

InstantOutseerMongoDBRespondentSage Expense ManagementInstantlyD.R. HortonWhatConvertsAdobeLLM Pulse