> ## 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/search

> Find Grubhub (grubhub.com) restaurants delivering to or available for pickup at a location (latitude/longitude) with optional filters: free-text keyword, fulfillment method, sort order, cuisines, price tier, rating, delivery time, offers, lowest fees, Grubhub+, open now, new, national brands, alcohol, order tracking and shared cart. Returns cards with name, rating, price tier, delivery fee, minimum, delivery time, distance and image.

**Price:** 20 credits per 36 results

**💡 AI Hint:** Find Grubhub (grubhub.com) restaurants near a location. Provide latitude and longitude (of the delivery address) and count. Optional: keyword (free-text restaurant or dish name), order_method (delivery/pickup), sort (recommended/distance/fastest/rating/price_low/price_high), cuisines (one or more, they stack), price_max (1-4 dollar tier), top_rated (4 stars and up), under_30_min, offers, free_delivery, grubhub_plus, open_now, new_only, national_brands, alcohol, order_tracking, shared_cart. Each result has id, name, url, brand_name, chain_name, image, cuisines, rating, rating_count, price_rating, coupon_count, delivery_fee, delivery_minimum, delivery_time (+min/max minutes), distance (miles), open, delivery, pickup and is_new. Use the restaurant id with the restaurants endpoint for the full menu.



## OpenAPI

````yaml /openapi-filtered.json post /api/grubhub/restaurants/search
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/search:
    post:
      tags:
        - /grubhub
      summary: /grubhub/restaurants/search
      description: >-
        Find Grubhub (grubhub.com) restaurants delivering to or available for
        pickup at a location (latitude/longitude) with optional filters:
        free-text keyword, fulfillment method, sort order, cuisines, price tier,
        rating, delivery time, offers, lowest fees, Grubhub+, open now, new,
        national brands, alcohol, order tracking and shared cart. Returns cards
        with name, rating, price tier, delivery fee, minimum, delivery time,
        distance and image.


        **Price:** 20 credits per 36 results


        **💡 AI Hint:** Find Grubhub (grubhub.com) restaurants near a location.
        Provide latitude and longitude (of the delivery address) and count.
        Optional: keyword (free-text restaurant or dish name), order_method
        (delivery/pickup), sort
        (recommended/distance/fastest/rating/price_low/price_high), cuisines
        (one or more, they stack), price_max (1-4 dollar tier), top_rated (4
        stars and up), under_30_min, offers, free_delivery, grubhub_plus,
        open_now, new_only, national_brands, alcohol, order_tracking,
        shared_cart. Each result has id, name, url, brand_name, chain_name,
        image, cuisines, rating, rating_count, price_rating, coupon_count,
        delivery_fee, delivery_minimum, delivery_time (+min/max minutes),
        distance (miles), open, delivery, pickup and is_new. Use the restaurant
        id with the restaurants endpoint for the full menu.
      operationId: __api_grubhub_restaurants_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GrubhubSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GrubhubSearchRestaurant'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GrubhubSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        latitude:
          type: number
          maximum: 90
          minimum: -90
          description: Delivery location latitude
        longitude:
          type: number
          maximum: 180
          minimum: -180
          description: Delivery location longitude
        count:
          type: integer
          minimum: 1
          description: Max number of restaurants to return
        keyword:
          anyOf:
            - type: string
            - type: 'null'
          description: Free-text search keyword (restaurant or dish name)
        order_method:
          $ref: '#/components/schemas/GrubhubOrderMethod'
          description: Fulfillment method
          default: delivery
        sort:
          $ref: '#/components/schemas/GrubhubSort'
          description: Sort order
          default: recommended
        cuisines:
          items:
            $ref: '#/components/schemas/GrubhubCuisine'
          type: array
          description: Filter by cuisine (multiple cuisines stack)
          default: []
        price_max:
          anyOf:
            - type: integer
              maximum: 4
              minimum: 1
            - type: 'null'
          description: Only restaurants at or below this dollar price tier (1-4)
        top_rated:
          type: boolean
          description: Only restaurants rated 4 stars and up
          default: false
        under_30_min:
          type: boolean
          description: Only restaurants delivering in 30 minutes or less
          default: false
        offers:
          type: boolean
          description: Only restaurants with offers
          default: false
        free_delivery:
          type: boolean
          description: Only restaurants with the lowest delivery fees
          default: false
        grubhub_plus:
          type: boolean
          description: Only Grubhub+ eligible restaurants
          default: false
        open_now:
          type: boolean
          description: Only restaurants open now
          default: false
        new_only:
          type: boolean
          description: Only restaurants new to Grubhub
          default: false
        national_brands:
          type: boolean
          description: Only national brand / chain restaurants
          default: false
        alcohol:
          type: boolean
          description: Only alcohol stores
          default: false
        order_tracking:
          type: boolean
          description: Only restaurants with order tracking
          default: false
        shared_cart:
          type: boolean
          description: Only restaurants supporting group / shared carts
          default: false
      type: object
      required:
        - latitude
        - longitude
        - count
    GrubhubSearchRestaurant:
      properties:
        '@type':
          type: string
          default: GrubhubSearchRestaurant
        id:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        url:
          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: []
        rating:
          anyOf:
            - type: number
            - type: 'null'
        rating_count:
          anyOf:
            - type: integer
            - type: 'null'
        price_rating:
          anyOf:
            - type: integer
            - type: 'null'
        coupon_count:
          type: integer
          default: 0
        delivery_fee:
          anyOf:
            - type: number
            - type: 'null'
        delivery_minimum:
          anyOf:
            - type: number
            - type: 'null'
        delivery_time:
          anyOf:
            - type: integer
            - type: 'null'
        delivery_time_min:
          anyOf:
            - type: integer
            - type: 'null'
        delivery_time_max:
          anyOf:
            - type: integer
            - type: 'null'
        distance:
          anyOf:
            - type: number
            - type: 'null'
        open:
          type: boolean
          default: false
        delivery:
          type: boolean
          default: false
        pickup:
          type: boolean
          default: false
        is_new:
          type: boolean
          default: false
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    GrubhubOrderMethod:
      type: string
      enum:
        - delivery
        - pickup
    GrubhubSort:
      type: string
      enum:
        - recommended
        - distance
        - fastest
        - rating
        - price_low
        - price_high
    GrubhubCuisine:
      type: string
      enum:
        - Alcohol
        - American
        - Asian
        - BBQ
        - Bagels
        - Bakery
        - Bodegas
        - Bubble Tea
        - Burgers
        - Chicken
        - Chinese
        - Coffee
        - Dessert
        - Fast Food
        - Gluten-Free
        - Hawaiian
        - Healthy
        - Indian
        - Italian
        - Japanese
        - Kids Menu
        - Korean
        - Local Gems
        - Mediterranean
        - Mexican
        - Noodles
        - Pizza
        - Sandwiches
        - Seafood
        - Shakes
        - Smoothies
        - Soup
        - Steak
        - Sushi
        - Thai
        - Vegan
        - Vegetarian
        - Vietnamese
    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
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````