Cookbook·Social·twitter.com

Scrape twitter.com

The call that returns pages from twitter.com today, with the parameters, patterns and failure modes read off the request log since 14 Aug 2026.

99.8% success · Aug 2026Browser neededStandard price · 1 credit

Measured on Crawlbase

Success rate over every request from every account in August 2026: 99.8%. Patterns, countries and failures come from the request log since 14 Aug 2026; 100% of successful calls used the JavaScript token and the median answer took 14.9s.

Among the 8 social sites in the Cookbook, twitter.com sits at 2 of 8 by success rate; the category median is 98.9%. Its median answer of 14.9s is slower than the category median of 9.2s. 6 of the 8 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.

Run in Playground
curl "https://api.crawlbase.com/?token=YOUR_TOKEN&url=https%3A%2F%2Fwww.twitter.com%2Fexample-page"

Parameters that matter

ParameterSet it toWhy
countryleave unsetMost successful calls set no country (100%) and succeed at 99.6%.
javascriptleave unsetPlain-token calls succeed at 98.2%, JavaScript-token calls at 99.6%. Both work; start without the browser and switch per URL pattern where the table below shows it.

URL patterns accounts fetch

PatternShare of successesJavaScript tokenCountryQuery parameters
/{slug}15.0%100%nonenone

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:

999: 64.6% of failures 999 is not a standard HTTP answer; the site sent it as a refusal. Treat it like a block: retry once with the JavaScript token and the country the successful calls use, then stop.
504: 17.8% of failures A 504 is a timeout: the page did not finish inside the limit. Retry once, and keep your own client timeout above the median answer time shown for this site.

Run it on a schedule

The median answer on this site is 14.9s. 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 twitter.com?

It depends on the page. Plain-token calls succeed at 98.2%, JavaScript-token calls at 99.6%; the URL pattern table shows which paths accounts fetch with a browser.

How much does a twitter.com page cost on Crawlbase?

1 credit without a browser. twitter.com is in the standard tier.

Which country should I set for twitter.com?

None is needed: most successful calls leave it unset.

Site names identify the pages a recipe fetches. Crawlbase is not affiliated with any site listed. Use recipes within the acceptable use policy.Measured numbers from August 2026, refreshed monthly