# Tock — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search for restaurants on Tock and discover detailed information including their accolades, FAQs, menus, and contact details all in one place. Find the perfect dining experience with comprehensive restaurant profiles and booking options.

**Category:** Food & Dining | **Website:** [tock.com/](https://tock.com/) | **Docs:** [parse.bot/marketplace/6fb53a20-a655-4ab4-88d1-752c128eb00d/tock-com-api](https://parse.bot/marketplace/6fb53a20-a655-4ab4-88d1-752c128eb00d/tock-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-tock-com-api-6fb53a20/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_restaurant_details

Get detailed information about a specific restaurant on Tock. Returns structured data including name, cuisine, price range, full address, contact info (email, phone), accolades (Michelin stars, James Beard awards, Tock 10), FAQs, and social links. The slug comes from search_restaurants results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Restaurant URL slug from search_restaurants results (e.g. 'alinea', 'oriolechicago', 'topolobampo') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tock-com-api-6fb53a20/get_restaurant_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### search_restaurants

Search for restaurants on Tock by query keyword and city. Returns restaurant listings from the city browse page. Results include name, slug, URL, and image. The query filters by keyword match against the city's restaurant carousel; an empty query returns all featured restaurants. Pagination is not supported — the limit parameter caps the returned array.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city` | string | No | City slug for browsing restaurants (e.g. 'chicago', 'new-york', 'san-francisco') |
| `limit` | integer | No | Maximum number of restaurant results to return |
| `query` | string | No | Search keyword to filter restaurants (e.g. 'italian', 'sushi', 'steakhouse'). Empty string returns all featured restaurants. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tock-com-api-6fb53a20/search_restaurants \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"city":"<string>","limit":"<integer>","query":"<string>"}'
```
