This is public api specification, for number lookup product.
Number Lookup Api v1 (0.1.0)
Download OpenAPI description
Overview
Languages
Servers
https://number-lookup.api.sinch.com/
Bodyapplication/json
Contains requested features. Fallback to LineType if not provided.
| Items Enum Value | Description |
|---|---|
| LineType | LineType |
| SimSwap | SimSwap |
| VoIPDetection | VoIPDetection (alpha). |
| RND | RND (alpha). |
https://number-lookup.api.sinch.com/v1/lookups
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://number-lookup.api.sinch.com/v1/lookups \
-H 'Content-Type: application/json' \
-d '{
"number": "+12312312312",
"features": [
"LineType"
],
"rndFeatureOptions": {
"contactDate": "2019-08-24"
}
}'Response
application/json
{ "line": { "carrier": "T-Mobile USA", "type": "Mobile", "mobileCountryCode": "310", "mobileNetworkCode": "260", "ported": true, "portingDate": "2000-01-01T00:00:00.0000000+00:00", "error": { … } }, "simSwap": { "swapped": true, "swapPeriod": "SP24H", "error": { … } }, "voIPDetection": { "probability": "High", "error": { … } }, "rnd": { "disconnected": true, "error": { … } }, "countryCode": "string", "traceId": "84c1fd4063c38d9f3900d06e56542d48", "number": "+12312312312" }