{
  "openapi": "3.0.1",
  "info": {
    "title": "Brazil Public Tenders Feed: PNCP Licitações & Pregões",
    "description": "New Brazilian public tenders (pregões, concorrências, dispensas com disputa) from the official PNCP API. Filter by state, modality, keyword, value, government level, buyer. Schedule it daily and get only notices you have not seen. No API key.",
    "version": "0.0",
    "x-build-id": "Q1KZ6hk1cyT8ifFO0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/asunoki~brazil-public-tenders-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-asunoki-brazil-public-tenders-feed",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/asunoki~brazil-public-tenders-feed/runs": {
      "post": {
        "operationId": "runs-sync-asunoki-brazil-public-tenders-feed",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/asunoki~brazil-public-tenders-feed/run-sync": {
      "post": {
        "operationId": "run-sync-asunoki-brazil-public-tenders-feed",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "modalities": {
            "title": "Modalities",
            "type": "array",
            "description": "Leave empty for pregão eletrônico + concorrência eletrônica. Each modality is a separate set of API requests, so fewer modalities run faster.",
            "items": {
              "type": "string",
              "enum": [
                "pregao-eletronico",
                "concorrencia-eletronica",
                "dispensa",
                "pregao-presencial",
                "concorrencia-presencial",
                "credenciamento",
                "leilao-eletronico",
                "leilao-presencial",
                "concurso",
                "dialogo-competitivo",
                "manifestacao-interesse",
                "pre-qualificacao",
                "inexigibilidade"
              ],
              "enumTitles": [
                "Pregão eletrônico (electronic reverse auction, ~1,800 per working day)",
                "Concorrência eletrônica (open competition, ~260 per day)",
                "Dispensa (direct contracting; only those with a proposal window are open, ~3,600 per day in total)",
                "Pregão presencial (in person)",
                "Concorrência presencial (in person)",
                "Credenciamento (accreditation)",
                "Leilão eletrônico (auction, government sells)",
                "Leilão presencial (auction, in person)",
                "Concurso (design contest)",
                "Diálogo competitivo (competitive dialogue)",
                "Manifestação de interesse (expression of interest)",
                "Pré-qualificação (pre-qualification)",
                "Inexigibilidade (no competition possible; never open for bids)"
              ]
            }
          },
          "states": {
            "title": "States (UF)",
            "type": "array",
            "description": "State of the buying unit. Filtered by the API itself, so a state filter makes runs much faster. Leave empty for all of Brazil.",
            "items": {
              "type": "string",
              "enum": [
                "AC",
                "AL",
                "AM",
                "AP",
                "BA",
                "CE",
                "DF",
                "ES",
                "GO",
                "MA",
                "MG",
                "MS",
                "MT",
                "PA",
                "PB",
                "PE",
                "PI",
                "PR",
                "RJ",
                "RN",
                "RO",
                "RR",
                "RS",
                "SC",
                "SE",
                "SP",
                "TO"
              ],
              "enumTitles": [
                "Acre",
                "Alagoas",
                "Amazonas",
                "Amapá",
                "Bahia",
                "Ceará",
                "Distrito Federal",
                "Espírito Santo",
                "Goiás",
                "Maranhão",
                "Minas Gerais",
                "Mato Grosso do Sul",
                "Mato Grosso",
                "Pará",
                "Paraíba",
                "Pernambuco",
                "Piauí",
                "Paraná",
                "Rio de Janeiro",
                "Rio Grande do Norte",
                "Rondônia",
                "Roraima",
                "Rio Grande do Sul",
                "Santa Catarina",
                "Sergipe",
                "São Paulo",
                "Tocantins"
              ]
            }
          },
          "keywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "Only notices whose object or additional information contains at least one of these. Case and accents are ignored: \"licitacao\" matches \"LICITAÇÃO\". Use Portuguese terms, e.g. software, merenda escolar, pavimentação, uniformes.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices whose object or additional information contains any of these.",
            "items": {
              "type": "string"
            }
          },
          "openOnly": {
            "title": "Open for proposals only",
            "type": "boolean",
            "description": "Keep only notices with a proposal deadline in the future and status \"Divulgada no PNCP\" (not suspended, revoked or annulled). Turn off to also get direct-contracting acts and republished notices whose deadline has passed.",
            "default": true
          },
          "minValueBrl": {
            "title": "Minimum estimated value (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "valorTotalEstimado of the notice."
          },
          "maxValueBrl": {
            "title": "Maximum estimated value (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave empty for no maximum."
          },
          "includeUnknownValue": {
            "title": "Keep notices without a value",
            "type": "boolean",
            "description": "Some notices publish 0 or a confidential budget. Turn off to drop them when a value filter is set.",
            "default": true
          },
          "governmentLevels": {
            "title": "Government level",
            "type": "array",
            "description": "Leave empty for all. About 4 in 5 notices are municipal.",
            "items": {
              "type": "string",
              "enum": [
                "federal",
                "state",
                "municipal",
                "district"
              ],
              "enumTitles": [
                "Federal",
                "State (estadual)",
                "Municipal",
                "Distrito Federal"
              ]
            }
          },
          "buyerNameContains": {
            "title": "Buyer name contains",
            "type": "array",
            "description": "Matched on the buying organisation and unit names, ignoring case and accents, e.g. prefeitura de campinas, universidade federal, exército.",
            "items": {
              "type": "string"
            }
          },
          "municipalityIbgeCodes": {
            "title": "Municipalities (IBGE codes)",
            "type": "array",
            "description": "7-digit IBGE codes of the buying unit's municipality, e.g. 3550308 (São Paulo), 3304557 (Rio de Janeiro). Combine with the state filter for speed.",
            "items": {
              "type": "string"
            }
          },
          "days": {
            "title": "Days to look back (Brasília dates)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Publication dates read on every run: today and the days before it (Brasília time). For a daily schedule use 2, for a weekly schedule 8, so nothing falls between runs.",
            "default": 2
          },
          "onlyNew": {
            "title": "Only notices not output before (for schedules)",
            "type": "boolean",
            "description": "Remembered per filter set in a named key-value store. Turn off to get the whole window every time.",
            "default": true
          },
          "maxItems": {
            "title": "Max notices per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "You are charged per notice stored, so this caps the cost of a run. Notices cut by the limit stay new for the next run.",
            "default": 200
          },
          "descriptionMaxChars": {
            "title": "Text length (characters)",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "The object and additional information are shortened to this length (keywords are matched on the full text). 0 leaves both out.",
            "default": 1000
          },
          "stateStoreName": {
            "title": "State store name (advanced)",
            "type": "string",
            "description": "Leave empty to use the default."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}