{
  "openapi": "3.0.1",
  "info": {
    "title": "Ikerbasque Jobs Scraper — Basque Research, Spain",
    "description": "Scrape open calls from Ikerbasque, the Basque Foundation for Science in Spain: postdoc Research Fellow, Associate & Professor programmes plus permanent science jobs in the Basque Country. Records give title, status, dates, optional AI deadline, snippet and apply URL.",
    "version": "0.1",
    "x-build-id": "HfVSqq6y5bHAo51Zk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nomad-agent~ikerbasque-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nomad-agent-ikerbasque-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/nomad-agent~ikerbasque-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nomad-agent-ikerbasque-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/nomad-agent~ikerbasque-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nomad-agent-ikerbasque-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": {
          "includeClosed": {
            "title": "Include closed calls",
            "type": "boolean",
            "description": "When enabled, closed calls (no longer accepting applications) are included alongside open ones. By default only open calls are returned.",
            "default": false
          },
          "postedSince": {
            "title": "Posted within last N days",
            "type": "integer",
            "description": "Only return calls last posted/updated within this many days. Ikerbasque doesn't publish a distinct <code>date first posted</code>, so this is applied client-side against the source page's own last-updated date. Calls whose date can't be determined are kept rather than dropped. Set 0 (default) to disable and return all calls regardless of age.",
            "default": 0
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Maximum number of calls to return. Each result returned is a billed event — see the Pricing tab. Applied before AI enrichment, so you never pay to enrich rows you capped out. Set 0 for no limit (the calls page currently lists only a handful of open/closed calls, so this is low-risk today, but capping it bounds cost if that changes).",
            "default": 50
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Delta / alert mode: only output calls not seen on a previous run that also had this flag on — the mechanical way to \"alert the day a call opens\". Already-seen calls are dropped before push (not billed), so this is the cheapest way to run this Actor on a cron schedule and only pay for genuinely new calls. State is tracked per Actor in a dedicated key-value store, keyed by the call's URL slug. See README \"Delta mode / alerts\".",
            "default": false
          },
          "aiEnrichment": {
            "title": "AI enrichment",
            "type": "boolean",
            "description": "Adds a structured <code>deadline</code> field (ISO YYYY-MM-DD) to every call by reading its free-form description via the Anthropic, Mistral or OpenAI API (pick which below). Ikerbasque states deadlines only as prose (\"Deadline: 10th September 2026\"), so this closes that gap without brittle date regex — the model returns null whenever the text states no specific calendar date, and never guesses. Requires your own API key for the provider you pick — billed separately by that provider, not by this Actor (see README \"AI deadline extraction\"). If turned on without a matching key, enrichment is skipped (with a warning) and calls are still returned normally, with deadline left null.",
            "default": false
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "anthropic",
              "mistral",
              "openai"
            ],
            "type": "string",
            "description": "Which AI provider runs deadline extraction (only relevant when \"AI enrichment\" is on). <code>anthropic</code> (default) uses Claude via anthropicApiKey. <code>mistral</code> uses a Mistral model via mistralApiKey instead — pick this if you'd rather bring a Mistral key than an Anthropic one. <code>openai</code> uses a GPT model via openaiApiKey.",
            "default": "anthropic"
          },
          "anthropicApiKey": {
            "title": "Anthropic API key",
            "type": "string",
            "description": "Your Anthropic API key (sk-ant-…). Only used when \"AI enrichment\" is on and aiProvider is <code>anthropic</code>; billed separately by Anthropic. Not required unless aiEnrichment is on."
          },
          "aiModel": {
            "title": "AI enrichment model (Anthropic)",
            "type": "string",
            "description": "Claude model id used for deadline extraction when aiProvider is <code>anthropic</code> (only relevant when \"AI enrichment\" is on). Any valid Anthropic model id works, e.g. <code>claude-haiku-4-5-20251001</code> (default — fast, cheap, ample for this single-field extraction) or <code>claude-sonnet-4-5</code> (higher-quality reading on longer descriptions).",
            "default": "claude-haiku-4-5-20251001"
          },
          "mistralApiKey": {
            "title": "Mistral API key",
            "type": "string",
            "description": "Your Mistral API key. Only used when \"AI enrichment\" is on and aiProvider is <code>mistral</code>; billed separately by Mistral. Not required unless aiEnrichment is on with aiProvider=mistral."
          },
          "mistralModel": {
            "title": "AI enrichment model (Mistral)",
            "type": "string",
            "description": "Mistral model id used for deadline extraction when aiProvider is <code>mistral</code> (only relevant when \"AI enrichment\" is on). Any valid Mistral model id works, e.g. <code>mistral-small-latest</code> (default — matches larger Mistral models on this well-scoped extraction at a fraction of the cost), <code>mistral-medium-latest</code> or <code>mistral-large-latest</code>.",
            "default": "mistral-small-latest"
          },
          "openaiApiKey": {
            "title": "OpenAI API key",
            "type": "string",
            "description": "Your OpenAI API key (sk-…). Only used when \"AI enrichment\" is on and aiProvider is <code>openai</code>; billed separately by OpenAI. Not required unless aiEnrichment is on with aiProvider=openai."
          },
          "openaiModel": {
            "title": "AI enrichment model (OpenAI)",
            "type": "string",
            "description": "OpenAI model id used for deadline extraction when aiProvider is <code>openai</code> (only relevant when \"AI enrichment\" is on). Defaults to <code>gpt-4.1-mini</code> — cheap, fast and ample for this single-field extraction. Any chat-completions model works, including the gpt-5 family.",
            "default": "gpt-4.1-mini"
          },
          "cacheTtlSeconds": {
            "title": "Cache TTL (seconds)",
            "type": "integer",
            "description": "How long to reuse a previous fetch of the Ikerbasque pages before checking the site again, in seconds. Re-runs within this window are faster and don't hit the site again. Set 0 to always fetch fresh data.",
            "default": 1800
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}