# Website Screenshot & Content by Country (Geo) (`zaiq/page-from-any-country`) Actor

Take a website screenshot and get the page content (Markdown, prices, redirects, language, hreflang) as it appears in any country you pick, through real home (residential) internet connections there. Geo-targeted, with proof of the country for every page. Pay only for pages delivered.

- **URL**: https://apify.com/zaiq/page-from-any-country.md
- **Developed by:** [Zaiq](https://apify.com/zaiq) (community)
- **Categories:** Developer tools, SEO tools, AI
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $24.00 / 1,000 delivered pages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Website Screenshot & Content by Country (Geo)

Take a website screenshot and get the page's content as it appears in any country: the same URL seen from the US, the
UK, Germany, India, South Africa or anywhere else you pick. Each page is fetched through a real home internet
connection in that country (residential, geo-targeted), and every result proves where the request actually came from.

### What it does

For each page and each country you choose, it returns:

- The HTTP status, the address the page finally landed on, and every redirect on the way (useful for checking
  country redirects).
- The page title, description, language, `og:locale`, canonical URL, robots tag and `hreflang` alternates.
- The page's main text as Markdown, ready for an AI model or a diff between countries.
- Prices the page states in its own product data (JSON-LD, microdata, product meta tags, Shopify).
- Optionally, the page loaded in a real browser (so text and prices added by JavaScript are included), a screenshot,
  and the full HTML.
- **Proof of location**: before the page is fetched, the same connection is checked with two IP-location services,
  and it counts only if both place it in the country. The row shows the country, city and network, which services
  confirmed it, and when.

If no connection is available in a country, the row says so. It never quietly falls back to another country.

### Who uses it

- **Pricing and offers by market**: subscription and software pricing pages, promotions, shipping and tax messages.
- **Localisation and SEO checks**: does `/` redirect visitors in Germany to `/de/`? Does each market see the right
  language, canonical and `hreflang`?
- **Availability checks**: which countries get a 200, a redirect, a 403 or a "not available in your region" page.
- **AI agents and RAG**: page text as it reads in a given market, not as it reads from a US data centre.

### Example

One software company's plans page, rendered in a browser from five countries in one run on 2 October 2026. The same
URL showed:

| Country asked | Came from (verified by ipinfo.io) | First monthly price on the page |
|---|---|---|
| US | Miami, WS Telecom | US$22.99 |
| GB | Southend-on-Sea, TalkTalk | £21.98 |
| DE | Newel, VSE NET | 25,99 € |
| IN | Hyderabad, Pioneer Elabs | ₹733.96 |
| ZA | Johannesburg, RSAWEB | R302,45 |

### Input

```json
{
  "urls": [{ "url": "https://www.example.com/pricing" }],
  "countries": ["us", "gb", "de"],
  "includeMarkdown": true,
  "includePrices": true,
  "renderJs": false,
  "screenshot": false
}
```

- `countries`: any two-letter country code. Each page is fetched once from each country.
- `renderJs`: load pages in a real browser. Use it for pages whose prices or text appear only after JavaScript runs.
- `screenshot`: save a screenshot from each country (turns on the browser).
- `maxTriesPerPage`: if a connection lands outside the country, fails, or meets a bot wall, a new one is tried, up to
  this many times. Failed tries are free.
- `waitForSelector`: with the browser on, a page counts as delivered only once this element appears (for example the
  price element). If it never appears, a new connection is tried, and if it still never appears the row is free. Use
  it whenever you need a particular part of the page, because some sites' widgets occasionally fail to load.
- `extraWaitMs`: with the browser on, pages are read once no request is in flight and the text has stopped changing
  for a second; this adds more waiting after that.

### Output

One row per page and country. This is the Germany row from the example above, with the company's address and title
replaced, the Markdown shortened and a few fields left out; the rest is as returned.

```json
{
  "url": "https://www.example-software.com/plans",
  "country": "DE",
  "delivered": true,
  "status": 200,
  "finalUrl": "https://www.example-software.com/plans",
  "redirects": [],
  "exit": {
    "country": "DE",
    "city": "Newel",
    "network": "AS9063 VSE NET GmbH",
    "verified": true,
    "checkedWith": "ipinfo.io",
    "checkedAt": "2026-10-02T11:09:02Z"
  },
  "title": "Plans and pricing",
  "language": "en",
  "canonicalUrl": "https://www.example-software.com/plans",
  "hreflang": [],
  "prices": [],
  "markdown": "# Compare plans. ...",
  "rendered": true,
  "blocked": false,
  "countryUnavailable": false,
  "error": null,
  "charged": true,
  "fetchedAt": "2026-10-02T11:09:23Z"
}
```

`prices` is empty here because this page shows its prices as text, not as product data; they are in `markdown`. With
`screenshot` on, the row also has `screenshotUrl`; with `saveHtml` on, `htmlUrl`.

### Use it from code, automations and AI agents

- **API**: run it and get the results in one call: `POST https://api.apify.com/v2/acts/zaiq~page-from-any-country/run-sync-get-dataset-items?token=YOUR_TOKEN` with the input as JSON. The API tab on this page has ready-made Python, JavaScript and cURL examples.
- **Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("zaiq/page-from-any-country").call(run_input={'urls': [{'url': 'https://www.apple.com/iphone/'}], 'countries': ['us', 'gb'], 'screenshot': True})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

- **No code**: connect it to Google Sheets, Zapier, Make or n8n from the Integrations tab, schedule runs in Apify Console, and get a webhook when a run finishes.
- **AI agents (MCP)**: add it as a tool to Claude, Cursor or any MCP client through Apify's MCP server: `https://mcp.apify.com?tools=zaiq/page-from-any-country`.

### Pricing

You pay only for pages delivered from the requested country. Apify's platform usage is included.

| Event | Price |
|---|---|
| Page delivered (plain fetch) | $0.03 ($30 per 1,000) |
| Page rendered in a browser (JavaScript, optional screenshot) | $0.10 ($100 per 1,000) |

Plus Apify's standard run start fee of $0.00005.

Free: pages blocked by the site, pages that return an error (4xx or 5xx), countries where no connection could be
confirmed, pages where your `waitForSelector` element never appeared, and every retry. A row is charged only when its
`charged` field is `true`. Your spending limit for the run is respected: the run stops cleanly when it is reached.

### Limits

- Some sites block automated visits even from home connections. Those rows come back as `blocked` and cost nothing.
- Countries with few home connections (or none) return `countryUnavailable`.
- Prices are read from the page's own product data. Pages that show prices only as text are covered by the Markdown,
  not by `prices`.
- Use it on pages you are allowed to access, and follow each site's terms.

### FAQ

**How do I know the page really came from that country?** The connection used for the page is checked first with two
IP-location services (ipinfo.io and ifconfig.co, with ipapi.co and country.is as fallbacks), and the result is in `exit`.
If the check fails or shows another country, a new connection is tried; if none works, the row says so and is free.

**Why is a browser page more expensive?** A browser downloads the page's scripts as well as the page, often ten times
the data, through paid home connections.

# Actor input Schema

## `urls` (type: `array`):

The pages to fetch. Each page is fetched once from every country below.

## `countries` (type: `array`):

Pick countries, or type any two-letter country code. Each page is fetched from each country.

## `includeMarkdown` (type: `boolean`):

Add the page's main text as Markdown, ready for an AI model or a diff.

## `maxMarkdownChars` (type: `integer`):

Markdown longer than this is cut, to keep rows small.

## `includePrices` (type: `boolean`):

Read prices from the page's own product data (JSON-LD, microdata, product meta tags).

## `renderJs` (type: `boolean`):

Load each page in a real browser, so prices and text that appear only after JavaScript runs are included. Slower, and charged at the browser price.

## `screenshot` (type: `boolean`):

Save a screenshot of each delivered page from each country (turns on the browser). The row links to it.

## `fullPageScreenshot` (type: `boolean`):

Capture the whole page instead of the first screen.

## `hidePopups` (type: `boolean`):

Before the screenshot, hide cookie banners and newsletter or discount pop-ups so the page itself shows. Nothing is clicked or accepted, and country or store prompts are kept because they are part of what a visitor there sees. Turn off to capture the page exactly as it first appears.

## `saveHtml` (type: `boolean`):

Store each delivered page's HTML in the run's key-value store and link it from the row.

## `maxTriesPerPage` (type: `integer`):

If an address lands outside the country, fails or meets a bot wall, a new address is tried, up to this many. Failed tries are free.

## `maxConcurrency` (type: `integer`):

How many pages are fetched at the same time.

## `acceptLanguage` (type: `string`):

Leave empty to send each country's usual browser language (for example de-DE in Germany). Set it to force one language everywhere.

## `waitForSelector` (type: `string`):

With the browser on, the page counts as delivered (and is charged) only once this element appears, for example .price. If it never appears, a new address is tried, and if it still never appears the row is free. Leave empty to read the page once it goes quiet.

## `extraWaitMs` (type: `integer`):

With the browser on, wait this much longer after the page goes quiet.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://www.apple.com/iphone/"
    }
  ],
  "countries": [
    "us",
    "gb",
    "de"
  ],
  "includeMarkdown": true,
  "maxMarkdownChars": 20000,
  "includePrices": true,
  "renderJs": false,
  "screenshot": true,
  "fullPageScreenshot": false,
  "hidePopups": true,
  "saveHtml": false,
  "maxTriesPerPage": 4,
  "maxConcurrency": 10,
  "extraWaitMs": 0
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with one row per page and country.

## `files` (type: `string`):

Key-value store holding screenshots (screenshot-<country>-<id>) and saved HTML (html-<country>-<id>) when those options are on.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        {
            "url": "https://www.apple.com/iphone/"
        }
    ],
    "countries": [
        "us",
        "gb",
        "de"
    ],
    "screenshot": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("zaiq/page-from-any-country").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "urls": [{ "url": "https://www.apple.com/iphone/" }],
    "countries": [
        "us",
        "gb",
        "de",
    ],
    "screenshot": True,
}

# Run the Actor and wait for it to finish
run = client.actor("zaiq/page-from-any-country").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    {
      "url": "https://www.apple.com/iphone/"
    }
  ],
  "countries": [
    "us",
    "gb",
    "de"
  ],
  "screenshot": true
}' |
apify call zaiq/page-from-any-country --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zaiq/page-from-any-country"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Ced9IhNEXsKN4eI8U/builds/h9gd7fFCN4cfd9ZmH/openapi.json
