Booksy businesses for a category in a city
Barbers, salons and other businesses on Booksy for a category, in a city or the whole country: id, name, link, categories, address, city, coordinates, regions, distance, rating, review count, website and social links, logo, cover and photos, promoted and recommended flags, payment options, amenities, top services and every service with variants (duration, price, deposit, promotion); plus the treatments offered there with business counts. Sort by relevance (default), rating or distance with sort. For one treatment (e.g. beard-shave) pass its slug from treatments as category. total is the number of businesses. 20 per page; pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
category | string | Category slug, e.g. barber-shop, hair-salon, nail-salon, skin-care, massage, brows-lashes, makeup-artist, tattoo-shops. Example: barber-shop |
location | string | The site's <id>_<city> location key as in its search links, e.g. 18229_chicago (leave out for the whole country). Example: 18229_chicago |
locale | string | Site locale (default en-us), e.g. en-us, en-gb, pl-pl, es-es. Example: en-us |
sort | relevance | rating | distance | relevance (default), rating or distance. |
url | string | A booksy.com/<locale>/s/<category>/<id>_<city> page instead of category and location. |
page | integer | Page number (default 1). Example: 1 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/booksy/v1/search?category=barber-shop" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/booksy/v1/search",
params={"category": "barber-shop"},
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/booksy/v1/search");
url.searchParams.set("category", "barber-shop");
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).