{
  "openapi": "3.0.1",
  "info": {
    "title": "Hacker News Scraper: Stories, Comments & Who Is Hiring",
    "description": "Scrape Hacker News front page, Show/Ask HN, search, full comment threads and monthly Who is hiring jobs (company, role, location, salary). Fast, no login.",
    "version": "0.1",
    "x-build-id": "HPsvuvK5ToFq8SaFV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/techliondev~hacker-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-techliondev-hacker-news-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/techliondev~hacker-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-techliondev-hacker-news-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/techliondev~hacker-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-techliondev-hacker-news-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": {
          "lists": {
            "title": "📰 Hacker News lists",
            "type": "array",
            "description": "Live Hacker News lists, in the same order as on the site (the rank column shows the position).",
            "items": {
              "type": "string",
              "enum": [
                "top",
                "new",
                "best",
                "ask",
                "show",
                "job"
              ],
              "enumTitles": [
                "Front page (top stories)",
                "Newest",
                "Best",
                "Ask HN",
                "Show HN",
                "Jobs"
              ]
            },
            "default": [
              "top"
            ]
          },
          "searchTerms": {
            "title": "🔎 Search terms",
            "type": "array",
            "description": "Words or phrases to search all of Hacker News for, one per line (for example rust, \"open source\", your brand or competitor names).",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search in",
            "enum": [
              "story",
              "comment",
              "all"
            ],
            "type": "string",
            "description": "Search story titles and text, comments, or both.",
            "default": "story"
          },
          "searchSort": {
            "title": "Search order",
            "enum": [
              "relevance",
              "newest"
            ],
            "type": "string",
            "description": "Most relevant returns the best matches first, at most 1,000 per term. Newest first goes back in time without a limit and suits scheduled brand monitoring.",
            "default": "relevance"
          },
          "storyUrls": {
            "title": "💬 Story links (save the story and all comments)",
            "type": "array",
            "description": "Hacker News item links or IDs, one per line (for example https://news.ycombinator.com/item?id=1). The Actor saves the story and every comment, with reply depth.",
            "items": {
              "type": "string"
            }
          },
          "hiringThread": {
            "title": "💼 Monthly hiring thread",
            "enum": [
              "none",
              "whoIsHiring",
              "whoWantsToBeHired",
              "freelancer"
            ],
            "type": "string",
            "description": "Save the top-level posts of the monthly hiring threads. For Who is hiring, the company, role, location, remote, salary, visa, emails and links are pulled from each post.",
            "default": "none"
          },
          "hiringMonths": {
            "title": "Months of hiring threads",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "1 = this month's thread only. Up to 24 months back.",
            "default": 1
          },
          "maxItemsPerSource": {
            "title": "💯 Maximum items per source",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many saved items for each list, search term, story or hiring thread. Items removed by filters are not counted or charged.",
            "default": 30
          },
          "minPoints": {
            "title": "Minimum points",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only stories with at least this many points (comments have no public points and are not affected)."
          },
          "minComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only stories with at least this many comments."
          },
          "since": {
            "title": "Only items since",
            "type": "string",
            "description": "A date like 2026-01-31 or a period like \"7 days\" or \"24 hours\"."
          },
          "until": {
            "title": "Only items before",
            "type": "string",
            "description": "A date like 2026-01-31 or a period like \"1 day\"."
          },
          "includeKeywords": {
            "title": "Must mention one of these words",
            "type": "array",
            "description": "Matched against the title and text. Leave empty to keep everything. Short words (3 letters or fewer) match whole words only.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Skip items mentioning",
            "type": "array",
            "description": "Items that mention any of these words are skipped.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Only links to these websites",
            "type": "array",
            "description": "Keep only stories linking to these domains (for example github.com, nytimes.com). Subdomains count.",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new items",
            "type": "boolean",
            "description": "Remembers every item and, after the first run, saves only items that are new since last time. The first run saves everything and remembers it.",
            "default": false
          },
          "stateName": {
            "title": "Tracking name (optional)",
            "type": "string",
            "description": "Use a different name for each separate watch list. Leave empty to use a name based on your sources."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}