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

> Get full Swiggy restaurant details by numeric id or restaurant URL (latitude/longitude in India): name, cuisines, rating, cost for two, full address, geo coordinates, phone, delivery time, opening hours, FSSAI license, offers and serviceability.

**Price:** 1 credit

**💡 AI Hint:** Fetch a single Swiggy restaurant by numeric id (e.g. '966182') or a full restaurant URL (lat/lng in India required). Returns id, name, cuisines, rating, rating_count, cost_for_two, address, locality, city, latitude/longitude, phone, delivery_time, opening_hours, license_no, offers, restaurant_category and serviceability.

**⚠️ Common errors:** 412: Restaurant not found (valid id but no restaurant at this location)



## OpenAPI

````yaml /openapi-filtered.json post /api/swiggy/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/swiggy/restaurants:
    post:
      tags:
        - /swiggy
      summary: /swiggy/restaurants
      description: >-
        Get full Swiggy restaurant details by numeric id or restaurant URL
        (latitude/longitude in India): name, cuisines, rating, cost for two,
        full address, geo coordinates, phone, delivery time, opening hours,
        FSSAI license, offers and serviceability.


        **Price:** 1 credit


        **💡 AI Hint:** Fetch a single Swiggy restaurant by numeric id (e.g.
        '966182') or a full restaurant URL (lat/lng in India required). Returns
        id, name, cuisines, rating, rating_count, cost_for_two, address,
        locality, city, latitude/longitude, phone, delivery_time, opening_hours,
        license_no, offers, restaurant_category and serviceability.


        **⚠️ Common errors:** 412: Restaurant not found (valid id but no
        restaurant at this location)
      operationId: __api_swiggy_restaurants_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SwiggyRestaurantsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SwiggyRestaurant'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SwiggyRestaurantsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        restaurant:
          type: string
          minLength: 1
          description: Restaurant numeric id or a full restaurant URL
          examples:
            - '966182'
            - >-
              https://www.swiggy.com/city/bangalore/blue-tokai-coffee-roasters-rest966182
        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
      type: object
      required:
        - restaurant
        - lat
        - lng
    SwiggyRestaurant:
      properties:
        '@type':
          type: string
          default: SwiggyRestaurant
        id:
          type: integer
        url:
          type: string
        name:
          type: string
        alias:
          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'
        cost_for_two:
          anyOf:
            - type: number
            - type: 'null'
        cost_for_two_text:
          anyOf:
            - type: string
            - type: 'null'
        currency:
          type: string
          default: INR
        address:
          anyOf:
            - type: string
            - type: 'null'
        locality:
          anyOf:
            - type: string
            - type: 'null'
        area:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        state:
          anyOf:
            - type: string
            - type: 'null'
        postal_code:
          anyOf:
            - type: string
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        phone:
          anyOf:
            - type: string
            - type: 'null'
        delivery_time:
          anyOf:
            - type: integer
            - type: 'null'
        min_delivery_time:
          anyOf:
            - type: integer
            - type: 'null'
        max_delivery_time:
          anyOf:
            - type: integer
            - type: 'null'
        delivery_time_text:
          anyOf:
            - type: string
            - type: 'null'
        distance_km:
          anyOf:
            - type: number
            - type: 'null'
        serviceability:
          anyOf:
            - type: string
            - type: 'null'
        is_open:
          type: boolean
          default: false
        next_close_time:
          anyOf:
            - type: string
            - type: 'null'
        parent_id:
          anyOf:
            - type: string
            - type: 'null'
        restaurant_category:
          anyOf:
            - type: string
            - type: 'null'
        is_multi_outlet:
          type: boolean
          default: false
        has_bestseller_items:
          type: boolean
          default: false
        license_no:
          anyOf:
            - type: string
            - type: 'null'
        timing_status:
          anyOf:
            - type: string
            - type: 'null'
        timing_message:
          anyOf:
            - type: string
            - type: 'null'
        opening_hours:
          items:
            $ref: '#/components/schemas/SwiggyOpeningHours'
          type: array
          default: []
        offers:
          items:
            type: string
          type: array
          default: []
      type: object
      required:
        - id
        - url
        - name
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    SwiggyOpeningHours:
      properties:
        '@type':
          type: string
          default: SwiggyOpeningHours
        day:
          type: string
        hours:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - day
    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

````