{
  "openapi": "3.0.1",
  "info": {
    "title": "TheirStack Job Search Scraper",
    "description": "Search and export jobs from TheirStack API with full filter control.",
    "version": "1.0",
    "x-build-id": "n1zVt5PbuY2XVVeKc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/comfy_glove~theirstack-job-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-comfy_glove-theirstack-job-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/comfy_glove~theirstack-job-scraper/runs": {
      "post": {
        "operationId": "runs-sync-comfy_glove-theirstack-job-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/comfy_glove~theirstack-job-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-comfy_glove-theirstack-job-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",
        "required": [
          "apiKey"
        ],
        "properties": {
          "apiKey": {
            "title": "TheirStack API Key",
            "type": "string",
            "description": "Your TheirStack API key. Get one free at theirstack.com (200 free credits)."
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of jobs to return. Each job costs 1 API credit.",
            "default": 25
          },
          "posted_at_max_age_days": {
            "title": "Posted Within (Days)",
            "type": "integer",
            "description": "Only return jobs posted within the last N days. Leave empty to skip."
          },
          "posted_at_gte": {
            "title": "Posted After (Date)",
            "type": "string",
            "description": "Only return jobs posted on or after this date (YYYY-MM-DD)."
          },
          "posted_at_lte": {
            "title": "Posted Before (Date)",
            "type": "string",
            "description": "Only return jobs posted on or before this date (YYYY-MM-DD)."
          },
          "job_title_or": {
            "title": "Job Titles (OR)",
            "type": "array",
            "description": "Natural language job title patterns — returns jobs matching ANY of these.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "job_title_not": {
            "title": "Job Titles to Exclude",
            "type": "array",
            "description": "Natural language job title patterns to exclude.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "job_description_pattern_or": {
            "title": "Description Must Contain (regex OR)",
            "type": "array",
            "description": "Regex patterns — job description must match at least one.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "job_description_pattern_not": {
            "title": "Description Must Not Contain (regex)",
            "type": "array",
            "description": "Regex patterns — jobs matching any of these are excluded.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "job_country_code_or": {
            "title": "Countries (ISO codes, OR)",
            "type": "array",
            "description": "ISO 3166-1 alpha-2 country codes, e.g. US, GB, DE. Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "remote": {
            "title": "Remote Only",
            "type": "boolean",
            "description": "If enabled, only return remote jobs.",
            "default": false
          },
          "job_location_pattern_or": {
            "title": "Location Pattern (regex OR)",
            "type": "array",
            "description": "Regex patterns to match job location strings.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "job_technology_slug_or": {
            "title": "Technologies (OR)",
            "type": "array",
            "description": "Technology slugs — jobs using ANY of these. e.g. react, python, kubernetes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "job_technology_slug_and": {
            "title": "Technologies (AND)",
            "type": "array",
            "description": "Technology slugs — jobs must use ALL of these.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "job_technology_slug_not": {
            "title": "Technologies to Exclude",
            "type": "array",
            "description": "Technology slugs — jobs using any of these are excluded.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "job_seniority_or": {
            "title": "Seniority Levels (OR)",
            "type": "array",
            "description": "Filter by seniority. Valid values: intern, entry, mid, senior, principal, lead, manager, director, vp, c_level.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "employment_statuses_or": {
            "title": "Employment Types (OR)",
            "type": "array",
            "description": "Valid values: full_time, part_time, temporary, internship, contract.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "easy_apply": {
            "title": "Easy Apply Only",
            "type": "boolean",
            "description": "If enabled, only return jobs with easy apply.",
            "default": false
          },
          "min_salary_usd": {
            "title": "Min Salary (USD)",
            "type": "integer",
            "description": "Minimum salary in USD. Leave empty to skip."
          },
          "max_salary_usd": {
            "title": "Max Salary (USD)",
            "type": "integer",
            "description": "Maximum salary in USD. Leave empty to skip."
          },
          "company_name_or": {
            "title": "Company Names (OR)",
            "type": "array",
            "description": "Filter to jobs at specific companies by name.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "company_domain_or": {
            "title": "Company Domains (OR)",
            "type": "array",
            "description": "Filter by company website domain, e.g. stripe.com, openai.com.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "company_domain_not": {
            "title": "Company Domains to Exclude",
            "type": "array",
            "description": "Exclude jobs from companies with these domains.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "min_employee_count": {
            "title": "Min Employee Count",
            "type": "integer",
            "description": "Minimum number of company employees."
          },
          "max_employee_count": {
            "title": "Max Employee Count",
            "type": "integer",
            "description": "Maximum number of company employees."
          },
          "min_revenue_usd": {
            "title": "Min Company Revenue (USD)",
            "type": "integer",
            "description": "Minimum annual company revenue in USD."
          },
          "max_revenue_usd": {
            "title": "Max Company Revenue (USD)",
            "type": "integer",
            "description": "Maximum annual company revenue in USD."
          },
          "min_funding_usd": {
            "title": "Min Funding Raised (USD)",
            "type": "integer",
            "description": "Minimum total funding raised by the company."
          },
          "max_funding_usd": {
            "title": "Max Funding Raised (USD)",
            "type": "integer",
            "description": "Maximum total funding raised by the company."
          },
          "funding_stage_or": {
            "title": "Funding Stage (OR)",
            "type": "array",
            "description": "Valid values: seed, angel, series_a, series_b, series_c, series_d, series_e, series_f, series_g, series_h, series_i, series_j, private_equity, post_ipo.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "company_type": {
            "title": "Company Type",
            "enum": [
              "all",
              "direct_employer",
              "recruiting_agency"
            ],
            "type": "string",
            "description": "Filter by company type.",
            "default": "all"
          },
          "only_yc_companies": {
            "title": "Y Combinator Companies Only",
            "type": "boolean",
            "description": "If enabled, only return jobs from YC-backed companies.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}