{
  "openapi": "3.0.1",
  "info": {
    "title": "Hacker News Scraper - Stories, Comments & Hiring Jobs $0.15/1K",
    "description": "Hacker News data from the official HN APIs: front-page stories, keyword search with date and points filters, full comment trees, user profiles, and Who is hiring posts parsed into job records. $0.15 per 1,000 results.",
    "version": "0.1",
    "x-build-id": "P1xby8bF47kyEJVj6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/plotpointtech~hacker-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-plotpointtech-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/plotpointtech~hacker-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-plotpointtech-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/plotpointtech~hacker-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-plotpointtech-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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "frontPage",
              "search",
              "story",
              "user",
              "whoIsHiring"
            ],
            "type": "string",
            "description": "Front-page lists (top/new/best/Ask/Show/jobs), keyword search, stories with their full comment trees, user profiles with submissions, or the monthly 'Who is hiring' thread parsed into job records.",
            "default": "frontPage"
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many results in total (stories, comments, users or job posts).",
            "default": 30
          },
          "lists": {
            "title": "Lists (front-page mode)",
            "type": "array",
            "description": "Which HN lists to read. top = front page ranking (up to 500), new, best, ask (Ask HN), show (Show HN), job (YC job ads).",
            "items": {
              "type": "string",
              "enum": [
                "top",
                "new",
                "best",
                "ask",
                "show",
                "job"
              ],
              "enumTitles": [
                "Top (front page)",
                "New",
                "Best",
                "Ask HN",
                "Show HN",
                "Jobs"
              ]
            },
            "default": [
              "top"
            ]
          },
          "skipJobs": {
            "title": "Skip YC job ads in story lists",
            "type": "boolean",
            "description": "Leave out job ads that appear inside the top/new/best lists.",
            "default": false
          },
          "query": {
            "title": "Search keywords",
            "type": "string",
            "description": "Full-text search over titles, URLs, story text and comments (Algolia HN Search). Leave empty to filter by tags/author only."
          },
          "tags": {
            "title": "Item types / tags",
            "type": "array",
            "description": "Limit results to these types (any of them): story, comment, ask_hn, show_hn, job, poll, front_page. You can also add author_USERNAME or story_ID (these must all match).",
            "default": [
              "story"
            ],
            "items": {
              "type": "string"
            }
          },
          "author": {
            "title": "Author username",
            "type": "string",
            "description": "Only items by this HN user."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "relevance (with popularity) or date (newest first). Date sort can go past Algolia's 1,000-hit limit per query.",
            "default": "relevance"
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Only items created on or after this date: YYYY-MM-DD, or relative like '7 days', '3 months'."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Only items created on or before this date: YYYY-MM-DD, or relative like '1 day'."
          },
          "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."
          },
          "storyIds": {
            "title": "Story IDs or URLs",
            "type": "array",
            "description": "HN item IDs or news.ycombinator.com/item?id=... links. A comment link resolves to its story.",
            "items": {
              "type": "string"
            }
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Return every comment, flattened in HN display order with depth, parentId and position.",
            "default": true
          },
          "maxCommentsPerStory": {
            "title": "Maximum comments per story",
            "minimum": 0,
            "type": "integer",
            "description": "0 = all comments (still limited by Maximum results).",
            "default": 0
          },
          "usernames": {
            "title": "Usernames",
            "type": "array",
            "description": "HN usernames, e.g. pg, dang.",
            "items": {
              "type": "string"
            }
          },
          "includeSubmissions": {
            "title": "Include submissions",
            "type": "boolean",
            "description": "Also return the user's most recent stories and comments.",
            "default": true
          },
          "maxSubmissionsPerUser": {
            "title": "Maximum submissions per user",
            "minimum": 0,
            "type": "integer",
            "description": "0 = all (still limited by Maximum results).",
            "default": 50
          },
          "hiringMonth": {
            "title": "Month (YYYY-MM)",
            "type": "string",
            "description": "Which monthly 'Ask HN: Who is hiring?' thread to parse, e.g. 2026-10. Leave empty for the latest."
          },
          "hiringKeywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "Only job posts mentioning any of these words, e.g. rust, python, machine learning.",
            "items": {
              "type": "string"
            }
          },
          "remoteOnly": {
            "title": "Remote only",
            "type": "boolean",
            "description": "Only posts marked REMOTE in their header line.",
            "default": false
          },
          "salaryOnly": {
            "title": "Only posts with salary",
            "type": "boolean",
            "description": "Only posts that state a salary or rate in their header line.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}