{
  "openapi": "3.0.1",
  "info": {
    "title": "Hacker News Scraper – Who Is Hiring Jobs, Search & Comments",
    "description": "Hacker News API scraper: parsed 'Ask HN: Who is hiring?' job posts (company, role, location, remote, salary, links), full-text search of stories & comments, top/new/best/Show/Ask feeds and comment threads. Official APIs, no key. $3 per 1,000 results.",
    "version": "0.1",
    "x-build-id": "V7x31gXANb457glXM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dedicated_crest~hacker-news-search-hiring/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dedicated_crest-hacker-news-search-hiring",
        "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/dedicated_crest~hacker-news-search-hiring/runs": {
      "post": {
        "operationId": "runs-sync-dedicated_crest-hacker-news-search-hiring",
        "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/dedicated_crest~hacker-news-search-hiring/run-sync": {
      "post": {
        "operationId": "run-sync-dedicated_crest-hacker-news-search-hiring",
        "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": "Mode",
            "enum": [
              "whoIsHiring",
              "search",
              "feed",
              "items"
            ],
            "type": "string",
            "description": "What to collect.",
            "default": "search"
          },
          "keywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "Who is hiring + Feed modes: keep posts containing ANY of these (case-insensitive), e.g. rust, python, founding.",
            "items": {
              "type": "string"
            }
          },
          "remoteOnly": {
            "title": "Remote only (Who is hiring)",
            "type": "boolean",
            "description": "Keep only hiring posts that mention remote work.",
            "default": false
          },
          "locations": {
            "title": "Locations (Who is hiring)",
            "type": "array",
            "description": "Keep hiring posts mentioning ANY of these, e.g. London, NYC, Europe.",
            "items": {
              "type": "string"
            }
          },
          "hiringThread": {
            "title": "Monthly thread (Who is hiring mode)",
            "enum": [
              "hiring",
              "wantsToBeHired",
              "freelancer"
            ],
            "type": "string",
            "description": "Which monthly thread posted by the official whoishiring account.",
            "default": "hiring"
          },
          "hiringMonths": {
            "title": "Number of months (Who is hiring)",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "1 = the latest thread only.",
            "default": 1
          },
          "query": {
            "title": "Search query (Search mode)",
            "type": "string",
            "description": "Full-text search across Hacker News, e.g. \"postgres\", \"your brand\", \"Show HN AI agent\". Leave empty to list everything matching the filters."
          },
          "contentType": {
            "title": "Content type (Search mode)",
            "enum": [
              "story",
              "comment",
              "show_hn",
              "ask_hn",
              "poll",
              "job",
              "any"
            ],
            "type": "string",
            "description": "Which kind of item to search.",
            "default": "story"
          },
          "sortBy": {
            "title": "Sort (Search mode)",
            "enum": [
              "date",
              "relevance"
            ],
            "type": "string",
            "description": "Date = newest first and can go past Algolia's 1,000-hit limit; relevance = best matches (max 1,000).",
            "default": "date"
          },
          "author": {
            "title": "Author username (Search mode)",
            "type": "string",
            "description": "Only items by this HN user."
          },
          "lastDays": {
            "title": "Last N days (Search mode)",
            "minimum": 1,
            "type": "integer",
            "description": "Only items created in the last N days (ignored if Date from is set)."
          },
          "dateFrom": {
            "title": "Date from (Search mode)",
            "type": "string",
            "description": "ISO date, e.g. 2026-01-01."
          },
          "dateTo": {
            "title": "Date to (Search mode)",
            "type": "string",
            "description": "ISO date, e.g. 2026-06-30."
          },
          "minPoints": {
            "title": "Minimum points",
            "minimum": 0,
            "type": "integer",
            "description": "Search + Feed modes: skip stories below this score."
          },
          "minComments": {
            "title": "Minimum comments (Search mode)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip stories with fewer comments."
          },
          "feed": {
            "title": "Feed (Feed mode)",
            "enum": [
              "top",
              "new",
              "best",
              "ask",
              "show",
              "job"
            ],
            "type": "string",
            "description": "Which live Hacker News list to read.",
            "default": "top"
          },
          "itemIds": {
            "title": "Item IDs or URLs (Items mode)",
            "type": "array",
            "description": "e.g. https://news.ycombinator.com/item?id=8863 or 8863.",
            "items": {
              "type": "string"
            }
          },
          "includeComments": {
            "title": "Include all comments (Items mode)",
            "type": "boolean",
            "description": "Also save the full comment tree of each item (each comment is one result).",
            "default": false
          },
          "textMaxChars": {
            "title": "Max text length",
            "minimum": 0,
            "type": "integer",
            "description": "Truncate post/comment text to this many characters.",
            "default": 5000
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many results. The run also stops cleanly at your Maximum cost per run.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}