This request will return a list of danish phone numbers that has been assigned to a telecom operator.
The requested number acts as a prefix: every number starting with the prefix is returned with the operator it points to. The first 5 digits of a number returns its full 1000-number series; a full 8 digit number returns just that number.
| URL | https://api.telecomx.dk/dk/number | |
|---|---|---|
| Method | GET | |
| Access level | VIEWER + | |
| Query | number | Number prefix of 5 to 8 digits (may also be prefixed with +45); shorter values are padded to 5 digits with zeros. Defaults to 71919999 (a single number) when omitted. |
https://api.telecomx.dk/dk/number?number=71919
Array of number objects.
| Number object (JSON) | ||
|---|---|---|
| number | String | The phone number in E.164 format. |
| operator | String | The CPS code of the operator the number is mapped to. Empty string if no operator is mapped. |
Response for ?number=71919 — 1000 entries, truncated here to the first three:
[ { "number": "+4571919000", "operator": "01234" }, { "number": "+4571919001", "operator": "" }, { "number": "+4571919002", "operator": "04321" } ]
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |