Vai al contenuto

// get /v1/phone-validator

Phone Validator API

Valida i numeri di telefono in tempo reale controlla il formato, rileva il tipo, identifica paese e operatore tramite la nostra API RESTful.

1 search credit

// console api

GETapi.tomba.io/v1/phone-validator
Esempio di risposta dal riferimento API
valid
true
intl_format
+1 650-555-0132
line_type
MOBILE
carrier
AT&T
country_code
US
region.name
California
timezones
1 item

// 01 · richiesta

Phone Validator è una sola richiesta HTTPS

Invia i parametri con la tua chiave e il tuo secret. Ogni SDK, la CLI e il server MCP fanno questa stessa chiamata.

GET/phone-validatorParametro
phoneobbligatorio
The number, ideally in E.164
country_codeUS
Country, when the number has no prefix
curl "https://api.tomba.io/v1/phone-validator?phone=%2B16505550132" \
  -H "X-Tomba-Key: $TOMBA_API_KEY" \
  -H "X-Tomba-Secret: $TOMBA_SECRET_KEY"

// 02 · risposta

Cosa ricevi

JSON, uguale in ogni linguaggio. I campi che Tomba non conosce sono null, mai indovinati.

GET/phone-validatorCampo
dataobject | array
The number's details; an empty array, with phone repeating your input, when it isn't valid
data.validboolean | null
Whether the number is a valid phone number
data.intl_format, data.e164_format, data.local_formatstring | null
The number in international, E.164 and national formats
data.country_codestring | null
Country of the number (ISO code)
data.line_typestring | null
MOBILE, FIXED_LINE, FIXED_LINE_OR_MOBILE, VOIP, TOLL_FREE…
data.carrierstring | null
The network operator
data.region, data.timezonesobject | null, array | null
Where the number is registered, and its time zones
GET /phone-validator
200 OK· 1 search credit
{
  "data": {
    "valid": true,
    "local_format": "(650) 555-0132",
    "intl_format": "+1 650-555-0132",
    "e164_format": "+16505550132",
    "rfc3966_format": "tel:+1-650-555-0132",
    "country_code": "US",
    "line_type": "MOBILE",
    "carrier": "AT&T",
    "region": {
      "name": "California",
      "code": "CA"
    },
    "timezones": [
      "America/Los_Angeles"
    ]
  }
}

// 03 · costi e limiti

Quanto costa una chiamata

Una chiamata viene addebitata solo alla condizione indicata sotto. I limiti di frequenza dipendono dal tuo piano.

// costo

1search credit

Addebitato quando: Every successful response, including one with no data.

Errori, risposte 429 e 451 e la stessa richiesta ripetuta entro la tua finestra di utilizzo non costano nulla.

Come funzionano i crediti

// limiti di frequenza

Richieste al secondo / minuto / giorno
FreeBasicGrowthPro
Search, finder, similar, technology1 / 2 / 53 / 50 / 5005 / 80 / 1,0008 / 150 / 4,000
Email verifier1 / 2 / 102 / 40 / 5003 / 60 / 1,0005 / 100 / 4,000

Pro Plus, Scale and credit packs of 50,000 or more: no limit on these endpoints. Enterprise: no per-second or per-minute limit, 100,000 requests a day. Daily limits reset at 00:00 UTC. Limiti di frequenza

// faq

Domande sull API Validazione Telefono

Ha altre domande? Visita il centro assistenza

// avvio rapido

Fai la tua prima chiamata in un minuto

Account gratuito, vera chiave API, gli stessi endpoint usati dai clienti Enterprise.

  1. 1Crea un account gratuito25 ricerche al mese. Senza carta.
  2. 2Copia la chiave e il secretDa Chiavi API nella dashboard.
  3. 3Chiama l'APIIncolla la richiesta; la risposta è in JSON.
curl "https://api.tomba.io/v1/email-finder?domain=piedpiper.com&first_name=Richard&last_name=Hendricks" \
  -H "X-Tomba-Key: $TOMBA_API_KEY" \
  -H "X-Tomba-Secret: $TOMBA_SECRET_KEY"
Risposta
200 OK· 1 search credit
{
  "data": {
    "email": "richard@piedpiper.com",
    "first_name": "Richard",
    "last_name": "Hendricks",
    "full_name": "Richard Hendricks",
    "website_url": "piedpiper.com",
    "company": "Pied Piper",
    "pattern": "{first}",
    "department": "executive",
    "type": "personal",
    "position": "CEO",
    "country": "US",
    "gender": "male",
    "twitter": null,
    "linkedin": "https://www.linkedin.com/in/richard-hendricks",
    "score": 100,
    "accept_all": false,
    "phone_number": true,
    "verification": {
      "date": "2025-01-15T10:32:00+01:00",
      "status": "valid"
    },
    "sources": [
      {
        "uri": "https://piedpiper.com/blog/engineering",
        "website_url": "piedpiper.com",
        "extracted_on": "2024-06-01T09:14:07+01:00",
        "last_seen_on": "2025-01-10T17:02:44+01:00",
        "still_on_page": true
      }
    ],
    "phone_data": []
  }
}