Restaurants
Subway logo

Subway API

subway.com

Subway restaurant locations, menu, and deals

Actions
5
Category
Restaurants
Login
Not required
Output
JSON

Call the Subway API

Submit a task, then poll the job until it settles. This example runs act_subway_com_deals_promotions.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_subway_com_deals_promotions",
    "params": {
      "location_id": "44671-0"
    }
  }'

5 actions on subway.com

Read

  • Deals Promotions

    act_subway_com_deals_promotionsread1 credit / call

    List current Subway deals and promotions for a restaurant location from menu category tiles (Sub of the Day, Meal of the Day, badge/promo collections)

    location_id
    string · required
  • Location Detail

    act_subway_com_location_detailread1 credit / call

    Get a Subway restaurant location by id — address, geo, operating/breakfast hours, phone, open status, and attributes

    location_id
    string · required
    locale
    string
  • Location Search

    act_subway_com_location_searchread1 credit / call

    Find Subway restaurant locations by zip/city/address or latitude/longitude, returning location id, address, geo, hours, phone, and open status

    search_text
    string
    latitude
    number
    longitude
    number
    page_size
    integer
    locale
    string
  • Menu Categories

    act_subway_com_menu_categoriesread1 credit / call

    List Subway restaurant menu categories (id, slug, name, image, badges) for a location from the restaurant menu page

    location_id
    string · required
  • Menu Item Detail

    act_subway_com_menu_item_detailread1 credit / call

    Get Subway menu item price and nutrition (calories, added sugar) for a product at a restaurant location from the category page

    location_id
    string · required
    category_slug
    string · required
    product_slug
    string · required
    build_name
    string

Subway API questions

Is there an API for Subway?
Subway does not offer a public data API for this, but Anakin Wire provides 5 maintained endpoints for subway.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Subway data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when subway.com changes its markup, Anakin updates the action.
Do I need a Subway account?
No. Every Subway action listed here runs anonymously — no account and no credentials required.
What does the Subway API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Restaurants APIs

All Restaurants sites