{
  "openapi": "3.0.1",
  "info": {
    "title": "ENEM API and SISU(Sistema de Seleção Unificada)",
    "description": "Extraia e pesquise dados do ENEM e SISU. Obtenha questões do ENEM, gabaritos oficiais, obtenha dados do SISU, incluindo notas de corte, candidatos aprovados, classificação (posição do candidato), situação (aprovado, lista de espera, não aprovado), grau (Bacharelado, Licenciatura ou Tecnólogo).",
    "version": "0.0",
    "x-build-id": "55TcU4njqa4tsBReL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/antonio_cesar~enem-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-antonio_cesar-enem-api",
        "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/antonio_cesar~enem-api/runs": {
      "post": {
        "operationId": "runs-sync-antonio_cesar-enem-api",
        "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/antonio_cesar~enem-api/run-sync": {
      "post": {
        "operationId": "run-sync-antonio_cesar-enem-api",
        "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",
        "required": [
          "dataType"
        ],
        "properties": {
          "dataType": {
            "title": "Tipo de Dado",
            "enum": [
              "enem_questions",
              "sisu"
            ],
            "type": "string",
            "description": "Selecione entre consultar DADOS DE PROVAS ENEM ou DADOS DO SISU.",
            "default": "enem_questions"
          },
          "questionMode": {
            "title": "Modo (Questões ENEM)",
            "enum": [
              "list",
              "search"
            ],
            "type": "string",
            "description": "Escolha entre listar várias questões filtradas ou buscar uma específica por número.",
            "default": "list"
          },
          "enemYear": {
            "title": "Ano / Edição do ENEM",
            "minimum": 2009,
            "maximum": 2025,
            "type": "integer",
            "description": "Ano da edição do ENEM (ex: 2024, 2023, 2010)."
          },
          "questionNumber": {
            "title": "Número da Questão (ENEM)",
            "minimum": 1,
            "maximum": 185,
            "type": "integer",
            "description": "Número da questão na prova (1 a 185). Usado apenas no modo 'Buscar Questão Específica'."
          },
          "language": {
            "title": "Idioma (Língua Estrangeira)",
            "enum": [
              "",
              "ingles",
              "espanhol"
            ],
            "type": "string",
            "description": "Idioma da prova de opção (questões 91-95). Use 'ingles' ou 'espanhol'.",
            "default": ""
          },
          "category": {
            "title": "Categoria / Área de Conhecimento (ENEM)",
            "enum": [
              "",
              "linguagens",
              "ciencias-humanas",
              "ciencias-da-natureza",
              "matematica"
            ],
            "type": "string",
            "description": "Filtra questões pela área do ENEM.",
            "default": ""
          },
          "sisuResource": {
            "title": "Recurso do SISU",
            "enum": [
              "courses",
              "cut_scores",
              "approved_students",
              "manifest"
            ],
            "type": "string",
            "description": "Escolha qual conjunto de dados do SISU consultar.",
            "default": "courses"
          },
          "sisuYear": {
            "title": "Ano / Edição do SISU",
            "minimum": 2009,
            "maximum": 2025,
            "type": "integer",
            "description": "Ano da edição/processo seletivo do SISU (ex: 2025, 2024, 2023)."
          },
          "searchQuery": {
            "title": "Termo de Pesquisa / Curso",
            "type": "string",
            "description": "Nome do curso, universidade ou palavra-chave (ex: 'Medicina', 'USP')."
          },
          "state": {
            "title": "Estado / UF (SISU)",
            "enum": [
              "",
              "AC",
              "AL",
              "AP",
              "AM",
              "BA",
              "CE",
              "DF",
              "ES",
              "GO",
              "MA",
              "MT",
              "MS",
              "MG",
              "PA",
              "PB",
              "PR",
              "PE",
              "PI",
              "RJ",
              "RN",
              "RS",
              "RO",
              "RR",
              "SC",
              "SP",
              "SE",
              "TO"
            ],
            "type": "string",
            "description": "Selecione o estado para filtrar ofertas e vagas do SISU.",
            "default": ""
          },
          "studentName": {
            "title": "Nome do Estudante",
            "type": "string",
            "description": "Filtra pelo nome do estudante (recurso Estudantes Aprovados)."
          },
          "callNumber": {
            "title": "Número da Chamada",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Número da chamada do SISU (ex: 1 para 1ª Chamada, 2 para 2ª Chamada)."
          },
          "modalityCode": {
            "title": "Código da Modalidade / Cota",
            "type": "string",
            "description": "Código da modalidade de concorrência/cota (ex: L1, L2, L5, AC)."
          },
          "studentStatus": {
            "title": "Status do Candidato",
            "type": "string",
            "description": "Filtra por status do candidato (ex: aprovado, matriculado, suplente)."
          },
          "maxResults": {
            "title": "Limite Máximo de Resultados",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Limite máximo absoluto de itens a extrair e salvar no dataset. Use 0 para sem limite.",
            "default": 100
          },
          "perPage": {
            "title": "Itens por Página",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Quantidade de registros por requisição da API (máx: 100).",
            "default": 15
          },
          "maxPages": {
            "title": "Máximo de Páginas",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Número máximo de páginas a consultar na API. Use 0 para buscar todas.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}