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

> Swiggy search autocomplete: get dish and restaurant suggestions for a partial query at a location (latitude/longitude in India). Each suggestion has text, type (DISH/RESTAURANT), the resolved restaurant_id / dish_family_id, image and deeplink.

**Price:** 1 credit

**💡 AI Hint:** Autocomplete Swiggy search by partial keyword (e.g. 'piz') at a location (lat/lng in India). Returns suggestions with text, type (DISH/RESTAURANT), suggestion_type (confidence tier), restaurant_id (for RESTAURANT — use with swiggy/restaurants), dish_family_id (for DISH), image and url.



## OpenAPI

````yaml /openapi-filtered.json post /api/swiggy/search/suggest
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/search/suggest:
    post:
      tags:
        - /swiggy
      summary: /swiggy/search/suggest
      description: >-
        Swiggy search autocomplete: get dish and restaurant suggestions for a
        partial query at a location (latitude/longitude in India). Each
        suggestion has text, type (DISH/RESTAURANT), the resolved restaurant_id
        / dish_family_id, image and deeplink.


        **Price:** 1 credit


        **💡 AI Hint:** Autocomplete Swiggy search by partial keyword (e.g.
        'piz') at a location (lat/lng in India). Returns suggestions with text,
        type (DISH/RESTAURANT), suggestion_type (confidence tier), restaurant_id
        (for RESTAURANT — use with swiggy/restaurants), dish_family_id (for
        DISH), image and url.
      operationId: __api_swiggy_search_suggest_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SwiggySearchSuggestPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SwiggySuggestion'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SwiggySearchSuggestPayload:
      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:
          type: string
          minLength: 1
          description: Partial search query
          examples:
            - piz
            - bir
        count:
          type: integer
          minimum: 1
          description: Max number of suggestions to return
      type: object
      required:
        - lat
        - lng
        - keyword
        - count
    SwiggySuggestion:
      properties:
        '@type':
          type: string
          default: SwiggySuggestion
        text:
          type: string
        type:
          anyOf:
            - type: string
            - type: 'null'
        suggestion_type:
          anyOf:
            - type: string
            - type: 'null'
        restaurant_id:
          anyOf:
            - type: integer
            - type: 'null'
        dish_family_id:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - text
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    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

````