# McDonald's API

> McDonald's menu nutrition and restaurant locations are available through a workflow and API.

McDonald's returns menu item nutrition, allergens, ingredients, and photos; provide an item name and optionally a country. Search restaurants returns nearby US locations, today's hours, services, and directions; provide a city, address, or ZIP code.

- Page: https://fous.com/workflows/mcdonalds
- Handle: `@mcdonalds`
- Category: [Food](https://fous.com/workflows/category/food)
- Source website: https://mcdonalds.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with McDonald's.

## Methods

### Get menu item nutrition

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

Get a menu item's nutrition, allergens, ingredients and photo by name on McDonald's country site. Supports the United States, United Kingdom and Canada; serving size is one item or portion where no weight is published. UK sodium is calculated from the site's salt value.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `item` | string | yes | `"Medium French Fries"` | Menu item name, for example Big Mac or Medium French Fries. |
| `country` | string | no | `"United Kingdom"` | Country name or two-letter code, for example United Kingdom or GB. Defaults to United States. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "item"
  ],
  "properties": {
    "item": {
      "type": "string",
      "description": "Menu item name, for example Big Mac or Medium French Fries.",
      "examples": [
        "Medium French Fries",
        "Big Mac"
      ]
    },
    "country": {
      "type": "string",
      "default": "United States",
      "description": "Country name or two-letter code, for example United Kingdom or GB. Defaults to United States.",
      "examples": [
        "United Kingdom",
        "Canada"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "item": "Medium French Fries"
    },
    {
      "item": "Big Mac"
    },
    {
      "item": "Big Mac",
      "country": "United Kingdom"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `salt_g` | number or null | `2` |  |
| `country` | string | `"United States"` |  |
| `calories` | number or null | `320` |  |
| `sugars_g` | number or null | `0` |  |
| `allergens` | array |  |  |
| `energy_kj` | number or null | `1320` |  |
| `item_name` | string | `"Medium French Fries"` |  |
| `protein_g` | number or null | `5` |  |
| `sodium_mg` | number or null | `260` |  |
| `photo_link` | string or null | `"https://s7d1.scene7.com/is/image/mcdonalds/DC_202002_8932_MediumFries_1564x1564-1"` |  |
| `ingredients` | string or null | `"Ingredients: Potatoes, Vegetable Oil (canola Oil, Corn Oil, Soybean Oil, Hydrogenated Soybean Oil, Natural Beef Flavor ` |  |
| `total_fat_g` | number or null | `15` |  |
| `serving_size` | string or null | `"1 item"` |  |
| `item_page_link` | string | `"https://www.mcdonalds.com/us/en-us/product/medium-french-fries.html"` |  |
| `carbohydrates_g` | number or null | `43` |  |
| `saturated_fat_g` | number or null | `2` |  |

**Example input**

```json
{
  "item": "Medium French Fries"
}
```

**Example output**

```json
{
  "salt_g": null,
  "country": "United States",
  "calories": 320,
  "sugars_g": 0,
  "allergens": [
    "Milk",
    "Wheat"
  ],
  "energy_kj": 1320,
  "item_name": "Medium French Fries",
  "protein_g": 5,
  "sodium_mg": 260,
  "photo_link": "https://s7d1.scene7.com/is/image/mcdonalds/DC_202002_8932_MediumFries_1564x1564-1",
  "ingredients": "Ingredients: Potatoes, Vegetable Oil (canola Oil, Corn Oil, Soybean Oil, Hydrogenated Soybean Oil, Natural Beef Flavor [wheat And Milk Derivatives]*), Dextrose, Sodium Acid Pyrophosphate (maintain Col…",
  "total_fat_g": 15,
  "serving_size": "1 item",
  "item_page_link": "https://www.mcdonalds.com/us/en-us/product/medium-french-fries.html",
  "carbohydrates_g": 43,
  "saturated_fat_g": 2
}
```

### Search restaurants

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

Find McDonald’s restaurants near a US city, address, or ZIP code, nearest first, with today's hours, services and directions. Searches within 50 miles; open-now status follows the listed hours and may not reflect unexpected closures.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `location` | string | yes | `"10001"` | US city, street address, or ZIP code, for example Chicago, IL. |
| `max_results` | integer | no | `5` | Maximum restaurants to return, for example 10. |
| `open_now_only` | boolean | no | `true` | Only show restaurants open now, for example false. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "location"
  ],
  "properties": {
    "location": {
      "type": "string",
      "description": "US city, street address, or ZIP code, for example Chicago, IL.",
      "examples": [
        "10001",
        "Chicago, IL"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 10,
      "maximum": 30,
      "minimum": 1,
      "description": "Maximum restaurants to return, for example 10.",
      "x-fous-developer": true,
      "examples": [
        5,
        10
      ]
    },
    "open_now_only": {
      "type": "boolean",
      "default": false,
      "description": "Only show restaurants open now, for example false.",
      "examples": [
        true,
        false
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "location": "10001",
      "max_results": 5,
      "open_now_only": true
    },
    {
      "location": "Chicago, IL",
      "max_results": 10,
      "open_now_only": false
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `restaurants` | array |  |  |
| `restaurants[].address` | string | `"490 8th Ave, Manhattan, NY 10001"` |  |
| `restaurants[].latitude` | number | `40.75251` |  |
| `restaurants[].open_now` | boolean | `true` |  |
| `restaurants[].page_url` | string | `"https://www.mcdonalds.com/us/en-us/location/ny/manhattan/490-8th-ave/3078.html"` |  |
| `restaurants[].services` | array |  |  |
| `restaurants[].longitude` | number | `-73.993004` |  |
| `restaurants[].phone_number` | string or null | `"(917) 965-2018"` |  |
| `restaurants[].store_number` | string or null | `"3078"` |  |
| `restaurants[].directions_url` | string | `"https://www.google.com/maps/dir/?api=1&destination=40.75251%2C-73.993004&travelmode=driving"` |  |
| `restaurants[].distance_miles` | number | `0.34` |  |
| `restaurants[].todays_opening_hours` | string or null | `"Open 24 hours"` |  |
| `restaurants[].todays_drive_thru_hours` | string or null | `"Open 24 hours"` |  |

**Example input**

```json
{
  "location": "10001",
  "max_results": 5,
  "open_now_only": true
}
```

**Example output**

```json
{
  "restaurants": [
    {
      "address": "490 8th Ave, Manhattan, NY 10001",
      "latitude": 40.75251,
      "open_now": true,
      "page_url": "https://www.mcdonalds.com/us/en-us/location/ny/manhattan/490-8th-ave/3078.html",
      "services": [
        "Gift Cards",
        "Indoor Dining"
      ],
      "longitude": -73.993004,
      "phone_number": "(917) 965-2018",
      "store_number": "3078",
      "directions_url": "https://www.google.com/maps/dir/?api=1&destination=40.75251%2C-73.993004&travelmode=driving",
      "distance_miles": 0.34,
      "todays_opening_hours": "Open 24 hours",
      "todays_drive_thru_hours": "Open 24 hours"
    },
    {
      "address": "429 7th Ave, New York, NY 10001",
      "latitude": 40.750544,
      "open_now": true,
      "page_url": "https://www.mcdonalds.com/us/en-us/location/ny/new-york/429-7th-ave/2276.html",
      "services": [
        "Gift Cards",
        "Indoor Dining"
      ],
      "longitude": -73.990724,
      "phone_number": "(212) 736-7890",
      "store_number": "2276",
      "directions_url": "https://www.google.com/maps/dir/?api=1&destination=40.750544%2C-73.990724&travelmode=driving",
      "distance_miles": 0.35,
      "todays_opening_hours": "Open 24 hours",
      "todays_drive_thru_hours": "Open 24 hours"
    }
  ]
}
```

## 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": "@mcdonalds",
  "visibility": "public",
  "operation": "get_menu_item_nutrition",
  "version": 1,
  "input": {
    "item": "Medium French Fries"
  },
  "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\": \"@mcdonalds\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_menu_item_nutrition\",\n  \"version\": 1,\n  \"input\": {\n    \"item\": \"Medium French Fries\"\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": "@mcdonalds",
  "visibility": "public",
  "operation": "get_menu_item_nutrition",
  "version": 1,
  "input": {
    "item": "Medium French Fries"
  },
  "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":"@mcdonalds","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

- Compare calories and nutrients across menu items
- Check menu item allergens and ingredients
- Find nearby restaurants and compare listed services
- Check restaurant hours and directions before visiting

## FAQ

### Is Fous affiliated with McDonald's?

No. Fous is not affiliated with McDonald's. This workflow reads the public mcdonalds.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 McDonald's account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from mcdonalds.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.

### How many calories are in a menu item?

Use Get menu item nutrition with the item name and optionally a country.

### Which allergens are listed for a menu item?

Get menu item nutrition returns listed allergens and ingredients for a named item.

### Where are restaurants near a US location?

Search restaurants finds locations near a US city, address, or ZIP code.

## Related

- [Starbucks API](https://fous.com/workflows/starbucks.md): Starbucks provides menu drinks and food with nutrition, ingredients, allergens, and photos, plus nearby cafés ranked by distance with current open status, local hours, and amenities.
- [DoorDash API](https://fous.com/workflows/doordash.md): DoorDash lists nearby restaurants and menus, prices, ratings, delivery fees, and estimated times; offers, availability, fees, and times can change.
- [Uber Eats API](https://fous.com/workflows/uber-eats.md): Uber Eats shows restaurants and delivery options, with menus, prices, ratings, and delivery details; fees may reflect guest promotions and rating counts may be rounded.
- [Google Maps API](https://fous.com/workflows/google-maps.md): Google Maps returns nearby places, public place details, up to 100 public reviews, and up to three routes; transit options vary by departure time.
- [Yelp API](https://fous.com/workflows/yelp.md): Yelp returns local business matches, public profiles, ratings and up to 60 publicly shown reviews; matches are unsponsored and Yelp-ordered, but later results may lack contact or location details.
- [Michelin Guide API](https://fous.com/workflows/michelin-guide.md): Restaurant selections, distinctions and reviews from the Michelin Guide.
- [Costco API](https://fous.com/workflows/costco.md): Costco returns US product prices/details and warehouse hours/services/gas prices; delivery affects availability, member prices may be hidden, and posted gas and holiday hours may differ.
- [Home Depot API](https://fous.com/workflows/home-depot.md): Home Depot offers home improvement products with prices, ratings, availability, and delivery options, plus nearby stores’ distances, regular hours, and services; holiday hours may differ and coverage varies.
- [All Food workflows](https://fous.com/workflows/category/food)
