{
  "openapi": "3.0.1",
  "info": {
    "title": "Hacker News Scraper: Stories, Show HN & Who is Hiring Jobs",
    "description": "Get Hacker News stories by keyword, points and date, or every Who is Hiring job post parsed into company, role, location, remote, salary and apply link. Keyword alerts. No usernames.",
    "version": "0.1",
    "x-build-id": "2sovEh7TEKlt4db89"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kayorama~hacker-news-stories-hiring-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kayorama-hacker-news-stories-hiring-feed",
        "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/kayorama~hacker-news-stories-hiring-feed/runs": {
      "post": {
        "operationId": "runs-sync-kayorama-hacker-news-stories-hiring-feed",
        "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/kayorama~hacker-news-stories-hiring-feed/run-sync": {
      "post": {
        "operationId": "run-sync-kayorama-hacker-news-stories-hiring-feed",
        "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": [
              "stories",
              "whoIsHiring"
            ],
            "type": "string",
            "description": "Stories from Hacker News, or job posts from the monthly \"Ask HN: Who is hiring?\" threads.",
            "default": "stories"
          },
          "storyTypes": {
            "title": "Story types",
            "uniqueItems": true,
            "type": "array",
            "description": "Which stories to include. Front page means stories that made the HN front page.",
            "items": {
              "type": "string",
              "enum": [
                "story",
                "front_page",
                "show_hn",
                "ask_hn",
                "job",
                "poll"
              ],
              "enumTitles": [
                "All stories",
                "Front page",
                "Show HN",
                "Ask HN",
                "YC job ads",
                "Polls"
              ]
            },
            "default": [
              "front_page"
            ]
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Only stories matching these words, for example postgres or your company name. Each line is a separate search. Leave empty for all stories.",
            "items": {
              "type": "string"
            }
          },
          "titleOnly": {
            "title": "Match keywords in title and URL only",
            "type": "boolean",
            "description": "By default keywords also match the text of Ask HN and Launch HN posts. Turn this on for tighter results.",
            "default": false
          },
          "lookbackHours": {
            "title": "Look back (hours)",
            "minimum": 1,
            "maximum": 87600,
            "type": "integer",
            "description": "How far back to look. 24 = the last day, 168 = the last week.",
            "default": 24
          },
          "minPoints": {
            "title": "Minimum points",
            "minimum": 0,
            "type": "integer",
            "description": "Skip stories with fewer points.",
            "default": 0
          },
          "minComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "type": "integer",
            "description": "Skip stories with fewer comments.",
            "default": 0
          },
          "includeStoryText": {
            "title": "Include Ask HN / Show HN text",
            "type": "boolean",
            "description": "Add the post text for text posts. Emails, phone numbers, profile links and introduced names are removed.",
            "default": false
          },
          "hiringMonths": {
            "title": "Months of Who is Hiring",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "How many monthly threads to read, newest first. 1 = this month.",
            "default": 1
          },
          "jobKeywords": {
            "title": "Job keywords",
            "type": "array",
            "description": "Keep only job posts that mention one of these, for example rust, python or data engineer.",
            "items": {
              "type": "string"
            }
          },
          "remoteOnly": {
            "title": "Remote only",
            "type": "boolean",
            "description": "Keep only posts marked remote.",
            "default": false
          },
          "locations": {
            "title": "Location contains",
            "type": "array",
            "description": "Keep only posts that mention one of these places, for example Berlin, London or EU.",
            "items": {
              "type": "string"
            }
          },
          "includeDescription": {
            "title": "Include job text",
            "type": "boolean",
            "description": "Add the full post text, with emails, phone numbers, profile links and introduced names removed.",
            "default": true
          },
          "maxDescriptionChars": {
            "title": "Max characters of job text",
            "minimum": 200,
            "maximum": 20000,
            "type": "integer",
            "description": "Longer posts are cut.",
            "default": 4000
          },
          "alertKeywords": {
            "title": "Alert keywords",
            "type": "array",
            "description": "Words to watch for, for example your brand, a competitor or a technology. Matches are listed in matchedAlertKeywords on each row.",
            "items": {
              "type": "string"
            }
          },
          "alertsOnly": {
            "title": "Only output alert matches",
            "type": "boolean",
            "description": "Drop rows that match none of the alert keywords.",
            "default": false
          },
          "trackChanges": {
            "title": "Track what you've already seen",
            "type": "boolean",
            "description": "Remember item ids between runs. Rows get changeType new or seen, and firstSeenAt.",
            "default": false
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "all",
              "changesOnly"
            ],
            "type": "string",
            "description": "With tracking on, output everything or only items you have not seen in earlier runs.",
            "default": "all"
          },
          "stateStoreName": {
            "title": "Memory store name",
            "type": "string",
            "description": "Named key-value store that remembers seen ids. Use a different name per schedule.",
            "default": "hacker-news-feed-state"
          },
          "maxItems": {
            "title": "Max rows per run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many rows.",
            "default": 200
          },
          "requestDelayMs": {
            "title": "Delay between API calls (ms)",
            "minimum": 250,
            "maximum": 30000,
            "type": "integer",
            "description": "Pause between requests to the HN API.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}