{
  "openapi": "3.0.1",
  "info": {
    "title": "convocatoriasdetrabajo Perú",
    "description": "Extractor de trabajos de la web peruana convocatoriasdetrabajo.com.",
    "version": "0.1",
    "x-build-id": "tsHsNBSEIzsL2kYEF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/giggling_hyperbole~peru-public-jobs/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-giggling_hyperbole-peru-public-jobs",
        "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/giggling_hyperbole~peru-public-jobs/runs": {
      "post": {
        "operationId": "runs-sync-giggling_hyperbole-peru-public-jobs",
        "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/giggling_hyperbole~peru-public-jobs/run-sync": {
      "post": {
        "operationId": "run-sync-giggling_hyperbole-peru-public-jobs",
        "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": {
          "startUrls": {
            "title": "Fuentes de búsqueda",
            "type": "array",
            "description": "Ingresa una o varias URL de listados de convocatorias desde las que comenzará la extracción.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "URL",
                  "description": "URL de la página de convocatorias que se desea analizar.",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ]
            },
            "default": [
              {
                "url": "https://www.convocatoriasdetrabajo.com/convocatorias-cas-vigentes.php"
              }
            ]
          },
          "keywords": {
            "title": "🔍 Palabras clave",
            "type": "array",
            "description": "Busca coincidencias en el título, la entidad, los requisitos o la descripción. Si ingresas varias, basta con que coincida una.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "departments": {
            "title": "📍 Departamentos",
            "type": "array",
            "description": "Limita los resultados a los departamentos indicados. Si no agregas ninguno, no se aplica este filtro.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "provinces": {
            "title": "📍 Provincias",
            "type": "array",
            "description": "Ingresa una o varias provincias. Se buscan en el texto del lugar de trabajo de la convocatoria; si el lugar no menciona la provincia, la oferta se excluye aunque pudiera corresponder a ella.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "educationLevels": {
            "title": "🎓 Nivel de estudios",
            "type": "array",
            "description": "Selecciona los niveles mencionados en la formación académica. La clasificación es orientativa y no verifica equivalencias.",
            "items": {
              "type": "string",
              "enum": [
                "Estudiante",
                "Egresado",
                "Bachiller",
                "Titulado",
                "Titulado técnico",
                "Maestría",
                "Doctorado",
                "Secundaria"
              ]
            },
            "default": []
          },
          "contractTypes": {
            "title": "📄 Modalidad de contratación",
            "type": "array",
            "description": "Filtra por la modalidad identificada en la convocatoria.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "minSalary": {
            "title": "💰 Sueldo mínimo (PEN)",
            "minimum": 0,
            "type": "integer",
            "description": "Muestra convocatorias con un sueldo identificado igual o superior al importe indicado, en soles. Los sueldos no identificados se excluyen."
          },
          "generalExperienceYears": {
            "title": "⏱️ Tu experiencia general (años)",
            "minimum": 0,
            "type": "number",
            "description": "Indica los años de experiencia general que tienes. Se comparan con el requisito identificado; deja el campo vacío para no aplicar este filtro."
          },
          "specificExperienceYears": {
            "title": "🛠️ Tu experiencia específica (años)",
            "minimum": 0,
            "type": "number",
            "description": "Indica los años de experiencia específica que tienes. Revisa en las bases que corresponda a la función solicitada."
          },
          "publicExperienceYears": {
            "title": "🏛️ Tu experiencia en el sector público (años)",
            "minimum": 0,
            "type": "number",
            "description": "Indica los años que tienes en el sector público. Ingresa 0 si no tienes; deja vacío para no filtrar."
          },
          "includeUnknownExperience": {
            "title": "❔ Incluir experiencia no identificada",
            "type": "boolean",
            "description": "Conserva convocatorias cuyos requisitos de experiencia no pudieron interpretarse. Esto no confirma que cumplas los requisitos; revisa las bases.",
            "default": true
          },
          "maxPages": {
            "title": "📑 Máximo de páginas",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Número máximo de páginas de listados que se recorrerán, incluidas las URL iniciales.",
            "default": 10
          },
          "maxItems": {
            "title": "📊 Máximo de resultados",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cantidad máxima de convocatorias que se guardarán en el dataset.",
            "default": 500
          },
          "visitDetails": {
            "title": "🔎 Visitar fichas de detalle",
            "type": "boolean",
            "description": "Visita cada ficha para extraer sus requisitos. Debe estar activado cuando uses filtros de búsqueda, estudios, sueldo o experiencia.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}