BZP
Strumień rekordów
Globalny strumień ogłoszeń BZP bez filtrowania po firmie. Wspiera filtry: rodzaj ogłoszenia (np. ContractNotice, TenderResultNotice), zakres dat i wyszukiwanie pełnotekstowe (min. 3 znaki, treść ogłoszenia i nazwa zamawiającego). Paginacja limit do 1000, offset. Domyślnie zwraca pełny wpis (BzpNotice z text_body i wszystkimi polami) - do masowej integracji. include_details=false zwraca lekką wersję. Każdy zwrócony rekord = 1 jednostka puli BZP. Wymaga planu Pro lub wyższego.
GET
/
v1
/
bzp
/
stream
Strumień rekordów
curl --request GET \
--url https://api.krdata.pl/v1/bzp/stream \
--header 'x-api-key: <api-key>'import requests
url = "https://api.krdata.pl/v1/bzp/stream"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.krdata.pl/v1/bzp/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.krdata.pl/v1/bzp/stream",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.krdata.pl/v1/bzp/stream"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.krdata.pl/v1/bzp/stream")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.krdata.pl/v1/bzp/stream")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"notice_type": "<string>",
"publication_date": "2023-11-07T05:31:56Z",
"metadata": {
"first_seen": "2023-11-07T05:31:56Z",
"last_updated": "2023-11-07T05:31:56Z",
"source_updated_at": "2023-11-07T05:31:56Z"
},
"notice_number": "<string>",
"bzp_number": "<string>",
"is_below_eu": true,
"order_object": "<string>",
"cpv_codes": "<string>",
"submitting_offers_date": "2023-11-07T05:31:56Z",
"procedure_result": "<string>",
"client_type": "<string>",
"order_type": "<string>",
"tender_type": "<string>",
"organization_name": "<string>",
"organization_city": "<string>",
"organization_province": "<string>",
"organization_country": "<string>",
"organization_national_id": "<string>",
"organization_nip": "<string>",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tender_id": "<string>",
"tender_url": "<string>",
"tender_platform": "<string>",
"contractors": [
{
"name": "<string>",
"city": "<string>",
"province": "<string>",
"country": "<string>",
"national_id": "<string>"
}
],
"text_body": "<string>"
}
],
"limit": 123,
"offset": 123,
"has_more": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Query Parameters
Maximum string length:
48Required string length:
3 - 200Required range:
1 <= x <= 1000Required range:
x >= 0⌘I
Strumień rekordów
curl --request GET \
--url https://api.krdata.pl/v1/bzp/stream \
--header 'x-api-key: <api-key>'import requests
url = "https://api.krdata.pl/v1/bzp/stream"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.krdata.pl/v1/bzp/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.krdata.pl/v1/bzp/stream",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.krdata.pl/v1/bzp/stream"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.krdata.pl/v1/bzp/stream")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.krdata.pl/v1/bzp/stream")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"notice_type": "<string>",
"publication_date": "2023-11-07T05:31:56Z",
"metadata": {
"first_seen": "2023-11-07T05:31:56Z",
"last_updated": "2023-11-07T05:31:56Z",
"source_updated_at": "2023-11-07T05:31:56Z"
},
"notice_number": "<string>",
"bzp_number": "<string>",
"is_below_eu": true,
"order_object": "<string>",
"cpv_codes": "<string>",
"submitting_offers_date": "2023-11-07T05:31:56Z",
"procedure_result": "<string>",
"client_type": "<string>",
"order_type": "<string>",
"tender_type": "<string>",
"organization_name": "<string>",
"organization_city": "<string>",
"organization_province": "<string>",
"organization_country": "<string>",
"organization_national_id": "<string>",
"organization_nip": "<string>",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tender_id": "<string>",
"tender_url": "<string>",
"tender_platform": "<string>",
"contractors": [
{
"name": "<string>",
"city": "<string>",
"province": "<string>",
"country": "<string>",
"national_id": "<string>"
}
],
"text_body": "<string>"
}
],
"limit": 123,
"offset": 123,
"has_more": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}