{
  "openapi": "3.0.1",
  "info": {
    "title": "UN Jobs Scraper — unjobs.org UN & NGO Vacancies",
    "description": "Scrape UN and NGO vacancies from unjobs.org — 143 agencies (UNICEF, WFP, UNDP, UNHCR…) in one run. Get title, organisation, duty station, closing date, full description and apply URL. Delta mode returns only new postings, ideal for job-alert bots. $5/1,000 results, no API key needed.",
    "version": "0.1",
    "x-build-id": "Iq9dwBuPzIer7yHCv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nomad-agent~unjobs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nomad-agent-unjobs-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~unjobs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nomad-agent-unjobs-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~unjobs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nomad-agent-unjobs-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": {
          "feed": {
            "title": "Feed",
            "enum": [
              "latest",
              "closing",
              "allOrganizations"
            ],
            "type": "string",
            "description": "Which listing to scrape. <b>Latest</b> = the newest postings site-wide — the right feed for job alerts and delta mode, because a brand-new vacancy appears here first. <b>Closing soon</b> = vacancies whose deadline is near (a posting with a distant deadline is <i>not</i> in this feed). <b>All organisations</b> = every one of the ~143 organisation feeds, deduped into one full snapshot — the widest coverage unjobs.org allows. Ignored when <b>Organisation</b> or <b>Duty station</b> is set.",
            "default": "latest"
          },
          "includeDetails": {
            "title": "Include full details (closing date + description)",
            "type": "boolean",
            "description": "Open each vacancy page to add the fields the listing does not carry: <b>closing date</b>, the <b>full job description</b>, and the organisation's own structured <b>country/city</b> (more accurate than the location inferred from the title). Slower, and billed as an extra event per vacancy enriched — a vacancy page that fails to load costs nothing.",
            "default": false
          },
          "organization": {
            "title": "Organisation",
            "type": "string",
            "description": "Scrape one organisation's vacancies. Use the slug from its unjobs.org URL, e.g. <code>unicef</code>, <code>wfp</code>, <code>undp</code> (see <a href='https://unjobs.org/organizations'>unjobs.org/organizations</a>). Takes precedence over the duty-station feed and over <b>Feed</b>. Leave empty to use the selected feed."
          },
          "dutyStation": {
            "title": "Duty station",
            "type": "string",
            "description": "Scrape one duty station's vacancies. Use the station code from its unjobs.org URL, e.g. <code>gva</code> for Geneva (see <a href='https://unjobs.org/duty_stations'>unjobs.org/duty_stations</a>). Ignored when <b>Organisation</b> is set."
          },
          "keywordFilter": {
            "title": "Keyword filter",
            "type": "string",
            "description": "Only keep postings whose title or organisation contains this text (case-insensitive). Applied after fetching; filtered-out postings are never billed."
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Maximum number of vacancies to return; you're billed per result returned. The <b>Latest</b> feed serves 25, <b>Closing soon</b> ~300, and <b>All organisations</b> a few thousand — raise this to take the full snapshot. Set 0 to keep everything the feed returns. Values outside 0–5000 are clamped, never rejected.",
            "default": 40
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run (delta mode)",
            "type": "boolean",
            "description": "Return only postings not already delivered by a previous run of this Actor. Ideal for scheduled monitoring / job-alert bots: already-seen jobs are dropped before they're pushed or billed, so you pay only for genuinely new openings. Seen job ids are remembered in the Actor's key-value store across runs.",
            "default": false
          },
          "resetSeenJobs": {
            "title": "Reset delta state",
            "type": "boolean",
            "description": "Clear the remembered set of already-seen jobs before this run, so delta mode starts from a clean slate (every current posting counts as new). Only meaningful together with <b>Only new since last run</b>.",
            "default": false
          },
          "cacheTtlSeconds": {
            "title": "Cache TTL (seconds)",
            "type": "integer",
            "description": "Reuse the last fetched page for this many seconds instead of contacting unjobs.org again, so quick repeat runs are faster and cheaper. Set 0 (or any negative value) to always fetch a fresh page.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}