> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /grubhub/restaurants

> Get full Grubhub (grubhub.com) restaurant details by numeric id (or restaurant page URL): name, address, location, phone, cuisines, rating, price tier, delivery and pickup fees and time estimates, service fee, sales tax, opening hours and the complete menu with categories, items, prices and price ranges.

**Price:** 10 credits

**💡 AI Hint:** Fetch a single Grubhub (grubhub.com) restaurant by its numeric id (e.g. '4255520') or a full restaurant page URL. Returns id, url, name, alias, brand_name, chain_name, image, cuisines, has_coupons, address (street/city/region/postal_code/country), latitude, longitude, phone, rating, rating_count, price_rating (1-4 dollar tier), premium, is_new, online_ordering_available, pickup_offered, open, available_for_delivery, available_for_pickup, delivery_fee, delivery_minimum, min_delivery_fee, service_fee_percent, service_fee_max, sales_tax, delivery_estimate (+min/max minutes), pickup_estimate (+min/max), time_zone, hours (per day_of_week) and the full menu as categories, each with items (name, description, price, price_min, price_max, popular, available).

**⚠️ Common errors:** 412: Restaurant not found (valid id format but no such restaurant on Grubhub)



## OpenAPI

````yaml /openapi-filtered.json post /api/grubhub/restaurants
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/grubhub/restaurants:
    post:
      tags:
        - /grubhub
      summary: /grubhub/restaurants
      description: >-
        Get full Grubhub (grubhub.com) restaurant details by numeric id (or
        restaurant page URL): name, address, location, phone, cuisines, rating,
        price tier, delivery and pickup fees and time estimates, service fee,
        sales tax, opening hours and the complete menu with categories, items,
        prices and price ranges.


        **Price:** 10 credits


        **💡 AI Hint:** Fetch a single Grubhub (grubhub.com) restaurant by its
        numeric id (e.g. '4255520') or a full restaurant page URL. Returns id,
        url, name, alias, brand_name, chain_name, image, cuisines, has_coupons,
        address (street/city/region/postal_code/country), latitude, longitude,
        phone, rating, rating_count, price_rating (1-4 dollar tier), premium,
        is_new, online_ordering_available, pickup_offered, open,
        available_for_delivery, available_for_pickup, delivery_fee,
        delivery_minimum, min_delivery_fee, service_fee_percent,
        service_fee_max, sales_tax, delivery_estimate (+min/max minutes),
        pickup_estimate (+min/max), time_zone, hours (per day_of_week) and the
        full menu as categories, each with items (name, description, price,
        price_min, price_max, popular, available).


        **⚠️ Common errors:** 412: Restaurant not found (valid id format but no
        such restaurant on Grubhub)
      operationId: __api_grubhub_restaurants_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GrubhubRestaurantsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GrubhubRestaurant'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GrubhubRestaurantsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        restaurant:
          type: string
          minLength: 1
          description: Grubhub restaurant numeric id or a full restaurant page URL
          examples:
            - '4255520'
            - https://www.grubhub.com/restaurant/sunset-bagels/4255520
      type: object
      required:
        - restaurant
    GrubhubRestaurant:
      properties:
        '@type':
          type: string
          default: GrubhubRestaurant
        id:
          type: string
        url:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        alias:
          anyOf:
            - type: string
            - type: 'null'
        brand_name:
          anyOf:
            - type: string
            - type: 'null'
        chain_name:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        cuisines:
          items:
            type: string
          type: array
          default: []
        has_coupons:
          type: boolean
          default: false
        address:
          anyOf:
            - $ref: '#/components/schemas/GrubhubAddress'
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        phone:
          anyOf:
            - type: string
            - type: 'null'
        rating:
          anyOf:
            - type: number
            - type: 'null'
        rating_count:
          anyOf:
            - type: integer
            - type: 'null'
        price_rating:
          anyOf:
            - type: integer
            - type: 'null'
        premium:
          type: boolean
          default: false
        is_new:
          type: boolean
          default: false
        online_ordering_available:
          type: boolean
          default: false
        pickup_offered:
          type: boolean
          default: false
        open:
          type: boolean
          default: false
        available_for_delivery:
          type: boolean
          default: false
        available_for_pickup:
          type: boolean
          default: false
        delivery_fee:
          anyOf:
            - type: number
            - type: 'null'
        delivery_minimum:
          anyOf:
            - type: number
            - type: 'null'
        min_delivery_fee:
          anyOf:
            - type: number
            - type: 'null'
        service_fee_percent:
          anyOf:
            - type: number
            - type: 'null'
        service_fee_max:
          anyOf:
            - type: number
            - type: 'null'
        sales_tax:
          anyOf:
            - type: number
            - type: 'null'
        delivery_estimate:
          anyOf:
            - type: integer
            - type: 'null'
        delivery_estimate_min:
          anyOf:
            - type: integer
            - type: 'null'
        delivery_estimate_max:
          anyOf:
            - type: integer
            - type: 'null'
        pickup_estimate:
          anyOf:
            - type: integer
            - type: 'null'
        pickup_estimate_min:
          anyOf:
            - type: integer
            - type: 'null'
        pickup_estimate_max:
          anyOf:
            - type: integer
            - type: 'null'
        time_zone:
          anyOf:
            - type: string
            - type: 'null'
        merchant_uuid:
          anyOf:
            - type: string
            - type: 'null'
        hours:
          items:
            $ref: '#/components/schemas/GrubhubRestaurantHours'
          type: array
          default: []
        category_count:
          type: integer
          default: 0
        item_count:
          type: integer
          default: 0
        categories:
          items:
            $ref: '#/components/schemas/GrubhubMenuCategory'
          type: array
          default: []
      type: object
      required:
        - id
        - url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    GrubhubAddress:
      properties:
        '@type':
          type: string
          default: GrubhubAddress
        street:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        region:
          anyOf:
            - type: string
            - type: 'null'
        postal_code:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    GrubhubRestaurantHours:
      properties:
        '@type':
          type: string
          default: GrubhubRestaurantHours
        day_of_week:
          type: integer
        time_ranges:
          items:
            type: string
          type: array
          default: []
      type: object
      required:
        - day_of_week
    GrubhubMenuCategory:
      properties:
        '@type':
          type: string
          default: GrubhubMenuCategory
        id:
          type: string
        name:
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
        available:
          type: boolean
          default: true
        items:
          items:
            $ref: '#/components/schemas/GrubhubMenuItem'
          type: array
          default: []
      type: object
      required:
        - id
        - name
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
    GrubhubMenuItem:
      properties:
        '@type':
          type: string
          default: GrubhubMenuItem
        id:
          type: string
        name:
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        price_min:
          anyOf:
            - type: number
            - type: 'null'
        price_max:
          anyOf:
            - type: number
            - type: 'null'
        popular:
          type: boolean
          default: false
        available:
          type: boolean
          default: true
        category_id:
          anyOf:
            - type: string
            - type: 'null'
        category_name:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - name
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````