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_prefixin 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
}
}
}
GEThttps://oneapi.ro/api/telecom/v1/operatori/orange-romania-sa/blocuri?domeniu=264
{
"data": [
{
"domeniu": "264",
"primul": "264920",
"ultimul": "264929",
"dimensiune": 10,
"tip": "fix"
}
],
"meta": {
"operator": {
"operator": "ORANGE ROMANIA S.A.",
"slug": "orange-romania-sa"
},
"paginare": {
"pagina": 1,
"per_pagina": 100,
"total": 46,
"pagini": 1
}
}
}
GEThttps://oneapi.ro/api/telecom/v1/operatori/vodafone-romania-sa/blocuri
{
"data": [
{
"domeniu": "19",
"primul": "1922",
"ultimul": "1922",
"dimensiune": 1,
"tip": "scurt"
}
],
"meta": {
"operator": {
"operator": "VODAFONE ROMANIA S.A.",
"slug": "vodafone-romania-sa"
},
"paginare": {
"pagina": 1,
"per_pagina": 100,
"total": 277,
"pagini": 3
}
}
}
Error codes
| Code | Slug | When it occurs |
|---|---|---|
| 401 | neautentificat | Token missing, invalid, expired or revoked. |
| 403 | feature_indisponibil | The current plan does not include the feature the route depends on. |
| 404 | negasit | No operator has the requested slug. The slugs are in /telecom/v1/operatori. |
| 422 | validare | tip or domeniu has a value that is not allowed. |
| 429 | cota_depasita | The 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."
]
}
}
}