{
  "openapi": "3.0.1",
  "info": {
    "title": "InfoJobs Jobs Scraper — Spain Jobs & Salary API",
    "description": "Scrape InfoJobs.net Spain job listings by keyword, province, category, or start URLs — an InfoJobs API alternative with no login. Export title, employer, city, contract, remote/hybrid, EUR salary with pay period, and descriptions as JSON.",
    "version": "1.0",
    "x-build-id": "zY8TVifljqjneeKrP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawloop~infojobs-jobs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawloop-infojobs-jobs-scraper",
        "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/crawloop~infojobs-jobs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawloop-infojobs-jobs-scraper",
        "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/crawloop~infojobs-jobs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawloop-infojobs-jobs-scraper",
        "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": {
          "position": {
            "title": "Position / keywords",
            "type": "string",
            "description": "Free-text job search (e.g. python, desarrollador, comercial, enfermero). Leave empty to browse a province or category."
          },
          "searchKeywords": {
            "title": "Extra keywords",
            "type": "array",
            "description": "Optional extra keyword queries. Each keyword is searched separately; results are merged and deduplicated by offer code.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Province or city",
            "type": "string",
            "description": "Spanish province (Madrid, Barcelona, Valencia, Málaga…) or city name. Comma-separated provinces are combined into one filter. Bilingual names work (València, Bizkaia, Gipuzkoa)."
          },
          "locations": {
            "title": "Extra locations",
            "type": "array",
            "description": "Optional extra provinces or cities. Combined with Location into one multi-province search (not a cartesian product).",
            "items": {
              "type": "string"
            }
          },
          "categorySlug": {
            "title": "Category",
            "enum": [
              "",
              "informatica-telecomunicaciones",
              "ingenieros-tecnicos",
              "comercial-ventas",
              "administracion-empresas",
              "sanidad-salud",
              "turismo-restauracion",
              "compras-logistica-almacen",
              "profesiones-artes-oficios",
              "atencion-a-cliente",
              "inmobiliario-construccion",
              "recursos-humanos",
              "educacion-formacion",
              "marketing-comunicacion",
              "calidad-produccion-id",
              "finanzas-banca",
              "legal",
              "administracion-publica",
              "diseno-artes-graficas",
              "venta-detalle",
              "sector-farmaceutico",
              "otros"
            ],
            "type": "string",
            "description": "InfoJobs top-level job category. Combined with keyword if both are set.",
            "default": ""
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional InfoJobs search or offer URLs. Query filters (provinceIds, categoryIds, teleworkingIds, contractTypeIds, sinceDate, sortBy) are parsed automatically. Semantic paths such as /ofertas-trabajo/madrid or /ofertas-trabajo/informatica-telecomunicaciones also work.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "workMode": {
            "title": "Work arrangement",
            "enum": [
              "",
              "remote",
              "hybrid",
              "onsite",
              "remote-hybrid"
            ],
            "type": "string",
            "description": "InfoJobs teleworking facet.",
            "default": ""
          },
          "contractType": {
            "title": "Contract type",
            "enum": [
              "",
              "1",
              "8",
              "5",
              "9",
              "3",
              "10",
              "4",
              "6"
            ],
            "type": "string",
            "description": "InfoJobs contract-type facet.",
            "default": ""
          },
          "sinceDate": {
            "title": "Posted within",
            "enum": [
              "",
              "ANY",
              "_24_HOURS",
              "_7_DAYS",
              "_15_DAYS"
            ],
            "type": "string",
            "description": "InfoJobs freshness window. Only ANY, last 24 hours, 7 days and 15 days are supported by the site.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "",
              "RELEVANCE",
              "PUBLICATION_DATE"
            ],
            "type": "string",
            "description": "Relevance only applies when a keyword is set. Empty = relevance with keyword, otherwise newest first.",
            "default": ""
          },
          "companyName": {
            "title": "Company name contains",
            "type": "string",
            "description": "Optional case-insensitive substring match on the employer name (applied after search)."
          },
          "salaryMin": {
            "title": "Min salary (EUR)",
            "minimum": 0,
            "maximum": 500000,
            "type": "integer",
            "description": "Keep only offers whose disclosed salary max (or min) is at least this amount. Offers without a salary are dropped when this filter is set. Compare YEAR / MONTH / HOUR via salaryPeriod."
          },
          "executiveOnly": {
            "title": "Executive only",
            "type": "boolean",
            "description": "Keep only InfoJobs Executive-segment postings.",
            "default": false
          },
          "onlyForeignCountry": {
            "title": "Jobs abroad only",
            "type": "boolean",
            "description": "Search InfoJobs listings flagged as outside Spain.",
            "default": false
          },
          "includeJobDescription": {
            "title": "Include job description",
            "type": "boolean",
            "description": "Keep the full description already present on the search card. No extra request. Turn off to shrink CSV/Excel exports.",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum job rows to collect across all searches. 0 = unlimited (subject to maxPages). One InfoJobs search tops out around 60k offers.",
            "default": 100
          },
          "maxPages": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Safety cap on InfoJobs pagination (~20 jobs per page).",
            "default": 20
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "On a schedule, push and charge only offer codes not seen in a previous run. First run delivers the full match set (baseline). Pair with an Apify Schedule and a stable monitorStoreName.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named Key-Value store for seen offer codes across scheduled runs. Use a distinct name per watch (e.g. python-madrid vs comercial-barcelona).",
            "default": "infojobs-jobs-monitor"
          },
          "resetMonitorState": {
            "title": "Reset monitor state",
            "type": "boolean",
            "description": "Clear the seen-job cache before this run (next run becomes a new baseline).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. InfoJobs search JSON is public and unauthenticated; leave proxy off for the cheapest run. Add ES residential only if you scale up and see blocks.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}