Cookbook·News and media·foreignaffairs.com

Scrape articles on foreignaffairs.com

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

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

Measured on Crawlbase

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

Among the 74 news and media sites in the Cookbook, foreignaffairs.com sits at 18 of 74 by success rate; the category median is 98.9%. Its median answer of 51.7s is slower than the category median of 2.3s. 58 of the 74 accept the plain token; this one needs the JavaScript token.

The call

Article pages are the shape the accounts fetch most here, with the country and token that succeed most often. Replace the placeholder path with a real article URL from the site.

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

Parameters that matter

ParameterSet it toWhy
countryleave unsetMost successful calls set no country (100%) and succeed at 99.4%.
javascriptuse the JavaScript token99.5% of calls use the JavaScript token and succeed at 99.4%. The plain token was tried too rarely (9 calls) to say anything about it.

URL patterns accounts fetch

PatternShare of successesJavaScript tokenCountryQuery parameters
/united-states/{slug}31.8%99.2%nonenone
/{slug}/{slug}19.6%100%nonenone
/{slug}14.0%100%nonenone
/russia/{slug}11.3%100%nonenone
/middle-east/{slug}8.3%100%nonenone
/israel/{slug}5.5%100%nonenone
/china/{slug}5.3%100%nonenone

Fields you get

An article page carries a headline, a date and an author, usually in an ld+json Article block, and the body in the HTML. The block often names the section too.

What breaks, and the fix

Of the failures since 14 Aug 2026, the site answered:

504: 40.0% 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.
0: 10.0% of failures A status of 0 is a request that never got an answer inside the timeout. Retry once with the JavaScript token if the pattern needs a browser.
517: 50.0% of failures A 5xx is the site failing, not the fetch. Retry after a minute.

Run it on a schedule

News moves by the hour. Poll the section or the sitemap for new links, then push the article URLs to the Crawler with a callback so the fetches are paced. The median answer on this site is 51.7s.

Questions

Do I need a browser to scrape foreignaffairs.com?

Yes for most pages. JavaScript-token calls succeed at 99.4% while plain-token calls reach 100%.

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

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

Which country should I set for foreignaffairs.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