# Yelp API (/api/yelp)

Yelp business search, business details, reviews and photos.

## When To Use This API [#when-to-use-this-api]

The Yelp API is for agent workflows that need public, platform-native data without writing a custom collector for every task. Use it when a prompt needs evidence from live public records, when a Skill needs repeatable enrichment, or when product code needs the same contract an agent discovered through MCP.

This section lists 4 live Yelp operations from the canonical OpenAPI spec. Each operation page documents the route, method, parameters, response envelope, pagination behavior when available, and the error vocabulary shared across UnifAPI.

- Find and rank local businesses by rating, review count, price range and category for lead or market research.
- Summarize what customers praise and criticize from a business's full Yelp reviews and owner replies.
- Compare competitors' hours, amenities and photos in one local market.

## Agent Contract Notes [#agent-contract-notes]

Agents usually discover these endpoints with the hosted UnifAPI MCP server, inspect the operation schema, then call only the records needed for the current task. Developers can call the same endpoints over HTTP with an API key, which makes the path from exploratory agent run to production integration direct.

Every successful response uses a stable envelope with a request id, data payload, optional pagination cursor, and billing metadata. Errors use the same closed vocabulary across platforms, so retry logic, user-facing explanations, and cost reporting can stay consistent even when a workflow spans multiple public-data sources.

When you are choosing an operation, start from the public identifier the user already has: a profile username, post id, channel id, subreddit name, search term, or URL-derived slug. Prefer the narrowest endpoint that answers the question, then expand only when the agent needs more evidence. This keeps record usage predictable, makes citations easier to explain, and avoids turning a focused research task into an expensive crawl.

## Operations [#operations]

### Businesses [#businesses]

- [`GET /yelp/businesses/{id}/photos`](/api/yelp/businesses/id/photos/get) — List photos of a Yelp business — Returns public photos of a Yelp business with captions and URLs.
- [`GET /yelp/businesses/{id}/reviews`](/api/yelp/businesses/id/reviews/get) — List reviews of a Yelp business — Returns public reviews of a Yelp business with rating, text, author, photos and owner replies.
- [`GET /yelp/businesses/{id}`](/api/yelp/businesses/id/get) — Get a Yelp business — Returns a Yelp business by alias: rating, review count, price range, phone, website, address, coordinates, categories, opening hours and amenities.
- [`GET /yelp/businesses/search`](/api/yelp/businesses/search/get) — Search Yelp businesses — Searches Yelp for businesses by name, service or category near a location, sorted by Yelp's recommendation, rating or review count.
