Skip to main content
POST
/
api
/
swiggy
/
search
/
suggest
/swiggy/search/suggest
curl --request POST \
  --url https://api.anysite.io/api/swiggy/search/suggest \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "lat": 0,
  "lng": 0,
  "keyword": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "text": "<string>",
    "@type": "SwiggySuggestion",
    "type": "<string>",
    "suggestion_type": "<string>",
    "restaurant_id": 123,
    "dish_family_id": "<string>",
    "image": "<string>",
    "url": "<string>"
  }
]

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

keyword
string
required

Partial search query

Minimum string length: 1
Examples:

"piz"

"bir"

count
integer
required

Max number of suggestions to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

text
string
required
@type
string
default:SwiggySuggestion
type
string | null
suggestion_type
string | null
restaurant_id
integer | null
dish_family_id
string | null
image
string | null
url
string | null