{
  "openapi": "3.0.1",
  "info": {
    "title": "InfoJobs Jobs Scraper",
    "description": "Scrape InfoJobs.net (Spain) job listings — title, company, salary range, contract, location, full description. MCP/API-ready.",
    "version": "1.2",
    "x-build-id": "HpYZfoRrRn6sFqXFV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~infojobs-jobs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-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/khadinakbar~infojobs-jobs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-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/khadinakbar~infojobs-jobs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-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": {
          "keyword": {
            "title": "Search keyword",
            "type": "string",
            "description": "Free-text job search run on InfoJobs.net, Spain's largest job board (e.g. 'desarrollador', 'enfermera Barcelona', 'marketing manager'). Searched in Spanish against job titles and descriptions. Leave empty only if you set `province`, `category`, or `searchUrls` instead. This is NOT a job-detail URL — for a specific saved search use `searchUrls`."
          },
          "province": {
            "title": "Province (location)",
            "type": "string",
            "description": "Optional Spanish province slug to restrict results to one region (e.g. 'madrid', 'barcelona', 'valencia', 'sevilla'). Use lowercase, no accents, hyphens for multi-word provinces ('santa-cruz-de-tenerife'). Combine with `keyword` to narrow a search. Leave empty to search all of Spain."
          },
          "category": {
            "title": "Job category",
            "type": "string",
            "description": "Optional InfoJobs category slug to filter by sector (e.g. 'informatica-telecomunicaciones', 'comercial-ventas', 'sanidad-salud', 'administracion-empresas'). Use the slug exactly as it appears in an InfoJobs category URL. Works with or without a `keyword`. Leave empty to search across all categories."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "RELEVANCE",
              "PUBLICATION_DATE"
            ],
            "type": "string",
            "description": "How to order results. 'RELEVANCE' returns the best keyword matches first; 'PUBLICATION_DATE' returns the newest postings first. Defaults to RELEVANCE. Use PUBLICATION_DATE for monitoring fresh job openings.",
            "default": "RELEVANCE"
          },
          "publishedSince": {
            "title": "Published since",
            "enum": [
              "ANY",
              "_24_HOURS",
              "_7_DAYS",
              "_15_DAYS"
            ],
            "type": "string",
            "description": "Restrict results to jobs published within a recent time window. 'ANY' returns all matching jobs; the others limit to the last 24 hours, 7 days, or 15 days. Defaults to ANY. Use a shorter window with PUBLICATION_DATE sort for daily monitoring.",
            "default": "ANY"
          },
          "maxResults": {
            "title": "Maximum jobs",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of job records to scrape across all searches combined. This caps your cost: you pay per job delivered, so a lower number is a cheaper sample. InfoJobs returns 22 jobs per page, so the Actor reads pages until this cap or the end of the results. Defaults to 100.",
            "default": 100
          },
          "onlyNewJobs": {
            "title": "Only new jobs since last run",
            "type": "boolean",
            "description": "When on, the Actor remembers the jobs it already delivered for this exact search and returns only jobs it has not delivered before (newest first). Use it for daily or hourly monitoring on a schedule. The first run returns everything up to Maximum jobs. Remembered jobs are never billed again.",
            "default": false
          },
          "remoteMode": {
            "title": "Work mode filter",
            "enum": [
              "ANY",
              "REMOTE",
              "HYBRID",
              "ONSITE"
            ],
            "type": "string",
            "description": "Keep only jobs with this work mode: REMOTE (fully remote), HYBRID, or ONSITE. ANY keeps everything. Filtered-out jobs are not delivered and not billed.",
            "default": "ANY"
          },
          "contractTypeContains": {
            "title": "Contract type contains",
            "type": "string",
            "description": "Keep only jobs whose contract label contains this text, in Spanish and ignoring accents, for example 'indefinido', 'temporal' or 'practicas'. Leave empty for all contracts."
          },
          "workdayContains": {
            "title": "Working hours contain",
            "type": "string",
            "description": "Keep only jobs whose working-hours label contains this text, in Spanish, for example 'completa' (full-time) or 'parcial' (part-time). Leave empty for all."
          },
          "salaryPublishedOnly": {
            "title": "Only jobs with a published salary",
            "type": "boolean",
            "description": "Keep only jobs where the employer published a salary range. Useful for salary benchmarking.",
            "default": false
          },
          "minAnnualSalary": {
            "title": "Minimum yearly salary (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only jobs whose top published salary is at least this yearly amount in euros. Monthly salaries are multiplied by 12. Jobs without a published salary are dropped when this is set. With any filter or new-jobs mode on, the Actor scans up to about 3 times the pages needed (at least 5, at most 60 pages) per search."
          },
          "searchUrls": {
            "title": "Search URLs (power mode)",
            "type": "array",
            "description": "Optional list of full InfoJobs search-results URLs to scrape directly (e.g. 'https://www.infojobs.net/jobsearch/search-results/list.xhtml?keyword=java&province=madrid'). Use this to reproduce an exact filtered search you built on the InfoJobs site. Only list.xhtml search URLs are supported — job-detail and SEO URLs are anti-bot protected and will be skipped. Overrides the keyword/province/category fields when provided.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Defaults to Apify Residential proxy in Spain (ES), which is required to reliably bypass InfoJobs' Incapsula anti-bot protection. Override only if you have a specific proxy need. Datacenter proxies are blocked more often by InfoJobs.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "ES"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}