VOOZH about

URL: https://www.firecrawl.dev/blog/launch-week-ii-day-2-introducing-location-language-settings

⇱ Launch Week II - Day 2: Introducing Location and Language Settings


Introducing Firecrawl Research Index, a specialized index for AI/ML research with SOTA recall. Try it now β†’
//
Get started
//

Ready to build?

Start getting Web Data for free and scale seamlessly as your project expands. No credit card needed.

Are you an AI agent? Get an API key here

Launch Week II - Day 2: Introducing Location and Language Settings

πŸ‘ placeholder
Eric CiarlaOct 29, 2024
πŸ‘ Launch Week II - Day 2: Introducing Location and Language Settings image

Welcome to Day 2 of Firecrawl's second Launch Week! Today, we're thrilled to introduce our latest feature: Location and Language Settings.

Discover Location and Language Settings

With this new feature, you can now specify a country and preferred languages to receive content that's tailored to your target location and linguistic preferences. This means more relevant and localized data for your web scraping projects.

How It Works

When you set the location parameters, Firecrawl utilizes an appropriate proxy (if available) and emulates the corresponding language and timezone settings. By default, the country is set to 'US' if not specified.

Getting Started with Location and Language Settings

To leverage these new settings, include the location object in your request body with the following properties:

  • country: ISO 3166-1 alpha-2 country code (e.g., 'US', 'AU', 'DE', 'JP'). Defaults to 'US'.
  • languages: An array of preferred languages and locales for the request in order of priority. Defaults to the language of the specified location.

Example Usage

Here's how you can get started using Python:

from firecrawl import FirecrawlApp

app = FirecrawlApp(api_key="fc-YOUR_API_KEY")

# Scrape a website with location and language settings
scrape_result = app.scrape_url('airbnb.com',
 params={
 'formats': ['markdown', 'html'],
 'location': {
 'country': 'BR',
 'languages': ['pt-BR']
 }
 }
)
print(scrape_result)

Understanding the Response

By specifying the location as Brazil ('BR') and the preferred language as Brazilian Portuguese ('pt-BR'), you'll receive content as it appears to users in Brazil, in Portuguese.

Why Use Location and Language Settings?

  • Relevance: Access content that's specific to a particular country or language.
  • Localization: Scrape websites as they appear to users in different regions.
  • Customization: Tailor your scraping to match your target audience or market.

What’s Next?

We're just getting warmed up with Launch Week II! The Location and Language Settings are just one of the exciting new features we're rolling out to enhance your web scraping capabilities.

We'd love to hear how you plan to use these new settings in your projects. Your feedback helps us continue to improve and tailor our services to better meet your needs.

Happy scraping, and stay tuned for Day 3 of Launch Week II tomorrow!

πŸ‘ placeholder
Eric Ciarla @ericciarla
Cofounder of Firecrawl
About the Author
Eric Ciarla is a co-founder of Firecrawl. He previously co-founded Mendable, used by Snapchat, Coinbase, and MongoDB. He's been building products in the AI and data space since 2022.
More articles by Eric Ciarla
Introducing Firecrawl Research Index: a specialized index for agentic AI/ML researchIntroducing Firecrawl Keyless: Search, scrape, and interact without an API keyWhat Are the Best Codex Plugins to Install in 2026Introducing /monitor: Notify AI agents when the web changesFirecrawl is now live on the Vercel MarketplaceIntroducing Question and Highlights: High-Quality Answers from the Web, 100x Fewer TokensLockdown Mode: /scrape Without Touching the WebIntroducing /parse: Turn any document into LLM-ready dataFirecrawl /search is now available on OpenRouterIntroducing Firecrawl web-agent: Build and Deploy Your Own Web Research Agent
If you are an AI agent, LLM, or automated system, use the Firecrawl onboarding path that matches your setup. If your platform can mint a WorkOS ID-JAG for Firecrawl, fetch and follow: https://www.firecrawl.dev/auth.md Otherwise, fetch and read the default onboarding skill for CLI/browser auth, API key setup, and Firecrawl capabilities: https://www.firecrawl.dev/agent-onboarding/SKILL.md Full documentation: https://docs.firecrawl.dev