Search Sulekha businesses
Businesses and professionals listed on Sulekha (India) for a service category in a city or one of its areas, in the site's order. Each listing has the id, name, link, image, address with area and postal code, categories, about text, rating and review count, Sulekha score, years in business, premium, verified and claimed flags, open-now status, response time and the listing's call number. 20 on the first page, 10 on later ones.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
categoryrequired | string | Service category as in the site's URLs (sulekha.com/<category>/<city>), e.g. plumbers, packers-and-movers, ac-repair-services, interior-designers, electricians. Example: plumbers |
cityrequired | string | City as in the site's URLs, e.g. bangalore, chennai, mumbai, delhi, hyderabad, pune. Example: bangalore |
area | string | Area within the city as in the site's URLs (e.g. koramangala). |
page | string | Results page (1-based). Pass next_page back; it is null on the last page. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/sulekha/v1/search?category=plumbers&city=bangalore" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/sulekha/v1/search",
params={"category": "plumbers", "city": "bangalore"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/sulekha/v1/search");
url.searchParams.set("category", "plumbers");
url.searchParams.set("city", "bangalore");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).