oneapi
Sign in
Telecom v1 / Telecom

An operator's number blocks

The reverse lookup: which number ranges a licence holder received, paginated, optionally by type and numbering domain.

GET
https://oneapi.ro/api/telecom/v1/operatori/{slug}/blocuri

Path parameters

NameTypeDescriptionExample
slugrequired string The operator slug, from /telecom/v1/operatori.

Query parameters

NameTypeDescriptionAccepted values
tipoptional string | null Optional: mobil, fix, nongeografic or scurt. mobilfixnongeograficscurt
domeniuoptional string | null Optional: the numbering domain, without the 0. e.g. 264

How it behaves

  • The blocks are sorted by first number and paginated 100 at a time (500 per page at most).
  • The blocks are the initial allocation, not the numbers held today: a number ported to another operator stays in the block of the one that received it.
  • Numbers carry no leading 0, like fara_prefix in the analysis; a single-position block is a short number (1922).

What it is for

  • The reverse lookup: which number ranges an operator received, to check a list of numbers in bulk without one request per number.
  • Building a local prefix routing table for a given operator.
  • Analysing the resource allocated to an operator by type (mobile versus landline) or by domain.

Response structure

FieldTypeDescription
data[].domeniu string Domeniul de numerotație.
data[].primul string Primul număr din bloc.
data[].ultimul string Ultimul număr din bloc.
data[].dimensiune integer Câte numere conține blocul.
data[].tip string mobil | fix | nongeografic | scurt.
meta.operator.operator string Numele exact al operatorului.
meta.operator.slug string Slug-ul cerut.
meta.paginare.pagina integer Current page, counted from 1.
meta.paginare.per_pagina integer How many records a page holds.
meta.paginare.total integer Total matching records, beyond the current page.
meta.paginare.pagini integer How many pages the list has.

Response examples

GEThttps://oneapi.ro/api/telecom/v1/operatori/vodafone-romania-sa/blocuri?tip=mobil
{
    "data": [
        {
            "domeniu": "72",
            "primul": "720000000",
            "ultimul": "720999999",
            "dimensiune": 1000000,
            "tip": "mobil"
        }
    ],
    "meta": {
        "operator": {
            "operator": "VODAFONE ROMANIA S.A.",
            "slug": "vodafone-romania-sa"
        },
        "paginare": {
            "pagina": 1,
            "per_pagina": 100,
            "total": 42,
            "pagini": 1
        }
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatToken missing, invalid, expired or revoked.
403feature_indisponibilThe current plan does not include the feature the route depends on.
404negasitNo operator has the requested slug. The slugs are in /telecom/v1/operatori.
422validaretip or domeniu has a value that is not allowed.
429cota_depasitaThe plan's monthly quota has been exceeded (see Retry-After).

All errors share the same shape. eroare.cod is stable and is the value you should branch on in code — not the text in mesaj, which may change.

{
    "eroare": {
        "cod": "validare",
        "mesaj": "tip or domeniu has a value that is not allowed.",
        "detalii": {
            "slug": [
                "The value sent does not satisfy the parameter rule."
            ]
        }
    }
}