# Paginasamarillas (Peru) — 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 and discover Peruvian businesses with instant access to their contact details, including phone numbers, emails, WhatsApp, websites, social media profiles, addresses, and operating hours. Find verified reviews and comprehensive business information all in one place to easily connect with companies across Peru.

**Category:** Business Directories | **Website:** [www.paginasamarillas.com.pe/lima/servicios/inmobiliarias](https://www.paginasamarillas.com.pe/lima/servicios/inmobiliarias) | **Docs:** [parse.bot/marketplace/de28505b-c12e-4ea5-94cf-d9b26e11e299/paginasamarillas-com-pe-api](https://parse.bot/marketplace/de28505b-c12e-4ea5-94cf-d9b26e11e299/paginasamarillas-com-pe-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-paginasamarillas-com-pe-api-de28505b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_business_detail

Get detailed information for a specific business including opening hours, reviews, services, and keywords. The url_path is obtained from the detail_url field in search_businesses results (strip the domain prefix). Returns richer data than the search listing: opening hours schedule, customer reviews with ratings, service list, and keyword tags.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url_path` | string | Yes | Business detail URL path from search_businesses results (e.g., '/empresas/notaria-herrera-carrera/miraflores-589431') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-paginasamarillas-com-pe-api-de28505b/get_business_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url_path":"<string>"}'
```

### search_businesses

Full-text search over Peru Yellow Pages business listings by keyword and city. Returns a paginated list of businesses with contact info, social media links, and addresses. Pagination is 0-indexed. Each business includes a detail_url path usable with get_business_detail for full info including hours and reviews.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `location` | string | No | Location/city to search in |
| `page` | integer | No | Page number (0-indexed) |
| `query` | string | Yes | Search keyword (e.g., 'inmobiliarias', 'restaurantes', 'abogados') |
| `size` | integer | No | Results per page |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-paginasamarillas-com-pe-api-de28505b/search_businesses \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"location":"<string>","page":"<integer>","query":"<string>","size":"<integer>"}'
```
