Skip to main content
POST
/
api
/
swiggy
/
restaurants
/
search
/swiggy/restaurants/search
curl --request POST \
  --url https://api.anysite.io/api/swiggy/restaurants/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "lat": 0,
  "lng": 0,
  "count": 2,
  "timeout": 300,
  "keyword": "biryani",
  "sort": "relevance",
  "rating_4_plus": false,
  "fast_delivery": false,
  "has_offers": false
}
'
[
  {
    "id": 123,
    "url": "<string>",
    "name": "<string>",
    "@type": "SwiggyRestaurantCard",
    "image": "<string>",
    "locality": "<string>",
    "area": "<string>",
    "cuisines": [],
    "rating": 123,
    "rating_count": 123,
    "cost_for_two": 123,
    "cost_for_two_text": "<string>",
    "currency": "INR",
    "delivery_time": 123,
    "delivery_time_text": "<string>",
    "distance_km": 123,
    "is_open": false,
    "next_close_time": "<string>",
    "parent_id": "<string>",
    "is_promoted": false,
    "offer": "<string>",
    "google_rating": 123,
    "google_rating_count": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
lat
number
required

Latitude (India)

Required range: -90 <= x <= 90
Example:

12.9351929

lng
number
required

Longitude (India)

Required range: -180 <= x <= 180
Example:

77.6244807

count
integer
required

Max number of restaurants to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
keyword
string | null

Optional restaurant/cuisine keyword

Example:

"biryani"

sort
enum<string>
default:relevance

Sort order

Available options:
relevance,
rating,
delivery_time,
cost_low_to_high,
cost_high_to_low
rating_4_plus
boolean
default:false

Only restaurants rated 4.0+

fast_delivery
boolean
default:false

Only restaurants delivering in ~30 min or less

has_offers
boolean
default:false

Only restaurants currently running an offer

Response

Successful Response

id
integer
required
url
string
required
name
string
required
@type
string
default:SwiggyRestaurantCard
image
string | null
locality
string | null
area
string | null
cuisines
string[]
rating
number | null
rating_count
integer | null
cost_for_two
number | null
cost_for_two_text
string | null
currency
string
default:INR
delivery_time
integer | null
delivery_time_text
string | null
distance_km
number | null
is_open
boolean
default:false
next_close_time
string | null
parent_id
string | null
is_promoted
boolean
default:false
offer
string | null
google_rating
number | null
google_rating_count
integer | null