{
  "openapi": "3.0.1",
  "info": {
    "title": "Monitor de Licitações PNCP: alertas diários, itens e ME/EPP",
    "description": "Receba todo dia as licitações novas do PNCP que combinam com o que você vende: palavras-chave, UF, valor e modalidade, com prazo em semáforo, itens, benefício ME/EPP e links do edital. Brazil public tenders monitor.",
    "version": "1.0",
    "x-build-id": "uk23r781bdUfqarew"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/br-intelligence~monitor-licitacoes-pncp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-br-intelligence-monitor-licitacoes-pncp",
        "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/br-intelligence~monitor-licitacoes-pncp/runs": {
      "post": {
        "operationId": "runs-sync-br-intelligence-monitor-licitacoes-pncp",
        "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/br-intelligence~monitor-licitacoes-pncp/run-sync": {
      "post": {
        "operationId": "run-sync-br-intelligence-monitor-licitacoes-pncp",
        "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": {
          "palavrasChave": {
            "title": "Palavras-chave",
            "type": "array",
            "description": "O que procurar no objeto da licitação. Sem acento e sem diferença de maiúsculas; \"computador\" também acha \"computadores\". Várias palavras na mesma linha exigem todas (\"material escritório\"). Use aspas para frase exata. Deixe vazio para receber todas.",
            "items": {
              "type": "string"
            }
          },
          "palavrasExcluidas": {
            "title": "Palavras para excluir",
            "type": "array",
            "description": "Licitações com estas palavras são descartadas. Ex.: \"locação\", \"manutenção\", \"leilão\".",
            "items": {
              "type": "string"
            }
          },
          "ufs": {
            "title": "Estados (UF)",
            "type": "array",
            "description": "Deixe vazio para todo o Brasil.",
            "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"
              ]
            }
          },
          "municipios": {
            "title": "Municípios",
            "type": "array",
            "description": "Opcional. Nome do município como no PNCP, por exemplo \"Uberlândia\".",
            "items": {
              "type": "string"
            }
          },
          "esferas": {
            "title": "Esfera",
            "type": "array",
            "description": "Deixe vazio para todas.",
            "items": {
              "type": "string",
              "enum": [
                "F",
                "E",
                "M",
                "D"
              ],
              "enumTitles": [
                "Federal",
                "Estadual",
                "Municipal",
                "Distrital"
              ]
            }
          },
          "cnpjOrgao": {
            "title": "CNPJ do órgão comprador",
            "type": "string",
            "description": "Opcional: acompanhar só um órgão (prefeitura, hospital, universidade...)."
          },
          "modalidades": {
            "title": "Modalidades",
            "type": "array",
            "description": "Padrão: pregões, concorrências, dispensas e credenciamentos (as que aceitam disputa).",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "10",
                "11",
                "12",
                "13"
              ],
              "enumTitles": [
                "Leilão eletrônico",
                "Diálogo competitivo",
                "Concurso",
                "Concorrência eletrônica",
                "Concorrência presencial",
                "Pregão eletrônico",
                "Pregão presencial",
                "Dispensa",
                "Inexigibilidade",
                "Manifestação de interesse",
                "Pré-qualificação",
                "Credenciamento",
                "Leilão presencial"
              ]
            }
          },
          "valorMinimo": {
            "title": "Valor estimado mínimo (R$)",
            "minimum": 0,
            "type": "integer",
            "description": "Opcional. Licitações com valor estimado menor são descartadas (as de valor sigiloso também)."
          },
          "valorMaximo": {
            "title": "Valor estimado máximo (R$)",
            "minimum": 0,
            "type": "integer",
            "description": "Opcional. Licitações com valor estimado maior são descartadas."
          },
          "somenteMeEpp": {
            "title": "Somente com benefício para ME/EPP",
            "type": "boolean",
            "description": "Itens exclusivos, cota reservada ou subcontratação para microempresas e empresas de pequeno porte.",
            "default": false
          },
          "modo": {
            "title": "Modo",
            "enum": [
              "novas",
              "abertas"
            ],
            "type": "string",
            "description": "\"Novas\" olha o que foi publicado nos últimos dias. \"Abertas\" traz tudo que ainda aceita proposta (use com estado ou palavras-chave para não ficar grande).",
            "default": "novas"
          },
          "diasRetroativos": {
            "title": "Dias para trás (modo Novas)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "1 = ontem e hoje. Para um agendamento diário, 1 ou 2 basta.",
            "default": 1
          },
          "somenteComPropostaAberta": {
            "title": "Somente com prazo de proposta em aberto",
            "type": "boolean",
            "description": "Descarta licitações cujo prazo de envio de proposta já terminou ou não foi informado.",
            "default": true
          },
          "somenteNovidades": {
            "title": "Somente novidades desde a última execução",
            "type": "boolean",
            "description": "Com os mesmos filtros, nunca entrega a mesma licitação duas vezes (e você não paga de novo).",
            "default": true
          },
          "incluirItensEDocumentos": {
            "title": "Incluir itens, ME/EPP e documentos do edital",
            "type": "boolean",
            "description": "Lista os itens com quantidade e valor estimado, o benefício para ME/EPP e os links dos arquivos (edital, termo de referência).",
            "default": true
          },
          "maxResultados": {
            "title": "Máximo de licitações por execução",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Limite de licitações entregues (e cobradas) por execução. As mais urgentes vêm primeiro.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}