# EmbassyPages API

> EmbassyPages returns embassy and consulate listings with mission details as a workflow and API.

EmbassyPages finds embassies and consulates representing one country in another country or city, using the Search embassies method. Search embassies needs the country a mission represents and the country or city where it is located; results include mission details when listed.

- Page: https://fous.com/workflows/embassypages
- Handle: `@embassypages`
- Category: [Travel](https://fous.com/workflows/category/travel)
- Source website: https://embassypages.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with EmbassyPages.

## Methods

### Search embassies

Operation `search_embassies`, version 1. 1 credit per call.

Find a country’s embassies and consulates in another country or city, in EmbassyPages listing order, with contact details shown on each mission page. Contact fields that are not listed are null.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `embassy_of` | string | yes | `"India"` | Country the mission represents, for example India. |
| `located_in` | string | yes | `"Frankfurt"` | Country or city where the mission is located, for example Germany or Frankfurt. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "embassy_of",
    "located_in"
  ],
  "properties": {
    "embassy_of": {
      "type": "string",
      "description": "Country the mission represents, for example India.",
      "examples": [
        "India",
        "France"
      ]
    },
    "located_in": {
      "type": "string",
      "description": "Country or city where the mission is located, for example Germany or Frankfurt.",
      "examples": [
        "Frankfurt",
        "Germany"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "embassy_of": "India",
      "located_in": "Frankfurt"
    },
    {
      "embassy_of": "India",
      "located_in": "Germany"
    },
    {
      "embassy_of": "France",
      "located_in": "Germany"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `missions` | array |  | Matching missions in EmbassyPages listing order. |
| `missions[].city` | string | `"Frankfurt am Main"` | City where the mission is located. |
| `missions[].type` | string | `"consulate general"` | Type of mission. |
| `missions[].email` | string or null | `"consulategeneral@consulateatgeneralifrankfurt.de"` | Email address shown, or null. |
| `missions[].phone` | string or null | `"(+49) 69-1530050"` | Phone number or numbers shown, or null. |
| `missions[].page_link` | string | `"https://www.embassypages.com/india-consulategeneral-frankfurtammain-germany"` | EmbassyPages link to the mission page. |
| `missions[].mission_name` | string | `"Consulate General of India in Frankfurt am Main, Germany"` | Name of the diplomatic mission. |
| `missions[].office_hours` | string or null | `"Monday: 09.30-12.30; Tuesday: 09.30-12.30; Wednesday: 09.30-12.30; Thursday: 09.30-12.30; Friday: 09.30-12.30; Saturday` | Office hours shown, or null. |
| `missions[].website_link` | string or null |  | Official website link shown, or null. |
| `missions[].street_address` | string or null | `"17, Rue Mansoura, El Menzah IV"` | Street address shown for the mission, or null. |
| `missions[].head_of_mission` | string or null | `"Mr Ashok Kumar, Consul General"` | Head of mission shown, or null. |

**Example input**

```json
{
  "embassy_of": "India",
  "located_in": "Frankfurt"
}
```

**Example output**

```json
{
  "missions": [
    {
      "city": "Frankfurt am Main",
      "type": "consulate general",
      "email": "consulategeneral@consulateatgeneralifrankfurt.de",
      "phone": "(+49) 69-1530050",
      "page_link": "https://www.embassypages.com/india-consulategeneral-frankfurtammain-germany",
      "mission_name": "Consulate General of India in Frankfurt am Main, Germany",
      "office_hours": "Monday: 09.30-12.30; Tuesday: 09.30-12.30; Wednesday: 09.30-12.30; Thursday: 09.30-12.30; Friday: 09.30-12.30; Saturday: Closed; Sunday: Closed",
      "website_link": null,
      "street_address": "17, Rue Mansoura, El Menzah IV",
      "head_of_mission": "Mr Ashok Kumar, Consul General"
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@embassypages",
  "visibility": "public",
  "operation": "search_embassies",
  "version": 1,
  "input": {
    "embassy_of": "India",
    "located_in": "Frankfurt"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@embassypages\",\n  \"visibility\": \"public\",\n  \"operation\": \"search_embassies\",\n  \"version\": 1,\n  \"input\": {\n    \"embassy_of\": \"India\",\n    \"located_in\": \"Frankfurt\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@embassypages",
  "visibility": "public",
  "operation": "search_embassies",
  "version": 1,
  "input": {
    "embassy_of": "India",
    "located_in": "Frankfurt"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@embassypages","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Find a country’s embassies in another country
- Locate consulates in a city
- Collect mission contact details
- Review listed office hours and addresses
- Identify mission heads

## FAQ

### Is Fous affiliated with EmbassyPages?

No. Fous is not affiliated with EmbassyPages. This workflow reads the public embassypages.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a EmbassyPages account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from embassypages.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### Where are a country’s embassies and consulates located?

Search embassies returns matching missions by country or city.

### What contact details are listed for a mission?

Search embassies returns listed email addresses, phone numbers, street addresses, and office hours.

## Related

- [US State Department API](https://fous.com/workflows/us-state-department.md): US State Department provides current travel advisories, entry rules, embassy and consulate contacts, and published monthly visa bulletin dates; guidance may be incomplete; consular agencies are excluded.
- [Passport Index API](https://fous.com/workflows/passport-index.md): Passport Index provides passport and destination visa information, including entry guidance, permitted stays, rankings and mobility scores; travelers should confirm current entry rules with the embassy.
- [Expedia API](https://fous.com/workflows/expedia.md): Expedia helps travelers find hotels, vacation stays, and travel deals, with hotel prices and flight options for selected destinations and dates; flight listings may be limited.
- [GOV.UK API](https://fous.com/workflows/gov-uk.md): GOV.UK provides summarized current travel advice with linked details, published regional holidays (none for unpublished years), and possible matches on the current UK Sanctions List.
- [Hostelworld API](https://fous.com/workflows/hostelworld.md): Hostelworld accommodation search and booking
- [Britannica API](https://fous.com/workflows/britannica.md): Britannica returns public encyclopedia articles with introductions, quick facts, headings, update dates and images, plus search results with titles, descriptions, links and images when shown.
- [Tripadvisor API](https://fous.com/workflows/tripadvisor.md): Tripadvisor provides traveler-ranked first-page city listings of attractions, restaurants and hotels, plus latest reviews; hotel prices and booking sites depend on supplied stay dates and availability.
- [OpenStreetMap API](https://fous.com/workflows/openstreetmap.md): OpenStreetMap returns place coordinates, address details, nearby readable place information, and ordered place search results from contributor-created data; results reflect mapped features and may be incomplete or differ from landmarks.
- [All Travel workflows](https://fous.com/workflows/category/travel)
