Advanced News Scraper avatar

Advanced News Scraper

Try for free

3 days trial then $20.00/month - No credit card required now

Go to Store
Advanced News Scraper

Advanced News Scraper

dorcy/advanced-news-scraper
Try for free

3 days trial then $20.00/month - No credit card required now

This scraper is crafted to extract the latest news articles based on custom search queries, providing a wealth of information, including article titles, sources, publication dates, full article text, and AI-generated summary.

You can access the Advanced News Scraper 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": "EHEeYaVbMFpMYvPN0"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/dorcy~advanced-news-scraper/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-dorcy-advanced-news-scraper",
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/dorcy~advanced-news-scraper/runs": {
50      "post": {
51        "operationId": "runs-sync-dorcy-advanced-news-scraper",
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/dorcy~advanced-news-scraper/run-sync": {
93      "post": {
94        "operationId": "run-sync-dorcy-advanced-news-scraper",
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          "query"
135        ],
136        "properties": {
137          "query": {
138            "title": "Search Query",
139            "type": "string",
140            "description": "Query terms for the News",
141            "default": "Tech OR Startup"
142          },
143          "blacklistedWords": {
144            "title": "Blacklisted Words",
145            "type": "array",
146            "description": "The words if found anywhere in the story the article will be skipped.",
147            "items": {
148              "type": "string"
149            }
150          },
151          "limit": {
152            "title": "Article Limit",
153            "type": "integer",
154            "description": "The limit to the number of articles retrieved",
155            "default": 10
156          },
157          "includeSummary": {
158            "title": "Include AI Summary",
159            "type": "boolean",
160            "description": "Include ai summaries with the OpenAI key you provide below, this will be a title and description.",
161            "default": false
162          },
163          "openaiKey": {
164            "title": "OpenAI Secret API Key",
165            "type": "string",
166            "description": "If you want summaries include your OpenAI secret key. Here is how to find it https://help.openai.com/en/articles/4936850-where-do-i-find-my-api-key",
167            "default": "sk-...jkdns"
168          },
169          "when": {
170            "title": "Time Frame",
171            "enum": [
172              "1h",
173              "12h",
174              "1d",
175              "7d",
176              "30d",
177              "3d",
178              "14d",
179              "2m",
180              "3m",
181              "6m",
182              "12m"
183            ],
184            "type": "string",
185            "description": "Specifies the time range for the published date and time of news articles in the RSS feed. Use 'h' for hours (up to 101 hours), 'd' for days, and 'm' for months (up to 48 months). For example, '1d' represents a 1-day time frame. Note: If the keyword is very niche or if the published dates of articles have recently changed, some stories outside of the specified timeline may appear.",
186            "default": "1d"
187          },
188          "gl": {
189            "title": "Region",
190            "enum": [
191              "US",
192              "GB",
193              "CA"
194            ],
195            "type": "string",
196            "description": "Country code for the news region",
197            "default": "US"
198          },
199          "hl": {
200            "title": "Language",
201            "enum": [
202              "en-US",
203              "en-GB",
204              "es-ES"
205            ],
206            "type": "string",
207            "description": "Language for the news articles",
208            "default": "en-US"
209          },
210          "ceid": {
211            "title": "Edition",
212            "enum": [
213              "US:en",
214              "GB:en",
215              "CA:en",
216              "CA:fr"
217            ],
218            "type": "string",
219            "description": "Edition or regional targeting of the news",
220            "default": "US:en"
221          }
222        }
223      },
224      "runsResponseSchema": {
225        "type": "object",
226        "properties": {
227          "data": {
228            "type": "object",
229            "properties": {
230              "id": {
231                "type": "string"
232              },
233              "actId": {
234                "type": "string"
235              },
236              "userId": {
237                "type": "string"
238              },
239              "startedAt": {
240                "type": "string",
241                "format": "date-time",
242                "example": "2025-01-08T00:00:00.000Z"
243              },
244              "finishedAt": {
245                "type": "string",
246                "format": "date-time",
247                "example": "2025-01-08T00:00:00.000Z"
248              },
249              "status": {
250                "type": "string",
251                "example": "READY"
252              },
253              "meta": {
254                "type": "object",
255                "properties": {
256                  "origin": {
257                    "type": "string",
258                    "example": "API"
259                  },
260                  "userAgent": {
261                    "type": "string"
262                  }
263                }
264              },
265              "stats": {
266                "type": "object",
267                "properties": {
268                  "inputBodyLen": {
269                    "type": "integer",
270                    "example": 2000
271                  },
272                  "rebootCount": {
273                    "type": "integer",
274                    "example": 0
275                  },
276                  "restartCount": {
277                    "type": "integer",
278                    "example": 0
279                  },
280                  "resurrectCount": {
281                    "type": "integer",
282                    "example": 0
283                  },
284                  "computeUnits": {
285                    "type": "integer",
286                    "example": 0
287                  }
288                }
289              },
290              "options": {
291                "type": "object",
292                "properties": {
293                  "build": {
294                    "type": "string",
295                    "example": "latest"
296                  },
297                  "timeoutSecs": {
298                    "type": "integer",
299                    "example": 300
300                  },
301                  "memoryMbytes": {
302                    "type": "integer",
303                    "example": 1024
304                  },
305                  "diskMbytes": {
306                    "type": "integer",
307                    "example": 2048
308                  }
309                }
310              },
311              "buildId": {
312                "type": "string"
313              },
314              "defaultKeyValueStoreId": {
315                "type": "string"
316              },
317              "defaultDatasetId": {
318                "type": "string"
319              },
320              "defaultRequestQueueId": {
321                "type": "string"
322              },
323              "buildNumber": {
324                "type": "string",
325                "example": "1.0.0"
326              },
327              "containerUrl": {
328                "type": "string"
329              },
330              "usage": {
331                "type": "object",
332                "properties": {
333                  "ACTOR_COMPUTE_UNITS": {
334                    "type": "integer",
335                    "example": 0
336                  },
337                  "DATASET_READS": {
338                    "type": "integer",
339                    "example": 0
340                  },
341                  "DATASET_WRITES": {
342                    "type": "integer",
343                    "example": 0
344                  },
345                  "KEY_VALUE_STORE_READS": {
346                    "type": "integer",
347                    "example": 0
348                  },
349                  "KEY_VALUE_STORE_WRITES": {
350                    "type": "integer",
351                    "example": 1
352                  },
353                  "KEY_VALUE_STORE_LISTS": {
354                    "type": "integer",
355                    "example": 0
356                  },
357                  "REQUEST_QUEUE_READS": {
358                    "type": "integer",
359                    "example": 0
360                  },
361                  "REQUEST_QUEUE_WRITES": {
362                    "type": "integer",
363                    "example": 0
364                  },
365                  "DATA_TRANSFER_INTERNAL_GBYTES": {
366                    "type": "integer",
367                    "example": 0
368                  },
369                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
370                    "type": "integer",
371                    "example": 0
372                  },
373                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
374                    "type": "integer",
375                    "example": 0
376                  },
377                  "PROXY_SERPS": {
378                    "type": "integer",
379                    "example": 0
380                  }
381                }
382              },
383              "usageTotalUsd": {
384                "type": "number",
385                "example": 0.00005
386              },
387              "usageUsd": {
388                "type": "object",
389                "properties": {
390                  "ACTOR_COMPUTE_UNITS": {
391                    "type": "integer",
392                    "example": 0
393                  },
394                  "DATASET_READS": {
395                    "type": "integer",
396                    "example": 0
397                  },
398                  "DATASET_WRITES": {
399                    "type": "integer",
400                    "example": 0
401                  },
402                  "KEY_VALUE_STORE_READS": {
403                    "type": "integer",
404                    "example": 0
405                  },
406                  "KEY_VALUE_STORE_WRITES": {
407                    "type": "number",
408                    "example": 0.00005
409                  },
410                  "KEY_VALUE_STORE_LISTS": {
411                    "type": "integer",
412                    "example": 0
413                  },
414                  "REQUEST_QUEUE_READS": {
415                    "type": "integer",
416                    "example": 0
417                  },
418                  "REQUEST_QUEUE_WRITES": {
419                    "type": "integer",
420                    "example": 0
421                  },
422                  "DATA_TRANSFER_INTERNAL_GBYTES": {
423                    "type": "integer",
424                    "example": 0
425                  },
426                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
427                    "type": "integer",
428                    "example": 0
429                  },
430                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
431                    "type": "integer",
432                    "example": 0
433                  },
434                  "PROXY_SERPS": {
435                    "type": "integer",
436                    "example": 0
437                  }
438                }
439              }
440            }
441          }
442        }
443      }
444    }
445  }
446}

Advanced News Scraper 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 Advanced News Scraper 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

  • 22 monthly users

  • 9 bookmarks

  • >99% runs succeeded

  • Created in Nov 2023

  • Modified 5 months ago

Categories