{
  "openapi": "3.0.1",
  "info": {
    "title": "Sweden Job Ads API - Platsbanken (Arbetsförmedlingen)",
    "description": "$2 per 1,000 job ads. Swedish job ads (lediga jobb, platsannonser) from Platsbanken via Arbetsförmedlingen's official JobTech API (CC0). Filter by keyword, occupation, county, municipality, employment type and remote; get only new ads with scheduled alerts.",
    "version": "0.1",
    "x-build-id": "VLhMg0XZ69NBbXNOU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/orange_briefcase_hrj~sweden-job-ads-platsbanken/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-orange_briefcase_hrj-sweden-job-ads-platsbanken",
        "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/orange_briefcase_hrj~sweden-job-ads-platsbanken/runs": {
      "post": {
        "operationId": "runs-sync-orange_briefcase_hrj-sweden-job-ads-platsbanken",
        "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/orange_briefcase_hrj~sweden-job-ads-platsbanken/run-sync": {
      "post": {
        "operationId": "run-sync-orange_briefcase_hrj-sweden-job-ads-platsbanken",
        "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": {
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Free text searched in headline, description and employer name. Swedish or English job titles work, e.g. \"utvecklare\", \"sjuksköterska\", \"python\"."
          },
          "occupations": {
            "title": "Occupations",
            "type": "array",
            "description": "Occupation field (e.g. Data/IT), occupation group (Swedish name or 4-digit SSYK code, e.g. 2512) or occupation name (e.g. Systemutvecklare/Programmerare), or a JobTech concept id.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Counties (län)",
            "type": "array",
            "description": "County names or codes, e.g. Stockholm, Skåne, Västra Götaland, 14.",
            "items": {
              "type": "string"
            }
          },
          "municipalities": {
            "title": "Municipalities (kommun)",
            "type": "array",
            "description": "Municipality names or 4-digit codes, e.g. Göteborg / Gothenburg, Malmö, 0180.",
            "items": {
              "type": "string"
            }
          },
          "employmentTypes": {
            "title": "Employment type",
            "type": "array",
            "description": "Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "permanent",
                "temporary",
                "substitute",
                "onCall",
                "seasonal"
              ],
              "enumTitles": [
                "Permanent (tillsvidare)",
                "Fixed-term (tidsbegränsad)",
                "Substitute (vikariat)",
                "On call (behovsanställning)",
                "Seasonal"
              ]
            }
          },
          "workingHours": {
            "title": "Working hours",
            "enum": [
              "any",
              "fullTime",
              "partTime"
            ],
            "type": "string",
            "description": "Full-time or part-time.",
            "default": "any"
          },
          "remote": {
            "title": "Remote work",
            "enum": [
              "any",
              "remoteOnly",
              "excludeRemote"
            ],
            "type": "string",
            "description": "Based on Arbetsförmedlingen's remote-work phrase detection. Remote-friendly only also drops ads the employer marked as on-site.",
            "default": "any"
          },
          "noExperienceRequired": {
            "title": "No experience required",
            "type": "boolean",
            "description": "Only ads that don't require previous experience.",
            "default": false
          },
          "employers": {
            "title": "Employers",
            "type": "array",
            "description": "Employer names or organisation numbers (organisationsnummer).",
            "items": {
              "type": "string"
            }
          },
          "publishedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only ads published in the last N days."
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Only ads published on or after this date."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "newest",
              "relevance",
              "deadlineSoonest",
              "oldest"
            ],
            "type": "string",
            "description": "Newest/oldest can return more than 2,100 ads; relevance and deadline are limited to 2,100 by the API.",
            "default": "newest"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum ads saved in this run (you pay per ad saved).",
            "default": 100
          },
          "includeDescription": {
            "title": "Include full ad text",
            "type": "boolean",
            "description": "Ad description text. E-mail addresses and phone numbers are removed unless you opt in below.",
            "default": true
          },
          "englishLabels": {
            "title": "English labels",
            "type": "boolean",
            "description": "Add English versions (…En fields) of employment type, working hours, duration, salary type and occupation field.",
            "default": true
          },
          "includeContactDetails": {
            "title": "Include contact persons' details (opt-in)",
            "type": "boolean",
            "description": "Adds named contact persons, their phone numbers and e-mails, and leaves them unmasked in the ad text. This is personal data: only turn on if you have a lawful basis under GDPR (e.g. applying for the job).",
            "default": false
          },
          "onlyNew": {
            "title": "Only new ads since last run (alert mode)",
            "type": "boolean",
            "description": "Schedule the Actor (e.g. daily) and receive only ads it has not returned before for this search.",
            "default": false
          },
          "firstRunBaselineOnly": {
            "title": "First alert run: mark existing as seen",
            "type": "boolean",
            "description": "If on, the first alert run saves nothing and only remembers current ads.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store that remembers ads already returned.",
            "default": "se-job-alerts-state"
          },
          "stateKey": {
            "title": "Alert name (state key)",
            "type": "string",
            "description": "Optional name for this alert. Defaults to a hash of the search."
          },
          "requestIntervalSecs": {
            "title": "Seconds between API requests",
            "minimum": 0.2,
            "maximum": 10,
            "type": "number",
            "description": "Politeness delay between API calls.",
            "default": 0.5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}