Investing.com Scraper
Spider read investing.com in 171 ms without a browser and returned 1,313 lines of clean markdown.
Economic CalendarEarnings CalendarHoliday CalendarFed Rate Monitor ToolUS Treasury Yield CurveStock ScreenerCurrency ConverterInstall Our AppScan QR code to install appRisk Disclosure: Trading in financial instruments and/or cryptocurrencies involves high risks including the risk of losing some, or all, of your investment amount, and may not be suitable for all investors. Prices of cryptocurrencies are extremely volatile and may be affected by external factors such as financial, regulatory or political events. Trading on margin increases the financial risks.Before deciding to trade in financial instrument or cryptocurrencies you should be fully informed of the risks and costs associated with trading the financial markets, carefully consider your investment objectives, level of experience, and risk appetite, and seek professional advice where needed.**Fusion Media** would like to remind you that the data contained in this website is not necessarily real-time nor accurate. The data and prices on the website are not necessarily provided by any market or exchange, but may be provided by market makers, and so prices may not be accurate and may differ from the actual price at any given market, meaning prices are indicative and not appropriate for trading purposes. **Fusion Media** and any provider of the data contained in this website will not accept liability for any loss or damage as a result of your trading, or your reliance on the information contained within this website.It is prohibited to use, store, reproduce, display, modify, transmit or distribute the data contained in this website without the explicit prior written permission of Fusion Media and/or the data provider. All intellectual property rights are reserved by the providers and/or the exchange providing the data contained in this website. The same call, in code.
The capture above came back as markdown. These examples add a key, so you get browser rendering, proxies, and concurrency on investing.com.
import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://www.investing.com/equities/most-active-stocks");
// No selectors, no schema. Spider reads the page and names the fields.
const data = await page.scrape();
console.log(data);
await spider.close(); import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
stealth: 2,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://www.investing.com/equities/most-active-stocks");
await page.content();
const data = await page.evaluate(`(() => {
const stocks = [];
document.querySelectorAll("table tbody tr").forEach(el => {
const name = el.querySelector("td:nth-child(2) a")?.textContent?.trim();
const price = el.querySelector("td:nth-child(3)")?.textContent?.trim();
const change = el.querySelector("td:nth-child(5)")?.textContent?.trim();
const volume = el.querySelector("td:nth-child(6)")?.textContent?.trim();
if (name) stocks.push({ name, price, change, volume });
});
return JSON.stringify({ total: stocks.length, stocks: stocks.slice(0, 20) });
})()`);
console.log(JSON.parse(data));
await spider.close(); Ready for volume? Get an API key →
Fields you can pull.
Spider names these from the page. The capture above came back as markdown; the same
call with return_format: "json" returns them as keys.
What investing.com costs to scrape.
The capture above cost $0.002597 to fetch. Pricing is $1 per GB of pre-transformation bandwidth plus $0.001 per CPU minute, so a page like this one lands at a fraction of a cent. Failed requests are billed at $0.
- Free balance on signup
- No card required to test
- Balance never expires
Run it keyless, no account
More Finance scrapers.
Yahoo Finance Scraper
Extract stock quotes, financial statements, analyst ratings, and market news from Yahoo Finance.
Google Finance Scraper
Extract stock quotes, market indices, and financial news from Google Finance.
CoinGecko Scraper
Extract cryptocurrency prices, market caps, volume data, and historical charts from CoinGecko.
Start scraping investing.com.
You already have the call. A key raises the rate limit and turns on browser rendering, proxies, and concurrency. Balance never expires, and top-ups go through secure checkout.