{
  "openapi": "3.0.1",
  "info": {
    "title": "Licitações Abertas PNCP | Brazil Public Tenders",
    "description": "Licitações abertas do PNCP por palavra-chave, UF, modalidade, valor e prazo. Monitor diário só com editais novos, itens com valor unitário, ME/EPP e documentos. Remove suspensos e vencidos. Brazil public tenders (licitações) API, fast and reliable.",
    "version": "0.0",
    "x-build-id": "DsleLhakyZaUxqD5S"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/joaocamargo~pncp-apify/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-joaocamargo-pncp-apify",
        "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/joaocamargo~pncp-apify/runs": {
      "post": {
        "operationId": "runs-sync-joaocamargo-pncp-apify",
        "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/joaocamargo~pncp-apify/run-sync": {
      "post": {
        "operationId": "run-sync-joaocamargo-pncp-apify",
        "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": {
          "keywords": {
            "title": "Palavras-chave",
            "type": "array",
            "description": "Termos buscados no edital e nos itens (sem diferenciar acentos). Traz editais com QUALQUER um dos termos; termos com mais de uma palavra são buscados como frase exata, ex.: material de limpeza. O campo palavrasChave do resultado mostra quais termos apareceram. Deixe vazio para listar todos os editais que passam nos filtros.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Excluir editais que contenham",
            "type": "array",
            "description": "Descarta editais cujo título ou objeto contenha algum destes termos. Ex.: locação, manutenção.",
            "items": {
              "type": "string"
            }
          },
          "ufs": {
            "title": "Estados (UF)",
            "type": "array",
            "description": "Deixe vazio para o Brasil inteiro.",
            "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"
              ]
            }
          },
          "modalidades": {
            "title": "Modalidades",
            "type": "array",
            "description": "Deixe vazio para todas.",
            "items": {
              "type": "string",
              "enum": [
                "6",
                "8",
                "4",
                "5",
                "7",
                "9",
                "12",
                "1",
                "13",
                "3",
                "2",
                "10",
                "11"
              ],
              "enumTitles": [
                "Pregão Eletrônico",
                "Dispensa",
                "Concorrência Eletrônica",
                "Concorrência Presencial",
                "Pregão Presencial",
                "Inexigibilidade",
                "Credenciamento",
                "Leilão Eletrônico",
                "Leilão Presencial",
                "Concurso",
                "Diálogo Competitivo",
                "Manifestação de Interesse",
                "Pré-qualificação"
              ]
            }
          },
          "esferas": {
            "title": "Esfera do órgão",
            "type": "array",
            "description": "Federal, estadual, municipal ou distrital. Deixe vazio para todas.",
            "items": {
              "type": "string",
              "enum": [
                "F",
                "E",
                "M",
                "D"
              ],
              "enumTitles": [
                "Federal",
                "Estadual",
                "Municipal",
                "Distrital"
              ]
            }
          },
          "minValue": {
            "title": "Valor estimado mínimo (R$)",
            "minimum": 0,
            "type": "integer",
            "description": "Editais sem valor divulgado (orçamento sigiloso) são descartados quando este filtro é usado."
          },
          "maxValue": {
            "title": "Valor estimado máximo (R$)",
            "minimum": 0,
            "type": "integer",
            "description": "Descarta editais com valor estimado acima deste. Editais sem valor divulgado são mantidos."
          },
          "closingWithinDays": {
            "title": "Encerra em até (dias)",
            "minimum": 0,
            "type": "integer",
            "description": "Só editais cujo prazo de propostas termina dentro deste número de dias."
          },
          "minDaysToClose": {
            "title": "Encerra em no mínimo (dias)",
            "minimum": 0,
            "type": "integer",
            "description": "Descarta editais que encerram cedo demais para você preparar a proposta."
          },
          "publishedWithinDays": {
            "title": "Publicado nos últimos (dias)",
            "minimum": 1,
            "type": "integer",
            "description": "Só editais publicados no PNCP dentro deste número de dias."
          },
          "onlyOpen": {
            "title": "Somente com propostas abertas",
            "type": "boolean",
            "description": "Remove editais suspensos, revogados, anulados ou com prazo encerrado (o PNCP às vezes mistura esses casos na lista de abertos).",
            "default": true
          },
          "maxResults": {
            "title": "Máximo de editais",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Você só paga pelos editais entregues.",
            "default": 100
          },
          "onlyNew": {
            "title": "Somente editais novos (modo monitor)",
            "type": "boolean",
            "description": "Agende o Actor (ex.: todo dia às 7h) e receba só os editais que ainda não foram entregues neste monitor. Editais repetidos não são cobrados.",
            "default": false
          },
          "monitorId": {
            "title": "Nome do monitor",
            "type": "string",
            "description": "Use nomes diferentes para monitores independentes (ex.: um por cliente ou por linha de produto).",
            "default": "padrao"
          },
          "includeDetails": {
            "title": "Incluir itens e documentos",
            "type": "boolean",
            "description": "Lista de itens (descrição, quantidade, valor unitário, exclusividade ME/EPP) e links do edital, termo de referência e anexos. Cobrança extra por edital.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}