Hacker News Data Scraper & Activity Monitoring avatar

Hacker News Data Scraper & Activity Monitoring

Try for free

Pay $1.00 for 1,000 results

Go to Store
Hacker News Data Scraper & Activity Monitoring

Hacker News Data Scraper & Activity Monitoring

lucen_data/hacker-news-data-scraper-activity-monitoring
Try for free

Pay $1.00 for 1,000 results

Unofficial Hacker News API to extract data from all Hacker News categories. You can filter posts based on specific keywords, track trends using the unique activity monitoring feature, and receive updates directly in your Slack channel.

You can access the Hacker News Data Scraper & Activity Monitoring programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1{
2  "openapi": "3.0.1",
3  "info": {
4    "version": "0.0",
5    "x-build-id": "ThHNIXPWzjHxahNod"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/lucen_data~hacker-news-data-scraper-activity-monitoring/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-lucen_data-hacker-news-data-scraper-activity-monitoring",
16        "x-openai-isConsequential": false,
17        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18        "tags": [
19          "Run Actor"
20        ],
21        "requestBody": {
22          "required": true,
23          "content": {
24            "application/json": {
25              "schema": {
26                "$ref": "#/components/schemas/inputSchema"
27              }
28            }
29          }
30        },
31        "parameters": [
32          {
33            "name": "token",
34            "in": "query",
35            "required": true,
36            "schema": {
37              "type": "string"
38            },
39            "description": "Enter your Apify token here"
40          }
41        ],
42        "responses": {
43          "200": {
44            "description": "OK"
45          }
46        }
47      }
48    },
49    "/acts/lucen_data~hacker-news-data-scraper-activity-monitoring/runs": {
50      "post": {
51        "operationId": "runs-sync-lucen_data-hacker-news-data-scraper-activity-monitoring",
52        "x-openai-isConsequential": false,
53        "summary": "Executes an Actor and returns information about the initiated run in response.",
54        "tags": [
55          "Run Actor"
56        ],
57        "requestBody": {
58          "required": true,
59          "content": {
60            "application/json": {
61              "schema": {
62                "$ref": "#/components/schemas/inputSchema"
63              }
64            }
65          }
66        },
67        "parameters": [
68          {
69            "name": "token",
70            "in": "query",
71            "required": true,
72            "schema": {
73              "type": "string"
74            },
75            "description": "Enter your Apify token here"
76          }
77        ],
78        "responses": {
79          "200": {
80            "description": "OK",
81            "content": {
82              "application/json": {
83                "schema": {
84                  "$ref": "#/components/schemas/runsResponseSchema"
85                }
86              }
87            }
88          }
89        }
90      }
91    },
92    "/acts/lucen_data~hacker-news-data-scraper-activity-monitoring/run-sync": {
93      "post": {
94        "operationId": "run-sync-lucen_data-hacker-news-data-scraper-activity-monitoring",
95        "x-openai-isConsequential": false,
96        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97        "tags": [
98          "Run Actor"
99        ],
100        "requestBody": {
101          "required": true,
102          "content": {
103            "application/json": {
104              "schema": {
105                "$ref": "#/components/schemas/inputSchema"
106              }
107            }
108          }
109        },
110        "parameters": [
111          {
112            "name": "token",
113            "in": "query",
114            "required": true,
115            "schema": {
116              "type": "string"
117            },
118            "description": "Enter your Apify token here"
119          }
120        ],
121        "responses": {
122          "200": {
123            "description": "OK"
124          }
125        }
126      }
127    }
128  },
129  "components": {
130    "schemas": {
131      "inputSchema": {
132        "type": "object",
133        "required": [
134          "proxyConfig"
135        ],
136        "properties": {
137          "hnDataSource": {
138            "title": "Hacker News data source",
139            "enum": [
140              " ",
141              "newest",
142              "ask",
143              "show",
144              "jobs"
145            ],
146            "type": "string",
147            "description": "Select Hacker News data source.",
148            "default": " "
149          },
150          "filterValues": {
151            "title": "Filter Values",
152            "type": "array",
153            "description": "Filter criteria to refine the monitoring results you wish to track. It will return true if any of the specified filter values is found in either the URL or the Title of the extracted Hacker News post.",
154            "items": {
155              "type": "string"
156            }
157          },
158          "ignoreValues": {
159            "title": "Ignore Results Containing",
160            "type": "array",
161            "description": "Ignore results containing the specified keyword in either the URL or the Title of the extracted Hacker News post.",
162            "items": {
163              "type": "string"
164            }
165          },
166          "hnPostMonitoring": {
167            "title": "HackerNews Activity Monitor (Actor Task Required)",
168            "type": "boolean",
169            "description": "If enabled, this feature will track new posts on HackerNews and store any new findings in the Actor's KeyValueStore. It can work with specific filter values or full scrapes. To function correctly, an Actor Task needs to be set up. Please refer to the 'Information' tab of the Actor for guidance on setting up your Actor Task for post monitoring.",
170            "default": false
171          },
172          "slackChannel": {
173            "title": "Slack channel name",
174            "type": "string",
175            "description": "Provide the name of the channel you want your message to be sent to. (e.g., marketing-media-mentions)"
176          },
177          "slackBotToken": {
178            "title": "Slack Bot Token",
179            "type": "string",
180            "description": "Provide your Slack App's Bot User OAuth Token (find it under your App's OAuth & Permissions tab)"
181          },
182          "slackSignInSecret": {
183            "title": "Slack Signin Secret",
184            "type": "string",
185            "description": "Provide your Slack App's Signin Secret (in your App's page, go to Basic information -> App Credentials)"
186          },
187          "proxyConfig": {
188            "title": "Proxy configuration",
189            "type": "object",
190            "description": "It's recommended to leave the 'Automatic Proxy you can use automatic Apify proxies, Residentials or your own proxies.",
191            "default": {
192              "useApifyProxy": true
193            }
194          }
195        }
196      },
197      "runsResponseSchema": {
198        "type": "object",
199        "properties": {
200          "data": {
201            "type": "object",
202            "properties": {
203              "id": {
204                "type": "string"
205              },
206              "actId": {
207                "type": "string"
208              },
209              "userId": {
210                "type": "string"
211              },
212              "startedAt": {
213                "type": "string",
214                "format": "date-time",
215                "example": "2025-01-08T00:00:00.000Z"
216              },
217              "finishedAt": {
218                "type": "string",
219                "format": "date-time",
220                "example": "2025-01-08T00:00:00.000Z"
221              },
222              "status": {
223                "type": "string",
224                "example": "READY"
225              },
226              "meta": {
227                "type": "object",
228                "properties": {
229                  "origin": {
230                    "type": "string",
231                    "example": "API"
232                  },
233                  "userAgent": {
234                    "type": "string"
235                  }
236                }
237              },
238              "stats": {
239                "type": "object",
240                "properties": {
241                  "inputBodyLen": {
242                    "type": "integer",
243                    "example": 2000
244                  },
245                  "rebootCount": {
246                    "type": "integer",
247                    "example": 0
248                  },
249                  "restartCount": {
250                    "type": "integer",
251                    "example": 0
252                  },
253                  "resurrectCount": {
254                    "type": "integer",
255                    "example": 0
256                  },
257                  "computeUnits": {
258                    "type": "integer",
259                    "example": 0
260                  }
261                }
262              },
263              "options": {
264                "type": "object",
265                "properties": {
266                  "build": {
267                    "type": "string",
268                    "example": "latest"
269                  },
270                  "timeoutSecs": {
271                    "type": "integer",
272                    "example": 300
273                  },
274                  "memoryMbytes": {
275                    "type": "integer",
276                    "example": 1024
277                  },
278                  "diskMbytes": {
279                    "type": "integer",
280                    "example": 2048
281                  }
282                }
283              },
284              "buildId": {
285                "type": "string"
286              },
287              "defaultKeyValueStoreId": {
288                "type": "string"
289              },
290              "defaultDatasetId": {
291                "type": "string"
292              },
293              "defaultRequestQueueId": {
294                "type": "string"
295              },
296              "buildNumber": {
297                "type": "string",
298                "example": "1.0.0"
299              },
300              "containerUrl": {
301                "type": "string"
302              },
303              "usage": {
304                "type": "object",
305                "properties": {
306                  "ACTOR_COMPUTE_UNITS": {
307                    "type": "integer",
308                    "example": 0
309                  },
310                  "DATASET_READS": {
311                    "type": "integer",
312                    "example": 0
313                  },
314                  "DATASET_WRITES": {
315                    "type": "integer",
316                    "example": 0
317                  },
318                  "KEY_VALUE_STORE_READS": {
319                    "type": "integer",
320                    "example": 0
321                  },
322                  "KEY_VALUE_STORE_WRITES": {
323                    "type": "integer",
324                    "example": 1
325                  },
326                  "KEY_VALUE_STORE_LISTS": {
327                    "type": "integer",
328                    "example": 0
329                  },
330                  "REQUEST_QUEUE_READS": {
331                    "type": "integer",
332                    "example": 0
333                  },
334                  "REQUEST_QUEUE_WRITES": {
335                    "type": "integer",
336                    "example": 0
337                  },
338                  "DATA_TRANSFER_INTERNAL_GBYTES": {
339                    "type": "integer",
340                    "example": 0
341                  },
342                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
343                    "type": "integer",
344                    "example": 0
345                  },
346                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
347                    "type": "integer",
348                    "example": 0
349                  },
350                  "PROXY_SERPS": {
351                    "type": "integer",
352                    "example": 0
353                  }
354                }
355              },
356              "usageTotalUsd": {
357                "type": "number",
358                "example": 0.00005
359              },
360              "usageUsd": {
361                "type": "object",
362                "properties": {
363                  "ACTOR_COMPUTE_UNITS": {
364                    "type": "integer",
365                    "example": 0
366                  },
367                  "DATASET_READS": {
368                    "type": "integer",
369                    "example": 0
370                  },
371                  "DATASET_WRITES": {
372                    "type": "integer",
373                    "example": 0
374                  },
375                  "KEY_VALUE_STORE_READS": {
376                    "type": "integer",
377                    "example": 0
378                  },
379                  "KEY_VALUE_STORE_WRITES": {
380                    "type": "number",
381                    "example": 0.00005
382                  },
383                  "KEY_VALUE_STORE_LISTS": {
384                    "type": "integer",
385                    "example": 0
386                  },
387                  "REQUEST_QUEUE_READS": {
388                    "type": "integer",
389                    "example": 0
390                  },
391                  "REQUEST_QUEUE_WRITES": {
392                    "type": "integer",
393                    "example": 0
394                  },
395                  "DATA_TRANSFER_INTERNAL_GBYTES": {
396                    "type": "integer",
397                    "example": 0
398                  },
399                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
400                    "type": "integer",
401                    "example": 0
402                  },
403                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
404                    "type": "integer",
405                    "example": 0
406                  },
407                  "PROXY_SERPS": {
408                    "type": "integer",
409                    "example": 0
410                  }
411                }
412              }
413            }
414          }
415        }
416      }
417    }
418  }
419}

Hacker News Data Scraper & Activity Monitoring OpenAPI definition

OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.

OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.

By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.

You can download the OpenAPI definitions for Hacker News Data Scraper & Activity Monitoring from the options below:

If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.

You can also check out our other API clients:

Developer
Maintained by Community

Actor Metrics

  • 3 monthly users

  • 2 stars

  • >99% runs succeeded

  • 65 days response time

  • Created in Mar 2024

  • Modified 3 months ago