# Geotargeting

Certain websites (typically **e-commerce** platforms and search engines) return different content based on the geolocation of the IP used to make the request to the website. In such cases, you can geotarget your requests by instructing the API to route traffic through proxies from the required country.

To control the geolocation of the IP used for a request, set the `country_code` parameter to the desired country, and the API will automatically route the request through an IP from that location.

**For example:** to ensure your requests come from the United States, set the `country_code` parameter to `country_code=us`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scraperapi.com/control-and-optimization/geotargeting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
