> ## 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.

# /swiggy/restaurants/search

> Search Swiggy restaurants near a location (latitude/longitude in India), optionally by keyword. Filter by rating, fast delivery and offers; sort by relevance, rating, delivery time or cost for two. Returns restaurant cards with name, rating, cuisines, cost for two, delivery time, locality, offers and Google rating.

**Price:** 1 credit

**💡 AI Hint:** Search Swiggy restaurants by location (lat/lng in India). Pass an optional keyword to search by name/cuisine, otherwise returns restaurants near the location. Filters: rating_4_plus, fast_delivery, has_offers. Sort: relevance, rating, delivery_time, cost_low_to_high, cost_high_to_low. Each result has id, url, name, image, rating, rating_count, cuisines, cost_for_two, delivery_time, distance_km, locality, area, is_open, offer and google_rating.



## OpenAPI

````yaml /openapi-filtered.json post /api/swiggy/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/swiggy/restaurants/search:
    post:
      tags:
        - /swiggy
      summary: /swiggy/restaurants/search
      description: >-
        Search Swiggy restaurants near a location (latitude/longitude in India),
        optionally by keyword. Filter by rating, fast delivery and offers; sort
        by relevance, rating, delivery time or cost for two. Returns restaurant
        cards with name, rating, cuisines, cost for two, delivery time,
        locality, offers and Google rating.


        **Price:** 1 credit


        **💡 AI Hint:** Search Swiggy restaurants by location (lat/lng in
        India). Pass an optional keyword to search by name/cuisine, otherwise
        returns restaurants near the location. Filters: rating_4_plus,
        fast_delivery, has_offers. Sort: relevance, rating, delivery_time,
        cost_low_to_high, cost_high_to_low. Each result has id, url, name,
        image, rating, rating_count, cuisines, cost_for_two, delivery_time,
        distance_km, locality, area, is_open, offer and google_rating.
      operationId: __api_swiggy_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/SwiggyRestaurantsSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SwiggyRestaurantCard'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SwiggyRestaurantsSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        lat:
          type: number
          maximum: 90
          minimum: -90
          description: Latitude (India)
          examples:
            - 12.9351929
        lng:
          type: number
          maximum: 180
          minimum: -180
          description: Longitude (India)
          examples:
            - 77.6244807
        keyword:
          anyOf:
            - type: string
            - type: 'null'
          description: Optional restaurant/cuisine keyword
          examples:
            - biryani
            - pizza
        sort:
          $ref: '#/components/schemas/SwiggySort'
          description: Sort order
          default: relevance
        rating_4_plus:
          type: boolean
          description: Only restaurants rated 4.0+
          default: false
        fast_delivery:
          type: boolean
          description: Only restaurants delivering in ~30 min or less
          default: false
        has_offers:
          type: boolean
          description: Only restaurants currently running an offer
          default: false
        count:
          type: integer
          minimum: 1
          description: Max number of restaurants to return
      type: object
      required:
        - lat
        - lng
        - count
    SwiggyRestaurantCard:
      properties:
        '@type':
          type: string
          default: SwiggyRestaurantCard
        id:
          type: integer
        url:
          type: string
        name:
          type: string
        image:
          anyOf:
            - type: string
            - type: 'null'
        locality:
          anyOf:
            - type: string
            - type: 'null'
        area:
          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'
        cost_for_two:
          anyOf:
            - type: number
            - type: 'null'
        cost_for_two_text:
          anyOf:
            - type: string
            - type: 'null'
        currency:
          type: string
          default: INR
        delivery_time:
          anyOf:
            - type: integer
            - type: 'null'
        delivery_time_text:
          anyOf:
            - type: string
            - type: 'null'
        distance_km:
          anyOf:
            - type: number
            - type: 'null'
        is_open:
          type: boolean
          default: false
        next_close_time:
          anyOf:
            - type: string
            - type: 'null'
        parent_id:
          anyOf:
            - type: string
            - type: 'null'
        is_promoted:
          type: boolean
          default: false
        offer:
          anyOf:
            - type: string
            - type: 'null'
        google_rating:
          anyOf:
            - type: number
            - type: 'null'
        google_rating_count:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - id
        - url
        - name
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    SwiggySort:
      type: string
      enum:
        - relevance
        - rating
        - delivery_time
        - cost_low_to_high
        - cost_high_to_low
    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

````