# Slicelife — 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 pizza restaurants across multiple cities, view detailed restaurant information, and browse complete menus to find exactly what you're looking for. Discover pizza spots in all available cities and get everything you need to make your ordering decision.

**Category:** Food & Dining | **Website:** [slicelife.com/](https://slicelife.com/) | **Docs:** [parse.bot/marketplace/c87ab248-b490-4236-bad2-cfd3bc3bded9/slicelife-com-api](https://parse.bot/marketplace/c87ab248-b490-4236-bad2-cfd3bc3bded9/slicelife-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-slicelife-com-api-c87ab248/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_all_cities

Get a structured list of all states and cities available on Slice, extracted from the sitemap. Returns cities grouped by two-letter state code. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-slicelife-com-api-c87ab248/get_all_cities \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_restaurant_details

Get full details for a single restaurant using its UUID. Returns delivery/pickup availability, estimated times, minimum orders, and contact information. The restaurant_id comes from the id field in search_restaurants results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `restaurant_id` | string | Yes | Restaurant UUID from search_restaurants results (e.g. '26e8cba3-c4e9-4245-9a55-b3b37862e5e9'). |

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

### get_restaurant_menu

Get the full menu for a restaurant including categories, items with prices, descriptions, product types (sizes), and available add-ons with selections. The restaurant_id comes from the id field in search_restaurants results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `restaurant_id` | string | Yes | Restaurant UUID from search_restaurants results (e.g. '26e8cba3-c4e9-4245-9a55-b3b37862e5e9'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-slicelife-com-api-c87ab248/get_restaurant_menu \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"restaurant_id":"<string>"}'
```

### search_restaurants

Search for pizza restaurants near coordinates or an address. Returns a list of restaurants with delivery fees, ratings, and availability status. Use limit and offset for pagination. When using address, geocoding quality varies; providing latitude/longitude directly yields more reliable results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `address` | string | No | Address string for geocoding (e.g. 'Brooklyn, NY'). Used only if latitude/longitude are not provided. Geocoding quality varies for generic city names; prefer coordinates for precision. |
| `latitude` | number | No | Latitude of search center (e.g. 40.7128). If omitted along with longitude and address, defaults to New York City. |
| `limit` | integer | No | Maximum number of results to return. |
| `longitude` | number | No | Longitude of search center (e.g. -74.0060). If omitted along with latitude and address, defaults to New York City. |
| `offset` | integer | No | Pagination offset for results. |
| `radius` | integer | No | Search radius in miles. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-slicelife-com-api-c87ab248/search_restaurants \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"address":"<string>","latitude":"<number>","limit":"<integer>","longitude":"<number>","offset":"<integer>","radius":"<integer>"}'
```
