api:dk:number:info
Table of Contents
API : DK Number Info
Introduction
This request will return info on a danish phone number.
Request
| URL | https://api.telecomx.dk/dk/number/info/<NUMBER> | |
|---|---|---|
| Method | GET | |
| Access level | VIEWER, MANAGER, OWNER, RESELLER or ADMIN. | |
| PARAM | NUMBER | 8 digit phone number to lookup (may also be prefixed with +45). |
Query examples
https://api.telecomx.dk/dk/number/info/70305050
Response
| Number object (JSON) | ||
|---|---|---|
| number | String | The phone number in E.164 format. |
| type | String | Type of number: FIXED, MOBILE, RESERVED or SPECIAL. |
| operator | String | The CPS code of the operator the number is located with. |
| operatorName | String | The name of the operator the number is located with. |
Example
{ number: '+4570305050', type: 'MOBILE', operator: '01060', operatorName: 'Telecom X' }
Errors
| Error code | Message | Description |
|---|---|---|
| 422 | id | Phone number is invalid |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/dk/number/info.txt · Last modified: 2015/12/14 13:19 by Per Møller