# ChatGPT answers with UK-localised web search

**Use case:** 

Asks a ChatGPT model through the OpenAI API with web search localised to the United Kingdom (country GB), and returns the answer with its citations, the pages read and the search queries. Change the country code to localise the search to another market. The country setting applies to ChatGPT and Claude; Gemini's search has no location setting. One answer costs $0.09 with the default model.

## Input

```json
{
  "prompts": [
    "What is the cheapest way to send money from the UK to Poland?"
  ],
  "promptsField": "prompt",
  "engines": [
    "openai"
  ],
  "openaiModel": "gpt-6.1-terra",
  "anthropicModel": "claude-sonnet-5-5",
  "geminiModel": "gemini-3.8-flash",
  "country": "GB",
  "alwaysSearch": true,
  "maxSearches": 2,
  "maxChecks": 1,
  "includeSources": true
}
```

## Output

```json
{
  "prompt": {
    "label": "Prompt",
    "format": "text"
  },
  "engine": {
    "label": "Engine",
    "format": "text"
  },
  "citations": {
    "label": "Citations",
    "format": "array"
  },
  "citedDomains": {
    "label": "Cited domains",
    "format": "array"
  },
  "sourceDomains": {
    "label": "Domains read",
    "format": "array"
  },
  "searchQueries": {
    "label": "Searches run",
    "format": "array"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The AI Answers API: ChatGPT, Claude & Gemini with Web Search Actor is ready to run with the inputs already set for "ChatGPT answers with UK-localised web search". [Sign up or log in](https://console.apify.com/create-task-from-example/hZpoGhUEa6PZAS9BT) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "ChatGPT answers with UK-localised web search" task

The AI Answers API: ChatGPT, Claude & Gemini with Web Search Actor will start running based on the input automatically. You can also change all the input fields, like prompts, prompt field or column, and more, to match your specific use case.

### 3. Receive the "ChatGPT answers with UK-localised web search" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as prompt, engine, citations, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "ChatGPT answers with UK-localised web search" task via API](https://apify.com/localwire/ai-answers.md).

## FAQ

### What does the "ChatGPT answers with UK-localised web search" task return?

The "ChatGPT answers with UK-localised web search" task returns one record per prompt: the answer, its citations, the cited domains, the domains read and the search queries, with the country used.

### How do I change the country of the UK-localised ChatGPT task?

Replace GB in the country field of the UK-localised ChatGPT task with another two-letter country code, such as US or DE. Leave the field empty for no localisation.

### How do I run the "ChatGPT answers with UK-localised web search" task on a schedule or from code?

Copy the "ChatGPT answers with UK-localised web search" task to your Apify account, then add a schedule in Apify Console or start it with the Run task API endpoint. Results download as JSON, CSV or Excel.

## About this Actor

This example demonstrates how to use [AI Answers API: ChatGPT, Claude & Gemini with Web Search](https://apify.com/localwire/ai-answers.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/localwire/ai-answers.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/localwire/ai-answers.md

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`).
