Scrape stocks pages on barchart.com
The call that returns stocks pages from barchart.com today, with the parameters, patterns and failure modes read off the request log since 14 Aug 2026.
Measured on Crawlbase
Success rate over every request from every account in August 2026: 98.7%. Patterns, countries and failures come from the request log since 14 Aug 2026; 99.0% of successful calls used the JavaScript token and the median answer took 6.5s.
Among the 13 finance sites in the Cookbook, barchart.com sits at 8 of 13 by success rate; the category median is 99.1%. Its median answer of 6.5s is slower than the category median of 2.1s. 9 of the 13 accept the plain token; this one needs the JavaScript token.
The call
The most common shape of URL the accounts fetch, with the country and token that succeed most often. Replace the placeholder path with a real one from the site.
curl "https://api.crawlbase.com/?token=YOUR_TOKEN&url=https%3A%2F%2Fwww.barchart.com%2Fstocks%2Fexample-page%2Fexample-page"from crawlbase import CrawlingAPI api = CrawlingAPI({'token': 'YOUR_TOKEN'}) r = api.get('https://www.barchart.com/stocks/example-page/example-page') html = r['body']
const { CrawlingAPI } = require('crawlbase'); const api = new CrawlingAPI({ token: 'YOUR_TOKEN' }); const r = await api.get('https://www.barchart.com/stocks/example-page/example-page');
Parameters that matter
| Parameter | Set it to | Why |
|---|---|---|
country | leave unset | Most successful calls set no country (99.7%) and succeed at 98.8%. |
javascript | leave unset | Plain-token calls succeed at 96.9%, JavaScript-token calls at 98.8%. Both work; start without the browser and switch per URL pattern where the table below shows it. |
URL patterns accounts fetch
| Pattern | Share of successes | JavaScript token | Country | Query parameters |
|---|---|---|---|---|
/stocks/{slug}/{slug} | 96.3% | 100% | none | none |
Fields you get
Fields depend on the page type. Product pages usually carry an ld+json block with name, price, currency and availability, and article pages a headline and body; check the first response you get.
What breaks, and the fix
Of the failures since 14 Aug 2026, the site answered:
Run it on a schedule
The median answer on this site is 6.5s. Push a URL list to the Crawler with a callback for anything larger than a few thousand pages a day; it paces the calls and retries what the site refuses.
Questions
Do I need a browser to scrape barchart.com?
It depends on the page. Plain-token calls succeed at 96.9%, JavaScript-token calls at 98.8%; the URL pattern table shows which paths accounts fetch with a browser.
How much does a barchart.com page cost on Crawlbase?
1 credit without a browser. barchart.com is in the standard tier.
Which country should I set for barchart.com?
None is needed: most successful calls leave it unset.