Dokumentacja MGBI API
  1. pl-msig-record
Dokumentacja MGBI API
  • MGBI API
    • Wprowadzenie
    • Autoryzacja
    • Pojęcia
    • Modele danych
      • pl-krs-wp-record
      • pl-krs-rdf-record
      • pl-krz-wp-record
      • pl-wpv-record
      • pl-crbr-wp-record
      • pl-msig-record
    • Endpointy dla modeli danych
      • pl-krs-wp-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Download File By Id
        • Get Limits
        • Get Projections
      • pl-krs-rdf-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Download File By Id
        • Get Limits
        • Get Projections
      • pl-krz-wp-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Get Limits
        • Get Projections
      • pl-wpv-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Get Limits
        • Get Projections
      • pl-crbr-wp-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Get Limits
        • Get Projections
      • pl-msig-record
        • Get Record By Id
          GET
        • Get Records
          GET
        • Stream Records
          GET
        • Download File By Id
          GET
        • Get Limits
          GET
        • Get Projections
          GET
    • Zlecanie odświeżenia danych
      • Ogólne informacje
      • Create Refresh
      • Get Refresh
  1. pl-msig-record

Stream Records

GET
/v1/models/pl-msig-record/stream
Pobiera rekordy z informacjami o ogłoszeniu z Monitora Sądowego i Gospodarczego (MSIG) spełniające podane kryteria w postaci strumienia danych.
W przypadku sukcesu w odpowiedzi zwraca listę rekordów posortowaną według daty publikacji ogłoszeń.
W przypadku braku rekordów spełniających podane kryteria zwraca pustą listę.
Poprawne wywołanie endpointu zwiększa liczniki:
api i api_search o 1
records i records_api_search o liczbę zwróconych rekordów
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.mgbi.pl/v1/models/pl-msig-record/stream?media_type=&last_update_datetime_from=&last_update_from_datetime=&last_update_datetime_to=&last_update_to_datetime=&identifiers.pl_krs=&identifiers.pl_rhb=&identifiers.pl_ewp=&projection=&content=' \
--header 'Authorization;'
Response Response Example
200 - Success Example
{
    "id": "67600b7bde4475542599faa3",
    "content": {
        "header_xml": "<p><b>Poz. 1411478. ORLEN SPÓŁKA AKCYJNA.</b> KRS 0000028860. SĄD REJONOWY DLA ŁODZI ŚRÓDMIEŚCIA W ŁODZI, XX WYDZIAŁ GOSPODARCZY KRAJOWEGO REJESTRU SĄDOWEGO, wpis do rejestru: 19.07.2001. [LD.XX NS-REJ.KRS/31162/24/935]</p>",
        "body_xml": "<p>W dniu 08.11.2024 dokonano wpisu do rejestru KRS nr 184 następującej treści: </p><p><b>Dz. 2. Rub. 1.</b> Organ uprawniony do reprezentacji podmiotu <b>1</b>(dla pozycji: 1. ZARZĄD) <b>PRub.</b> Dane osób wchodzących w skład organu <b>wpisać: 1</b> 1. WASILEWSKI 2. MARCIN 3. 77041301373 5. CZŁONEK ZARZĄDU DS. TECHNOLOGII 6. NIE</p>",
        "krs_entry_xml": "<data-wpisu>1731020400</data-wpisu><numer-wpisu>184</numer-wpisu><dzial numer=\"2\"><rubryka numer=\"1\"><nazwa>Organ uprawniony do reprezentacji podmiotu</nazwa><element numer=\"1\"><dla-pozycji><pole numer=\"1\">ZARZĄD</pole></dla-pozycji><podrubryka><nazwa>Dane osób wchodzących w skład organu</nazwa><wpisac/><element numer=\"1\"><pole numer=\"1\">WASILEWSKI</pole><pole numer=\"2\">MARCIN</pole><pole numer=\"3\">77041301373</pole><pole numer=\"5\">CZŁONEK ZARZĄDU DS. TECHNOLOGII</pole><pole numer=\"6\">NIE</pole></element></podrubryka></element></rubryka></dzial>"
    },
    "msig": {
        "chapter": "XV. WPISY DO KRAJOWEGO REJESTRU SĄDOWEGO",
        "section": "2. Kolejne",
        "subsection": "g) Spółki akcyjne",
        "page_number": 853,
        "position_number": 1411478,
        "signature": "LD.XX NS-REJ.KRS/31162/24/935",
        "year": 2024,
        "yearly_number": 243,
        "sequential_number": 7145
    },
    "entities": [
        {
            "identifiers": {
                "pl_krs": "0000028860"
            },
            "basic": {
                "name": "ORLEN SPÓŁKA AKCYJNA"
            },
            "court": {
                "name": "SĄD REJONOWY DLA ŁODZI ŚRÓDMIEŚCIA W ŁODZI",
                "department": "XX WYDZIAŁ GOSPODARCZY KRAJOWEGO REJESTRU SĄDOWEGO",
                "registration_date": "2001-07-19"
            }
        }
    ],
    "meta": {
        "first_update_datetime": "2024-12-16T10:54:15.963000",
        "last_update_datetime": "2024-12-16T10:54:15.963000"
    }
}

Request

Query Params
media_type
enum<string> 
optional
Format zwracanych danych
Allowed values:
jsonndjson
last_update_datetime_from
string <date-time>
optional
Data i czas ostatniej aktualizacji od
last_update_from_datetime
string <date-time>
deprecated
Data i czas ostatniej aktualizacji od
last_update_datetime_to
string <date-time>
optional
Data i czas ostatniej aktualizacji do
last_update_to_datetime
string <date-time>
deprecated
Data i czas ostatniej aktualizacji do
identifiers.pl_krs
string 
optional
Numer KRS
Match pattern:
^\d{10}$
identifiers.pl_rhb
string 
optional
Numer RHB
identifiers.pl_ewp
string 
optional
Numer EWP
projection
string 
optional
Nazwa projekcji
content
array[string]
optional
Lista zwracanych pól z modelu danych
Header Params
Authorization
string 
optional
Klucz autoryzacji
Example:
aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee

Responses

🟢200OK
application/json
Lista rekordów
Body
array of:
id
string 
Id
required
Identyfikator rekordu
entities
array [object {3}] 
required
Lista podmiotów, których dotyczy ogłoszenie
basic
object 
required
Podstawowe dane podmiotu
identifiers
object 
required
Identyfikatory podmiotu
court
object 
required
Dane sądu rejestrowego lub prowadzącego postępowanie
msig
object 
required
Informacje o publikacji ogłoszenia w MSIG
issue_date
string 
required
Data publikacji numeru
year
string 
required
Rok publikacji numeru
yearly_number
string 
required
Numer roczny
sequential_number
string 
required
Numer kolejny
chapter
string 
required
Nazwa rozdziału
section
string 
required
Nazwa sekcji
subsection
string 
required
Nazwa podsekcji
page_number
string 
required
Numer strony
position_number
string 
required
Numer pozycji
signature
string 
required
Sygnatura ogłoszenia
content
object 
required
Treść ogłoszenia
header_xml
string 
required
Treść nagłówka w formacie XML
body_xml
string 
required
Treść ogłoszenia w formacie XML
krs_entry_xml
string 
required
Treść wpisu do KRS w formacie XML
files
object 
optional
Pliki ogłoszenia
main_document
object 
required
Główny dokument
meta
object 
required
Metadane
first_update_datetime
string 
required
Data i czas pierwszej aktualizacji rekordu
last_update_datetime
string 
required
Data i czas ostatniej aktualizacji rekordu
🟠400Bad request
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
🟠400Bad request
🟠401Unauthorized
🟠403Forbidden
🟠422Parameter Error
🟠429429
Modified at 2025-07-18 17:38:16
Previous
Get Records
Next
Download File By Id
Built with