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

> Get the restaurants in a Swiggy cuisine/dish collection by collection id at a location (latitude/longitude in India). Returns restaurant cards with name, rating, cuisines, cost for two, delivery time and offers.

**Price:** 1 credit

**💡 AI Hint:** Get restaurants inside a Swiggy collection (e.g. Biryani=83639, Dosa=80424) at a location (lat/lng in India). Each result has id, url, name, image, rating, cuisines, cost_for_two, delivery_time, locality and offer.

**⚠️ Common errors:** 412: Collection not found or empty at this location



## OpenAPI

````yaml /openapi-filtered.json post /api/swiggy/collections
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/collections:
    post:
      tags:
        - /swiggy
      summary: /swiggy/collections
      description: >-
        Get the restaurants in a Swiggy cuisine/dish collection by collection id
        at a location (latitude/longitude in India). Returns restaurant cards
        with name, rating, cuisines, cost for two, delivery time and offers.


        **Price:** 1 credit


        **💡 AI Hint:** Get restaurants inside a Swiggy collection (e.g.
        Biryani=83639, Dosa=80424) at a location (lat/lng in India). Each result
        has id, url, name, image, rating, cuisines, cost_for_two, delivery_time,
        locality and offer.


        **⚠️ Common errors:** 412: Collection not found or empty at this
        location
      operationId: __api_swiggy_collections_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SwiggyCollectionsPayload'
      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:
    SwiggyCollectionsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        collection_id:
          type: integer
          exclusiveMinimum: 0
          description: Swiggy collection id
          examples:
            - 83639
            - 80424
        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
        count:
          type: integer
          minimum: 1
          description: Max number of restaurants to return
      type: object
      required:
        - collection_id
        - 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
    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

````