User Tools

Site Tools


api:dk:number:info

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, RESELLER_ADMIN 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/71919998

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. Empty string if the number is not mapped to an operator.
operatorName String The name of the operator the number is located with. Unknown (or UNKNOWN) when the number is not mapped to a known operator.

Example

{
  "number": "+4571919998",
  "type": "MOBILE",
  "operator": "01234",
  "operatorName": "Operator ApS"
}

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: by Mikkel Meerwaldt Jørgensen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki