Subway

Get one Subway store's detail

Returns one Subway store's detail: address, coordinates, phone (display and E.164), opening hours, and the locator's own entity profile -- IANA timezone, Google Place ID and CID for joining to Google Maps data, franchise number, price range, published services and meal types, and explicit online-ordering/catering/drive-through flags. Boolean flags are omitted entirely when the locator does not publish them, so an absent flag is not a false one. open reflects the location's published status (a store flagged closed long-term), which is distinct from whether it is currently within its opening hours. store_id is the value GET /subway/menu and GET /subway/available-times take. Paths come from a GET /subway/sitemap entry.

get/subway/store

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/subway/store
  • Auth: API key in header x-api-key

Query parameters

pathstring required

Store path from a /subway/sitemap entry

Headers

x-api-keystring required

API key required

Response

OK

codeinteger

Code is the HTTP status code or a custom code used to indicate the result of the request @example 200

msgunknown

Example response

{
  "data": {
    "address": {
      "city": "New York",
      "country": "US",
      "postal_code": "10119",
      "region": "NY",
      "street": "1 Penn Plaza"
    },
    "franchise_number": "75376",
    "google_cid": "7950893118019215099",
    "google_place_id": "ChIJcXhciqhZwokR-x6iSio_V24",
    "hours": [
      {
        "closes": "23:00",
        "day_of_week": "Monday",
        "opens": "09:00",
        "segments": [
          {
            "closes": "23:00",
            "opens": "09:00"
          }
        ]
      }
    ],
    "latitude": 40.7517026,
    "longitude": -73.9925826,
    "menu_url": "https://order.subway.com/en-us/restaurant/75376-0/menu/",
    "name": "Subway",
    "open": true,
    "phone_e164": "+12122440101",
    "phone_number": "(212) 244-0101",
    "price_range": "$",
    "store_id": "75376-0",
    "timezone": "America/New_York"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.