JimmyJohns

Find Jimmy John's restaurants near a coordinate

Returns Jimmy John's restaurants within a radius of a coordinate, nearest first, using Jimmy John's own Olo-backed ordering API (a separate host from the locator this family's sitemap and store endpoints read). Each result carries restaurant_id -- pass it to GET /jimmy-johns/menu for that restaurant's full menu. The upstream's own radius parameter does not narrow its result set, so distance filtering and sorting happen here.

get/jimmy-johns/nearby

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/jimmy-johns/nearby
  • Auth: API key in header x-api-key

Query parameters

latitudenumber required

Search center latitude

longitudenumber required

Search center longitude

radiusinteger

Search radius in miles, 1-100 (default 15)

limitinteger

Maximum restaurants to return, 1-50 (default 10)

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": {
    "count": 10,
    "radius_miles": 15,
    "restaurants": [
      {
        "address": {
          "city": "Columbus",
          "country": "US",
          "postal_code": "47201",
          "region": "IN",
          "street": "2115 W Jonathan Moore Pike"
        },
        "distance_miles": 0.4,
        "latitude": 44.9401301,
        "longitude": -93.1411487,
        "name": "JJ0004",
        "order_url": "https://online.jimmyjohns.com/menu/jj0004/",
        "phone_number": "(651) 222-2221",
        "restaurant_id": 67182,
        "slug": "jj0004",
        "timezone": "America/Chicago"
      }
    ]
  }
}

Changes

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