{
  "openapi": "3.0.1",
  "info": {
    "title": "Hacker News Scraper & Who Is Hiring Jobs",
    "description": "Jobs from Hacker News Who is hiring? with company, role, location, remote, salary, visa, tech stack and apply email, plus hiring companies with founder contacts. Also candidates, freelancers, and story and comment search.",
    "version": "0.1",
    "x-build-id": "bESdHopr6v3Rstfz2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/snappytools~hackernews-algolia-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-snappytools-hackernews-algolia-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/snappytools~hackernews-algolia-scraper/runs": {
      "post": {
        "operationId": "runs-sync-snappytools-hackernews-algolia-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/snappytools~hackernews-algolia-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-snappytools-hackernews-algolia-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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "hiring",
              "candidates",
              "freelancers",
              "search",
              "story",
              "comment"
            ],
            "type": "string",
            "description": "The monthly Hacker News threads, or a search of all of Hacker News.",
            "default": "hiring"
          },
          "months": {
            "title": "Months",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "How many monthly threads to read, newest first. Default 1 (this month's)."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Only posts mentioning any of these, such as \"rust\", \"machine learning\" or \"founding engineer\". All words of a keyword must appear.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Only posts naming this place, such as \"London\", \"Berlin\" or \"US\"."
          },
          "remoteOnly": {
            "title": "Remote only",
            "type": "boolean",
            "description": "Only remote jobs, or people who want remote work.",
            "default": false
          },
          "visaSponsorship": {
            "title": "Visa sponsorship",
            "type": "boolean",
            "description": "Jobs only: only posts that offer visa sponsorship.",
            "default": false
          },
          "minSalary": {
            "title": "Minimum yearly salary",
            "minimum": 0,
            "type": "integer",
            "description": "Jobs only: only posts showing at least this much a year (any currency). Posts without a salary are left out when this is set."
          },
          "includeClosed": {
            "title": "Include filled positions",
            "type": "boolean",
            "description": "Jobs only: keep posts marked as filled or no longer hiring.",
            "default": false
          },
          "output": {
            "title": "Jobs: what to return",
            "enum": [
              "jobs",
              "jobsAndCompanies",
              "companies"
            ],
            "type": "string",
            "description": "Jobs, jobs plus one row per hiring company with its website, email, phone and a founder or decision-maker where found, or the companies only.",
            "default": "jobs"
          },
          "findContacts": {
            "title": "Find company contacts",
            "type": "boolean",
            "description": "For company rows: visit each company's website for emails, phones, social links and a founder or decision-maker.",
            "default": true
          },
          "threadUrls": {
            "title": "Or specific threads",
            "type": "array",
            "description": "Links to particular Hacker News threads (news.ycombinator.com/item?id=...), instead of the latest months.",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Search words",
            "type": "string",
            "description": "For \"Search stories and comments\": words to search all of Hacker News for, such as \"llm\" or \"postgres\"."
          },
          "searchType": {
            "title": "Search in",
            "enum": [
              "story",
              "comment",
              "ask_hn",
              "show_hn",
              "job",
              "poll",
              "all"
            ],
            "type": "string",
            "description": "What kind of posts to search.",
            "default": "story"
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "date",
              "relevance"
            ],
            "type": "string",
            "description": "Newest first can go back years; most relevant first stops at 1,000 results.",
            "default": "date"
          },
          "author": {
            "title": "Author",
            "type": "string",
            "description": "Only posts by this Hacker News user."
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Only posts from this date (YYYY-MM-DD)."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Only posts up to this date (YYYY-MM-DD)."
          },
          "minPoints": {
            "title": "Minimum points",
            "minimum": 0,
            "type": "integer",
            "description": "Only stories with at least this many points."
          },
          "minComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "type": "integer",
            "description": "Only stories with at least this many comments."
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most posts to return. Default 100."
          },
          "onlyNew": {
            "title": "Only new posts since my last run",
            "type": "boolean",
            "description": "Return only posts you haven't had from an earlier run with the same settings. Use it with a schedule.",
            "default": false
          },
          "query": {
            "title": "Query (older setting)",
            "type": "string",
            "description": "Kept so older saved tasks keep working. Use Search words or Keywords instead."
          },
          "maxItems": {
            "title": "Maximum items (older setting)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Kept so older saved tasks keep working. Use Maximum results instead."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}