{
  "openapi": "3.0.1",
  "info": {
    "title": "Unified Jobs — one deduplicated feed across all sources",
    "description": "Query LinkedIn, Indeed and 10 ATS platforms in ONE run and get a single deduplicated feed: the same role posted in three places collapses to one canonical record with a sources[] array and the richest merged fields (salary, full description, earliest date). Pay per event, per canonical job.",
    "version": "0.2",
    "x-build-id": "O7jLv8U1n7wo3JzmE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/greyridge-signals~unified-jobs-aggregator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-greyridge-signals-unified-jobs-aggregator",
        "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/greyridge-signals~unified-jobs-aggregator/runs": {
      "post": {
        "operationId": "runs-sync-greyridge-signals-unified-jobs-aggregator",
        "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/greyridge-signals~unified-jobs-aggregator/run-sync": {
      "post": {
        "operationId": "run-sync-greyridge-signals-unified-jobs-aggregator",
        "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 / query",
            "type": "string",
            "description": "Search terms for the LinkedIn and Indeed sources, e.g. \"data engineer\", \"product manager python\". Pair with location for best results."
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, region or country for LinkedIn/Indeed, e.g. \"United States\", \"London\", \"Remote\"."
          },
          "companies": {
            "title": "Companies (ATS source)",
            "type": "array",
            "description": "Company domains, slugs, or \"platform:token\" entries for the ATS source — e.g. [\"stripe.com\", \"lever:palantir\", \"ashby:ramp\"]. The actor auto-detects which ATS (Greenhouse, Lever, Ashby, SmartRecruiters, Workday, Recruitee, Workable) each company uses. Leave empty to query only LinkedIn/Indeed.",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources to query",
            "type": "array",
            "description": "Subset of job sources to include. Default = all. HN Who-is-hiring needs no companies/keywords (it returns the current monthly thread, optionally keyword-filtered). Indeed requires Apify Proxy (it is blocked keyless); if it is unreachable the run degrades gracefully to the other sources.",
            "items": {
              "type": "string",
              "enum": [
                "ats",
                "linkedin",
                "indeed",
                "hn"
              ],
              "enumTitles": [
                "Company ATS (8 platforms)",
                "LinkedIn public",
                "Indeed public",
                "Hacker News Who-is-hiring"
              ]
            },
            "default": [
              "ats",
              "linkedin",
              "indeed",
              "hn"
            ]
          },
          "dedupe": {
            "title": "Cross-source dedupe + merge",
            "type": "boolean",
            "description": "Collapse the same role found on multiple sources into ONE canonical record with a sources[] array and the union of the richest fields. Turn off to get every raw source hit 1:1.",
            "default": true
          },
          "remoteOnly": {
            "title": "Remote only",
            "type": "boolean",
            "description": "Restrict LinkedIn/Indeed to remote postings.",
            "default": false
          },
          "datePosted": {
            "title": "Date posted",
            "enum": [
              "",
              "past24h",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Only postings newer than this window (LinkedIn/Indeed).",
            "default": ""
          },
          "country": {
            "title": "Indeed country",
            "type": "string",
            "description": "Indeed country subdomain, e.g. \"www\" (US), \"de\", \"uk\". Only affects the Indeed source.",
            "default": "www"
          },
          "fullDescription": {
            "title": "Full descriptions",
            "type": "boolean",
            "description": "Fetch each job's full description + criteria where available (one extra request per job; higher COGS, richer records).",
            "default": false
          },
          "maxResultsPerSource": {
            "title": "Max results per source",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on raw results pulled from EACH source before dedup. Keeps COGS bounded.",
            "default": 50
          },
          "maxResults": {
            "title": "Max canonical results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on the final deduplicated records (the billable unit).",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}