{
  "openapi": "3.0.1",
  "info": {
    "title": "InfoJobs.net Spain Jobs Scraper",
    "description": "Public InfoJobs.net (Spain) job listings via search JSON: offer code, title, company, location, structured salary, contract, postedAt, description, URL. Not Brazil InfoJobs. $0.50 per 1,000 jobs, no start fee. Default proxy off.",
    "version": "0.1",
    "x-build-id": "MjSiwVwJa298bZ1kx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stone_jadex~infojobs-net-spain-jobs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stone_jadex-infojobs-net-spain-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/stone_jadex~infojobs-net-spain-jobs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-stone_jadex-infojobs-net-spain-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/stone_jadex~infojobs-net-spain-jobs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-stone_jadex-infojobs-net-spain-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": "Optional. Sent as keyword on /webapp/offers/search. Empty input defaults to python. Spain InfoJobs.net only — not Brazil."
          },
          "startUrls": {
            "title": "Search or offer URLs",
            "type": "array",
            "description": "Optional. An InfoJobs.net search URL (/ofertas-trabajo/… or /webapp/offers/search?…), or an offer deep link …/of-i{code}. Brazil infojobs.com.br URLs are rejected.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "provinceIds": {
            "title": "Province IDs",
            "type": "array",
            "description": "Optional numeric provinceIds[] filters as used by the public search API.",
            "items": {
              "type": "string"
            }
          },
          "cityIds": {
            "title": "City IDs",
            "type": "array",
            "description": "Optional numeric cityIds[] filters.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "RELEVANCE",
              "PUBLICATION_DATE"
            ],
            "type": "string",
            "description": "Search sortBy: RELEVANCE (default) or PUBLICATION_DATE.",
            "default": "RELEVANCE"
          },
          "maxItems": {
            "title": "Max jobs",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many charged jobs. Alias: maxResults.",
            "default": 50
          },
          "maxResults": {
            "title": "Max jobs (alias)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Alias for maxItems."
          },
          "maxPages": {
            "title": "Max list pages",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Optional. Each search page has about 20–22 offers."
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "First search page when the start URL does not already set ?page=.",
            "default": 1
          },
          "scrapeDetails": {
            "title": "Open each offer page",
            "type": "boolean",
            "description": "Fetches the public offer HTML. List JSON already has full description and salary when published; keep this off for the $0.0665/1k cost gate. Some detail HTML hits a Distil check — those rows stay list-tier. Alias: includeDetails.",
            "default": false
          },
          "includeDetails": {
            "title": "Open each offer page (alias)",
            "type": "boolean",
            "description": "Alias for scrapeDetails."
          },
          "includeHrContact": {
            "title": "Keep public HR / apply URL",
            "type": "boolean",
            "description": "When scrapeDetails succeeds, keep the public apply URL from the offer page. Off by default. Never collects candidate PII.",
            "default": false
          },
          "requestIntervalMs": {
            "title": "Minimum gap between request starts (ms)",
            "minimum": 1200,
            "type": "integer",
            "description": "At least 1.2 seconds between request starts. A Crawl-delay in robots.txt can only raise this.",
            "default": 1200
          },
          "concurrency": {
            "title": "Requests in flight",
            "minimum": 1,
            "maximum": 1,
            "type": "integer",
            "description": "Fixed at 1 to keep cost under the $0.0665/1k gate. Rows are still saved in page order.",
            "default": 1
          },
          "maxRunSeconds": {
            "title": "Max run time (seconds)",
            "minimum": 30,
            "type": "integer",
            "description": "Stops cleanly and writes the OUTPUT record before this limit.",
            "default": 3600
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Default: proxy off (useApifyProxy false). Enable Apify datacenter if you need fallback after 403/429. Do not set RESIDENTIAL unless cost still ≤ $0.0665/1k at $0.0005/job (5 MB cap).",
            "default": {
              "useApifyProxy": false
            }
          },
          "useProxyFallback": {
            "title": "Use proxy only after repeated blocks",
            "type": "boolean",
            "description": "When a proxy is configured: stay direct until 403/429, then switch. Residential groups are opt-in only.",
            "default": true
          },
          "allowDetailOnResidential": {
            "title": "Allow detail pages on residential proxy",
            "type": "boolean",
            "description": "Detail pages stay on a direct connection when the proxy group is residential. Turn this on only if those pages should use the residential proxy too.",
            "default": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}