---
title: "Find Dunkin stores near a coordinate, nearest first"
method: GET
path: "/dunkin/nearby"
tags: ["Dunkin"]
---

# Find Dunkin stores near a coordinate, nearest first

`GET /dunkin/nearby`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/dunkin/nearby`
- Auth: API key in header `x-api-key`

Returns Dunkin restaurants within a radius of a latitude/longitude, ordered nearest first, each with its distance in miles and kilometres, full address, phone, coordinates, the published week of hours, whether it's permanently closed, amenities, payment methods, pickup/delivery service types, which third-party delivery platforms are active, its Google Place id, timezone, and website/menu/order URLs. This is the proximity search the directory browse cannot do -- GET /dunkin/directory walks a state to city to store tree, which requires knowing the administrative path in advance. Each result carries the store id as `path`, which GET /dunkin/store also takes, so the two chain directly. `total_in_radius` reports how many stores fall inside the radius overall, which is usually far more than one page; use `offset` to walk it. A coordinate with no Dunkin nearby returns an empty list rather than an error.

## Query parameters

- `latitude` number, required
- `longitude` number, required
- `radius` integer
- `limit` integer
- `offset` integer

## Headers

- `x-api-key` string, required

## Response `200`

OK

- DunkinNearbyResponseDoc
  - `code` integer: Code is the HTTP status code or a custom code used to indicate the result of the request @example 200
  - `data` DunkinNearbyResponse
    - `count` integer
    - `fetched_at` string
    - `radius` integer
    - `source_url` string
    - `stores` DunkinNearbyStore[]
      - `address` DunkinStoreAddress
        - `city` string
        - `country` string
        - `line1` string
        - `line2` string
        - `postal_code` string
        - `region` string
      - `amenities` string[]
      - `closed` boolean
      - `delivery_platforms` string[]
      - `distance_kilometers` number
      - `distance_miles` number: DistanceMiles is measured from the requested coordinate.
      - `faq` DunkinStoreFAQ[]: FAQ is Yext's own auto-generated per-store question/answer content.
        - `answer` string
        - `question` string
      - `features` string[]
      - `google_place_id` string
      - `hours` DunkinStoreHours[]
        - `closed` boolean: Closed is true when Dunkin publishes the day with no open interval.
        - `closes` string
        - `day_of_week` string
        - `opens` string
      - `latitude` number
      - `longitude` number
      - `menu_url` string
      - `name` string
      - `order_url` string
      - `path` string: Path is the store id -- pass it to /dunkin/store to chain directly.
      - `payment_options` string[]
      - `phone_number` string
      - `photos` DunkinStorePhoto[]: Photos is this store's photo gallery.
        - `description` string
        - `height` integer
        - `url` string
        - `width` integer
      - `pickup_delivery_services` string[]
      - `store_id` string
      - `timezone` string
      - `website_url` string
    - `total_in_radius` integer: TotalInRadius is how many stores fall inside the radius overall, which is usually far more than one page. Use it with `offset` to page.
  - `msg` unknown

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
