Table of Contents

API : DK Number List

Introduction

This request will return a list of danish phone numbers that has been assigned to a telecom operator.

Based on the requested number, all numbers in the 1000-number series the number is located is returned with the operator they points to.

Request

URL https://api.telecomx.dk/dk/number
Method GET
Access level ADMIN.
Query number A phone number within the 1000-number range to return, e.g. 81808888 or the first 5 digits of it.

Query examples

https://api.telecomx.dk/dk/number?number=81808000

Response

Array of number objects.

Number object (JSON)
number String The phone number in E.164 format.
cps String The CPS code of the operator the number is located with.

Example

[
  {
    number: '+4581808000',
    cps: '01060'
  },
  {
    number: '+4581808001',
    cps: '00212'
  },
  {
    number: '+4581808002',
    cps: '01015'
  },
  {
    ...
  },
  {
    number: '+4581808999',
    cps: '01060'
  }
]  

Errors

Error code Message Description
403 access_denied Insufficient access level
500 internal_error <Unspecified>