{
  "openapi": "3.0.1",
  "info": {
    "title": "Norway Jobs Search Api",
    "description": "Search, normalize and deduplicate Norwegian jobs from LinkedIn, Jobbnorge and NAV/Arbeidsplassen. Strict filters, ranking, geo search and monitoring.",
    "version": "0.0",
    "x-build-id": "iQWpnfvi7zYQAWD1c"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yearly_register~norway-jobs-search-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yearly_register-norway-jobs-search-api",
        "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/yearly_register~norway-jobs-search-api/runs": {
      "post": {
        "operationId": "runs-sync-yearly_register-norway-jobs-search-api",
        "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/yearly_register~norway-jobs-search-api/run-sync": {
      "post": {
        "operationId": "run-sync-yearly_register-norway-jobs-search-api",
        "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",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "title": "Query",
            "minLength": 1,
            "maxLength": 200,
            "type": "string",
            "description": "Job title, occupation, skill or keyword. Norwegian synonym expansion is deterministic.",
            "default": "ingeniør"
          },
          "locations": {
            "title": "Locations",
            "maxItems": 20,
            "type": "array",
            "description": "Norwegian cities or places. Add several origins to search around all of them.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "default": [
              "Oslo"
            ]
          },
          "radiusKm": {
            "title": "Radius",
            "minimum": 0.1,
            "maximum": 1000,
            "type": "number",
            "description": "Maximum straight-line distance from the closest resolved location. Jobs without coordinates are retained unless strict geo is enabled."
          },
          "publishedWithinDays": {
            "title": "Published within",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Keep jobs published within this many days when the source provides a publication date.",
            "default": 7
          },
          "sources": {
            "title": "Sources",
            "minItems": 1,
            "maxItems": 3,
            "uniqueItems": true,
            "type": "array",
            "description": "Jobbnorge and LinkedIn need no secret. Arbeidsplassen requires NAV_JOB_FEED_TOKEN.",
            "items": {
              "type": "string",
              "enum": [
                "arbeidsplassen",
                "jobbnorge",
                "linkedin"
              ],
              "enumTitles": [
                "NAV Arbeidsplassen",
                "Jobbnorge",
                "LinkedIn Jobs"
              ]
            },
            "default": [
              "jobbnorge",
              "linkedin"
            ]
          },
          "maxResults": {
            "title": "Maximum unique jobs",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum final canonical vacancies after normalization, filtering and cross-source deduplication.",
            "default": 10
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "match",
              "publishedAt",
              "distance"
            ],
            "type": "string",
            "description": "Primary ordering of final results.",
            "default": "match"
          },
          "employmentTypes": {
            "title": "Employment types",
            "uniqueItems": true,
            "type": "array",
            "description": "If selected, jobs with missing or different employment type are excluded.",
            "items": {
              "type": "string",
              "enum": [
                "FULL_TIME",
                "PART_TIME",
                "CONTRACT",
                "TEMPORARY",
                "INTERNSHIP",
                "APPRENTICESHIP",
                "OTHER"
              ],
              "enumTitles": [
                "Full time",
                "Part time",
                "Contract",
                "Temporary",
                "Internship",
                "Apprenticeship",
                "Other"
              ]
            },
            "default": []
          },
          "remote": {
            "title": "Work arrangement",
            "enum": [
              "ANY",
              "REMOTE",
              "HYBRID",
              "ON_SITE"
            ],
            "type": "string",
            "description": "Optionally require a normalized remote, hybrid, or on-site arrangement.",
            "default": "ANY"
          },
          "includeKeywords": {
            "title": "Include any keyword",
            "maxItems": 50,
            "type": "array",
            "description": "Require at least one term in title, company or description.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": []
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "maxItems": 50,
            "type": "array",
            "description": "Exclude a job when any term occurs in title, company or description.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": []
          },
          "titleMustIncludeAny": {
            "title": "Title must include any",
            "maxItems": 50,
            "type": "array",
            "description": "Require at least one listed token or phrase in the normalized title.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": []
          },
          "titleExclude": {
            "title": "Exclude from title",
            "maxItems": 50,
            "type": "array",
            "description": "Exclude a job when any listed token or phrase occurs in its title.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": []
          },
          "descriptionMustIncludeAny": {
            "title": "Description must include any",
            "maxItems": 50,
            "type": "array",
            "description": "Require at least one listed token or phrase in the normalized plain-text description.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": []
          },
          "companyInclude": {
            "title": "Include companies",
            "maxItems": 50,
            "type": "array",
            "description": "Require at least one listed company token or phrase.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": []
          },
          "companyExclude": {
            "title": "Exclude companies",
            "maxItems": 50,
            "type": "array",
            "description": "Exclude a job when any listed company token or phrase matches.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": []
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "monitor"
            ],
            "type": "string",
            "description": "Search returns current matches; monitor compares canonical jobs with persistent history.",
            "default": "search"
          },
          "stateKey": {
            "title": "Monitor state key",
            "pattern": "^[a-zA-Z0-9_.-]+$",
            "minLength": 1,
            "maxLength": 120,
            "type": "string",
            "description": "Optional stable history key. If omitted, one is derived from the normalized search configuration."
          },
          "emitUnchanged": {
            "title": "Emit unchanged jobs",
            "type": "boolean",
            "description": "Monitor mode normally emits only NEW, UPDATED, REAPPEARED and conservative REPOSTED jobs.",
            "default": false
          },
          "requireCoordinatesForRadius": {
            "title": "Require coordinates for radius",
            "type": "boolean",
            "description": "Exclude jobs whose source lacks coordinates when radiusKm is set.",
            "default": false
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Per-request timeout. Retries remain separately bounded.",
            "default": 30
          },
          "maxSourcePages": {
            "title": "Maximum pages per source/query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Hard pagination bound. NAV feed bootstrap resumes from its persisted cursor on a later run.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}