Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Stat Gov Pl Attributes API
version: v1
x-refined-note:
- x-source differs across the merged source definitions and was not carried
description: 'Operations tagged Attributes across 2 of this provider''s published API definitions: stat-gov-pl-bdl-openapi.json, stat-gov-pl-bdl-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /api/v1
- url: https://bdl.stat.gov.pl/api/v1
tags:
- name: Attributes
paths:
/attributes/metadata:
get:
tags:
- Attributes
summary: Metadane / Metadata
parameters:
- name: lang
in: query
description: Oczekiwany język odpowiedzi - opcjonalny (jeśli podano parametr, nagłówek "Accept-Language" jest ignorowany) / Expected response conent language - optional (if parameter specified, request header "Accept-Language" is ignored)
schema:
enum:
- pl
- en
type: enum
- name: format
in: query
description: Oczekiwany format odpowiedzi - opcjonalny (jeśli podano parametr, nagłówek "Accept" jest ignorowany) / Expected response content type - optional (if parameter specified, request header "Accept" is ignored)
schema:
enum:
- json
- jsonapi
- xml
type: enum
- name: Accept-Language
in: header
description: Oczekiwany język odpowiedzi - opcjonalny (jeśli podano parametr "lang", nagłówek "Accept-Language" zostanie ignorowany) / Expected response conent language - optional (if "lang" parameter is specified, the "Accept-Language" header will be ignored)
schema:
enum:
- pl
- en
type: enum
- name: Accept
in: header
description: Oczekiwany format odpowiedzi - opcjonalny (jeśli podano parametr "format", nagłówek "Accept" zostanie zignorowany) / Expected response content type - optional (if the "format" parameter is specified, the "Accept" header will be ignored)
schema:
enum:
- application/json
- application/vnd.api+json
- application/xml
type: enum
- name: If-None-Match
in: header
description: Nagłówek warunkowego żadania If-None-Match (entity tag)/Conditional Requests header If-None-Match (entity tag)
schema:
type: string
- name: If-Modified-Since
in: header
description: Nagłówek warunkowego żadania If-Modified-Since/Conditional Requests header If-Modified-Since
schema:
type: string
responses:
'200':
description: Success
headers:
ETag:
description: Entity tag
schema:
type: string
Date:
description: Server date and time
schema:
type: string
X-Rate-Limit-Limit:
description: Rate limit limit
schema:
type: string
X-Rate-Limit-Remaining:
description: Rate limit remaining
schema:
type: string
X-Rate-Limit-Reset:
description: Rate limit reset
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Metadata'
application/xml:
schema:
$ref: '#/components/schemas/Metadata'
application/vnd.api+json:
schema:
$ref: '#/components/schemas/Metadata'
'429':
$ref: '#/components/schemas/LimitResponseMessage'
operationId: getAttributesMetadata
x-operation-id-source: derived
servers:
- url: /api/v1
/attributes/{id}:
get:
tags:
- Attributes
summary: Atrybut o zadanym Id / Atrribute with selected Id
parameters:
- name: id
in: path
description: Id atrybutu / Attribute Id
required: true
schema:
type: integer
format: int32
- name: lang
in: query
description: Oczekiwany język odpowiedzi - opcjonalny (jeśli podano parametr, nagłówek "Accept-Language" jest ignorowany) / Expected response conent language - optional (if parameter specified, request header "Accept-Language" is ignored)
schema:
enum:
- pl
- en
type: enum
- name: format
in: query
description: Oczekiwany format odpowiedzi - opcjonalny (jeśli podano parametr, nagłówek "Accept" jest ignorowany) / Expected response content type - optional (if parameter specified, request header "Accept" is ignored)
schema:
enum:
- json
- jsonapi
- xml
type: enum
- name: Accept-Language
in: header
description: Oczekiwany język odpowiedzi - opcjonalny (jeśli podano parametr "lang", nagłówek "Accept-Language" zostanie ignorowany) / Expected response conent language - optional (if "lang" parameter is specified, the "Accept-Language" header will be ignored)
schema:
enum:
- pl
- en
type: enum
- name: Accept
in: header
description: Oczekiwany format odpowiedzi - opcjonalny (jeśli podano parametr "format", nagłówek "Accept" zostanie zignorowany) / Expected response content type - optional (if the "format" parameter is specified, the "Accept" header will be ignored)
schema:
enum:
- application/json
- application/vnd.api+json
- application/xml
type: enum
- name: If-None-Match
in: header
description: Nagłówek warunkowego żadania If-None-Match (entity tag)/Conditional Requests header If-None-Match (entity tag)
schema:
type: string
- name: If-Modified-Since
in: header
description: Nagłówek warunkowego żadania If-Modified-Since/Conditional Requests header If-Modified-Since
schema:
type: string
responses:
'500':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseMessage'
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponseMessage'
application/xml:
schema:
$ref: '#/components/schemas/ErrorResponseMessage'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseMessage'
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponseMessage'
application/xml:
schema:
$ref: '#/components/schemas/ErrorResponseMessage'
'200':
description: Success
headers:
ETag:
description: Entity tag
schema:
type: string
Date:
description: Server date and time
schema:
type: string
X-Rate-Limit-Limit:
description: Rate limit limit
schema:
type: string
X-Rate-Limit-Remaining:
description: Rate limit remaining
schema:
type: string
X-Rate-Limit-Reset:
description: Rate limit reset
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Attribute'
application/vnd.api+json:
schema:
$ref: '#/components/schemas/Attribute'
application/xml:
schema:
$ref: '#/components/schemas/Attribute'
'429':
$ref: '#/components/schemas/LimitResponseMessage'
operationId: getAttributesById
x-operation-id-source: derived
servers:
- url: /api/v1
/attributes:
get:
tags:
- Attributes
summary: Lista atrybutów / Attributes list
parameters:
- name: sort
in: query
description: Oczekiwana kolejność / Desired order
schema:
enum:
- Display
- -Display
- Display,Id
- Display,-Id
- -Display,Id
- -Display,-Id
- Display,Id,Symbol
- Display,Id,-Symbol
- Display,-Id,Symbol
- Display,-Id,-Symbol
- -Display,Id,Symbol
- -Display,Id,-Symbol
- -Display,-Id,Symbol
- -Display,-Id,-Symbol
- Display,Symbol
- Display,-Symbol
- -Display,Symbol
- -Display,-Symbol
- Display,Symbol,Id
- Display,Symbol,-Id
- Display,-Symbol,Id
- Display,-Symbol,-Id
- -Display,Symbol,Id
- -Display,Symbol,-Id
- -Display,-Symbol,Id
- -Display,-Symbol,-Id
- Id
- -Id
- Id,Display
- Id,-Display
- -Id,Display
- -Id,-Display
- Id,Display,Symbol
- Id,Display,-Symbol
- Id,-Display,Symbol
- Id,-Display,-Symbol
- -Id,Display,Symbol
- -Id,Display,-Symbol
- -Id,-Display,Symbol
- -Id,-Display,-Symbol
- Id,Symbol
- Id,-Symbol
- -Id,Symbol
- -Id,-Symbol
- Id,Symbol,Display
- Id,Symbol,-Display
- Id,-Symbol,Display
- Id,-Symbol,-Display
- -Id,Symbol,Display
- -Id,Symbol,-Display
- -Id,-Symbol,Display
- -Id,-Symbol,-Display
- Symbol
- -Symbol
- Symbol,Display
- Symbol,-Display
- -Symbol,Display
- -Symbol,-Display
- Symbol,Display,Id
- Symbol,Display,-Id
- Symbol,-Display,Id
- Symbol,-Display,-Id
- -Symbol,Display,Id
- -Symbol,Display,-Id
- -Symbol,-Display,Id
- -Symbol,-Display,-Id
- Symbol,Id
- Symbol,-Id
- -Symbol,Id
- -Symbol,-Id
- Symbol,Id,Display
- Symbol,Id,-Display
- Symbol,-Id,Display
- Symbol,-Id,-Display
- -Symbol,Id,Display
- -Symbol,Id,-Display
- -Symbol,-Id,Display
- -Symbol,-Id,-Display
type: enum
- name: lang
in: query
description: Oczekiwany język odpowiedzi - opcjonalny (jeśli podano parametr, nagłówek "Accept-Language" jest ignorowany) / Expected response conent language - optional (if parameter specified, request header "Accept-Language" is ignored)
schema:
enum:
- pl
- en
type: enum
- name: format
in: query
description: Oczekiwany format odpowiedzi - opcjonalny (jeśli podano parametr, nagłówek "Accept" jest ignorowany) / Expected response content type - optional (if parameter specified, request header "Accept" is ignored)
schema:
enum:
- json
- jsonapi
- xml
type: enum
- name: Accept-Language
in: header
description: Oczekiwany język odpowiedzi - opcjonalny (jeśli podano parametr "lang", nagłówek "Accept-Language" zostanie ignorowany) / Expected response conent language - optional (if "lang" parameter is specified, the "Accept-Language" header will be ignored)
schema:
enum:
- pl
- en
type: enum
- name: Accept
in: header
description: Oczekiwany format odpowiedzi - opcjonalny (jeśli podano parametr "format", nagłówek "Accept" zostanie zignorowany) / Expected response content type - optional (if the "format" parameter is specified, the "Accept" header will be ignored)
schema:
enum:
- application/json
- application/vnd.api+json
- application/xml
type: enum
- name: If-None-Match
in: header
description: Nagłówek warunkowego żadania If-None-Match (entity tag)/Conditional Requests header If-None-Match (entity tag)
schema:
type: string
- name: If-Modified-Since
in: header
description: Nagłówek warunkowego żadania If-Modified-Since/Conditional Requests header If-Modified-Since
schema:
type: string
responses:
'500':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseMessage'
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponseMessage'
application/xml:
schema:
$ref: '#/components/schemas/ErrorResponseMessage'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseMessage'
application/vnd.api+json:
schema:
$ref: '#/components/schemas/ErrorResponseMessage'
application/xml:
schema:
$ref: '#/components/schemas/ErrorResponseMessage'
'200':
description: Success
headers:
ETag:
description: Entity tag
schema:
type: string
Date:
description: Server date and time
schema:
type: string
X-Rate-Limit-Limit:
description: Rate limit limit
schema:
type: string
X-Rate-Limit-Remaining:
description: Rate limit remaining
schema:
type: string
X-Rate-Limit-Reset:
description: Rate limit reset
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/AttributeList'
application/vnd.api+json:
schema:
$ref: '#/components/schemas/AttributeList'
application/xml:
schema:
$ref: '#/components/schemas/AttributeList'
'429':
$ref: '#/components/schemas/LimitResponseMessage'
operationId: getAttributes
x-operation-id-source: derived
servers:
- url: /api/v1
components:
schemas:
Version:
type: object
properties:
id:
type:
- string
- 'null'
description: Pełny numer wersji / Full version number
major:
type: integer
description: Numer główny wersji / The main version number
format: int32
minor:
type: integer
description: Numer dodatkowy wersji / The additional version number
format: int32
modificationDate:
type: string
description: Data ostatniej modyfikacji / Date of the last modification
format: date-time
deprecated:
type:
- string
- 'null'
description: Data wycofania / Date of the deprecation
format: date-time
additionalProperties: false
description: Reprezentacja wersji API BDL / Representation of the API BDL version
LimitResponseMessage:
type: object
properties:
result:
type:
- string
- 'null'
description: Opis błędu / Error result
reason:
type:
- string
- 'null'
description: Opis przyczyny błędu / Error reason description
additionalProperties: false
description: Definicja błędu limitu / Limit error definition
Attribute:
type: object
properties:
metadata:
$ref: '#/components/schemas/Metadata'
version:
$ref: '#/components/schemas/Version'
id:
type: integer
description: Identyfikator atrybutu / Attribute's identifier
format: int32
display:
type:
- string
- 'null'
description: Wyświetlana wartość / Displayed value
symbol:
type:
- string
- 'null'
description: Symbol atrybutu / Attribute's symbol
description:
type:
- string
- 'null'
description: Opis atrybutu / Attribute's description
additionalProperties: false
description: Definicja atrybutu / Attribute definition
ErrorMessage:
type: object
properties:
result:
type:
- string
- 'null'
description: Opis błędu / Error result
reason:
type:
- string
- 'null'
description: Opis przyczyny błędu / Error reason description
solution:
type:
- string
- 'null'
description: Rozwiązanie problemu / Error solution
code:
type:
- integer
- 'null'
description: Kod błędu / Error code
format: int32
help:
type:
- string
- 'null'
description: Link do pomocy / Help link
additionalProperties: false
description: Komunikat błędu / Error message
ErrorResponseMessage:
type: object
properties:
errors:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/ErrorMessage'
description: Lista błedów / Erros list
additionalProperties: false
description: Definicja listy błędów / Errors list definition
AttributeList:
type: object
properties:
totalRecords:
type:
- integer
- 'null'
description: ''
format: int32
results:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/Attribute'
description: ''
metadata:
$ref: '#/components/schemas/Metadata'
version:
$ref: '#/components/schemas/Version'
additionalProperties: false
description: Lista atrybutów / Attributes list
Metadata:
type: object
properties:
id:
type:
- string
- 'null'
description: Id metadanych / Matadata's id
title:
type:
- string
- 'null'
description: Nazwa zasobu / Resource name
url:
type:
- string
- 'null'
description: Url zasobu / Resource Url
provider:
type:
- string
- 'null'
description: Dostawca zasobu / Resource provider
modificationDate:
type: string
description: Data ostatniej modyfikacji / Last modification date
format: date-time
description:
type:
- string
- 'null'
description: Opis zasobu / Resource description
keywords:
type:
- string
- 'null'
description: Słowa kluczowe / Describing keywords
temporalCoverage:
type:
- string
- 'null'
description: ''
language:
type:
- string
- 'null'
description: Języki prezentowania zasobu / Resource's languages
updatePeriod:
type:
- string
- 'null'
description: Częstotliwość aktualizacji / Update frequency
contentType:
type:
- string
- 'null'
description: Typ treści / Content type
additionalProperties: false
description: Definicja metadanych zasobu / Resource metadata definition
x-refined-from:
- stat-gov-pl-bdl-openapi.json
- stat-gov-pl-bdl-openapi.yml