{
  "openapi": "3.0.1",
  "info": {
    "title": "Hacker News Scraper - Stories, Comments, Who is Hiring",
    "description": "Scrape Hacker News stories, comments, keyword search, jobs, user profiles and monthly Who is hiring threads through the official Firebase and Algolia APIs. No login. Pay per result.",
    "version": "1.0",
    "x-build-id": "dQkGtMk3wH8x2Sq0F"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/extas_corp~hackernews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-extas_corp-hackernews-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/extas_corp~hackernews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-extas_corp-hackernews-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/extas_corp~hackernews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-extas_corp-hackernews-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What to collect",
            "enum": [
              "list",
              "search",
              "thread",
              "user",
              "hiring"
            ],
            "type": "string",
            "description": "Story lists (front page, top, new...), keyword search, a story's full comment tree, user profiles with submissions, or the monthly 'Who is hiring' thread.",
            "default": "list"
          },
          "list": {
            "title": "List",
            "enum": [
              "front",
              "top",
              "new",
              "best",
              "ask",
              "show",
              "jobs"
            ],
            "type": "string",
            "description": "Mode 'list'. 'Front page' is the real front page (about 30 stories); 'Top' is the top 500.",
            "default": "top"
          },
          "lists": {
            "title": "Several lists (optional)",
            "type": "array",
            "description": "Mode 'list'. Overrides 'List': any of front, top, new, best, ask, show, jobs. Each gets its own max results.",
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Mode 'search'. One search per entry. Leave empty to match only on the filters below.",
            "items": {
              "type": "string"
            }
          },
          "searchIn": {
            "title": "Search in",
            "enum": [
              "story",
              "comment",
              "both"
            ],
            "type": "string",
            "description": "Mode 'search'. Stories, comments, or both.",
            "default": "story"
          },
          "sort": {
            "title": "Search sort",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "Mode 'search'. Relevance returns at most 1,000 hits per keyword; newest first can go further back.",
            "default": "relevance"
          },
          "since": {
            "title": "Since (search)",
            "type": "string",
            "description": "Mode 'search'. Only items created on or after this date, e.g. 2026-01-31 or 2026-01-31T00:00:00Z."
          },
          "until": {
            "title": "Until (search)",
            "type": "string",
            "description": "Mode 'search'. Only items created before this date."
          },
          "minPoints": {
            "title": "Minimum points (search)",
            "minimum": 0,
            "type": "integer",
            "description": "Mode 'search'. Only items with at least this many points."
          },
          "minComments": {
            "title": "Minimum comments (search)",
            "minimum": 0,
            "type": "integer",
            "description": "Mode 'search'. Only stories with at least this many comments."
          },
          "storyIds": {
            "title": "Story IDs or URLs",
            "type": "array",
            "description": "Mode 'thread'. Item IDs or news.ycombinator.com/item?id=... URLs. Returns the story and all its comments, flattened.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Usernames",
            "type": "array",
            "description": "Mode 'user'. HN usernames, e.g. pg.",
            "items": {
              "type": "string"
            }
          },
          "includeSubmissions": {
            "title": "Include submissions (users)",
            "type": "boolean",
            "description": "Mode 'user'. Also return the user's stories and comments, newest first.",
            "default": true
          },
          "hiringThread": {
            "title": "Hiring thread",
            "enum": [
              "hiring",
              "hired",
              "freelancer"
            ],
            "type": "string",
            "description": "Mode 'hiring'. Which monthly thread by 'whoishiring'.",
            "default": "hiring"
          },
          "hiringMonth": {
            "title": "Month (hiring)",
            "type": "string",
            "description": "Mode 'hiring'. Month like 2026-11. Empty = the latest thread."
          },
          "maxItems": {
            "title": "Max results per entry",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum results for each list / keyword / story / user / thread. You are charged per result.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}