MGBI provides a comprehensive API for retrieving data from public registries and records, including the National Electronic Registry of Road Transport Operators (KREPTD).
You can find a list of data sources available through this service at:
👉 Public Registers API
This guide covers the API for the National Electronic Register of Road Transport Companies (KREPTD), which we provide as part of the following product:
👉 National Electronic Register of Road Transport Companies API (KREPTD API)
Below, we describe how you can use the API to retrieve a record containing the current KREPTD entry for a specific business, based on its registration numbers or KREPTD reference number.
Step 1: Obtain an API authorization key
To obtain the authorization key required to call the endpoints available in the MGBI API, please contact us using the contact form on the product page:
👉 National Electronic Register of Road Transport Entrepreneurs API (KREPTD API)
Step 2: Call the Get Records endpoint
We make the data available in KREPTD accessible via the MGBI API in the data model with the identifier pl-kreptd-api-record.
The API provides a "Get Records" endpoint for this model, which returns records containing the content of entries in KREPTD that meet the specified criteria.
👉 Documentation for the "Get Records" endpoint for the pl-kreptd-api-record model
To retrieve a record containing the entry in the KREPTD for a specific business, you must provide its registration number—KRS, NIP, or REGON—in the Get Records endpoint.
Example of calling the Get Records endpoint with a tax ID number:
GET /v1/models/pl-kreptd-api-record/records?identifiers.pl_nip=[NIP number] HTTP/1.1
Host: api.mgbi.pl
Authorization: [authorization key]
If you know the business's reference number in the KREPTD system (in the format P/YYYY/NNNNNNNN), you can enter it in the identifiers.pl_kreptd_reference_number parameter.
Example of calling the Get Records endpoint with the reference number KREPTD:
GET /v1/models/pl-kreptd-api-record/records?identifiers.pl_kreptd_reference_number=[KREPTD reference number] HTTP/1.1
Host: api.mgbi.pl
Authorization: [authorization key]
Step 3: Read the content of the KREPTD entry from the answer
A successful call to the Get Records endpoint returns the current contents of the KREPTD entry for the specified business in the response.
{
"count": 1,
"pages": 1,
"results": [
{
"id": "[identyfikator rekordu]",
"identifiers": "[identyfikatory podmiotu oraz numer referencyjny KREPTD]",
"content": "[treść wpisu do KREPTD]",
"meta": "[metadane rekordu]"
}
]
}
You can find all the data from the KREPTD entry for the specified entity in the content.extracted_fields dictionary.
Example contents of the content.extracted_fields dictionary:
{
"NumerReferencyjny": "[numer referencyjny przedsiębiorcy w KREPTD]",
"FirmaNazwa": "[nazwa przedsiębiorcy]",
"NIP": "[NIP przedsiębiorcy]",
"FormaPrawna": "[forma prawna przedsiębiorcy]",
"Adres": "[adres przedsiębiorcy]",
"ListaZarzadzajacyTransportemDaneWyszukane": {
"ZarzadzajacyTransportemDaneWyszukane": [
{
"Imiona": "[imię lub imiona osoby zarządzającej transportem]",
"Nazwisko": "[nazwisko osoby zarządzającej transportem]",
"NumerCertyfikatu": "[numer certyfikatu kompetencji zawodowych]",
"RodzajCertyfikatu": "[rodzaj certyfikatu kompetencji zawodowych]",
"DataWydaniaCertyfikatu": "[data wydania certyfikatu]",
"KrajWydajacyCertyfikat": "[kod kraju, który wydał certyfikat]"
}
]
},
"ListaZezwolenieNaWykonywanieZawoduPrzewoznikaDrogowegoTyp": {
"ZezwolenieNaWykonywanieZawoduPrzewoznikaDrogowegoTyp": [
{
"Zakres": "[zakres zezwolenia: Osoby / Rzeczy]",
"Numer": "[numer zezwolenia]",
"StatusZezwolenia": "[status zezwolenia: Ważne / Ważność wygasła]",
"OrganWydajacy": "[organ, który wydał zezwolenie]",
"DataWydania": "[data wydania zezwolenia]",
"LiczbaPojazdow": "[liczba pojazdów objętych zezwoleniem]"
}
]
},
"ListaLicencjaWspolnotowaTyp": {
"LicencjaWspolnotowaTyp": [
{
"Zakres": "[zakres licencji wspólnotowej]",
"Numer": "[numer licencji wspólnotowej]",
"StatusLicencji": "[status licencji wspólnotowej]",
"PoczatekWaznosci": "[data początku ważności licencji]",
"KoniecWaznosci": "[data końca ważności licencji]",
"LiczbaPojazdow": "[liczba pojazdów objętych licencją]"
}
]
},
"ListaWypisowZLicencjiTyp": "[wypisy z licencji wspólnotowych]",
"ListaWypisowZzezwoleniaTyp": "[wypisy z zezwoleń]",
"ListaPrzedstawicieliPrawnychTyp": {
"PrzedstawicielPrawny": [
{
"Imiona": "[imię lub imiona przedstawiciela prawnego]",
"Nazwisko": "[nazwisko przedstawiciela prawnego]"
}
]
}
}
You can find information about a business owner’s authorizations in the lists of authorizations to operate as a road carrier (List of Authorizations to Operate as a Road Carrier) and Community licenses (List of Community Licenses).
The current status of each document is indicated by the "PermitStatus" and "LicenseStatus" fields. If a permit has been revoked, suspended, or has expired, the record will also include the relevant dates and the reason for the suspension or revocation.
Learn more:
👉 Data structure in the pl-kreptd-api-record model
👉 Endpoint documentation for the pl-kreptd-api-record model