grubhub_timepicker
Retrieve a restaurant's future Grubhub delivery or pickup time slots up to 7 days ahead, with timestamps and UTC offsets, to build an order scheduling picker.
Instructions
Get one Grubhub restaurant's future orderable time-slot calendar. Returns every future delivery or pickup time slot Grubhub will accept an order for, up to 7 days ahead. This is what powers the site's own "schedule my order" picker: /grubhub/availability tells you whether a restaurant is orderable right now plus one "next" time, while this returns the full future slot calendar a caller would need to build an actual date-and-time picker. Slots are grouped by date and given as full timestamps carrying the restaurant's real UTC offset for that instant, so a caller never has to resolve daylight-saving transitions themselves. Requesting location_mode=DELIVERY returns delivery slots only; PICKUP returns pickup slots only -- the upstream only computes one side per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days ahead to fetch, 1-7 (default 7) | |
| latitude | Yes | Diner location latitude | |
| longitude | Yes | Diner location longitude | |
| location_mode | Yes | Which slot grid to return | |
| restaurant_id | Yes | Grubhub restaurant id |