Investing.com Scraper
This Actor is unavailable because the developer has decided to deprecate it. Would you like to try a similar Actor instead?
See alternative ActorsInvesting.com Scraper
Scrape Investing.com daily news and 250K of archived news and articles
You can access the Investing.com Scraper programmatically from your own JavaScript applications by using the Apify API. You can also 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.
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11 "startUrls": [
12 {
13 "url": "https://www.investing.com/indices/eu-stoxx50-news/"
14 },
15 {
16 "url": "https://www.investing.com/news/latest-news/"
17 },
18 {
19 "url": "https://www.investing.com/news/most-popular-news/"
20 },
21 {
22 "url": "https://www.investing.com/news/headlines/"
23 },
24 {
25 "url": "https://www.investing.com/news/cryptocurrency-news/"
26 },
27 {
28 "url": "https://www.investing.com/news/stock-market-news/"
29 },
30 {
31 "url": "https://www.investing.com/news/commodities-news/"
32 },
33 {
34 "url": "https://www.investing.com/news/forex-news/"
35 },
36 {
37 "url": "https://www.investing.com/news/economy/"
38 },
39 {
40 "url": "https://www.investing.com/news/economic-indicators/"
41 },
42 {
43 "url": "https://www.investing.com/news/politics/"
44 },
45 {
46 "url": "https://www.investing.com/news/world-news/"
47 }
48 ],
49 "dateRange": "2023/1/5 - 2020/1/5",
50 "maxArticles": 50,
51 "maxDepth": 20,
52 "proxyConfiguration": {
53 "useApifyProxy": false
54 }
55};
56
57// Run the Actor and wait for it to finish
58const run = await client.actor("glitch_404/investing-scraper").call(input);
59
60// Fetch and print Actor results from the run's dataset (if any)
61console.log('Results from dataset');
62console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
63const { items } = await client.dataset(run.defaultDatasetId).listItems();
64items.forEach((item) => {
65 console.dir(item);
66});
67
68// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Investing unofficial API API in JavaScript
The Apify API client for JavaScript is the official library that allows you to use Investing.com Scraper API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
npm install apify-client
Other API clients include: