# Yelp Search

Search Yelp via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by anyapi, pass parameters such as limit, location, query, and retrieve structured data including item collection and returned found field to search interfaces and source review, and integration reference, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/market/apis/yelp/yelp-search/?offering=fdc54ce7-75a4-4ed4-9c1f-1c9e958fe173
API ID: fdc54ce7-75a4-4ed4-9c1f-1c9e958fe173
Provider: anyapi
Contract revision: 6
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/anyapi/v1/run/yelp.search
Page update time: 2026-12-03T02:51:43.842Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.0035 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:51:43.159Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [
    {
      "default": "0.0028",
      "id": "max_cost_usd",
      "location": "query",
      "name": "max_cost_usd",
      "required": false,
      "type": "string"
    }
  ],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "3501",
    "max_cost_micro_usd": "3500",
    "quantities": [],
    "rounding": "ceil",
    "variants": [
      {
        "id": "capped_auto_routing",
        "label": "预算内自动选源",
        "price_micro_usd": "3500",
        "when": [
          {
            "op": "eq",
            "parameter": "max_cost_usd",
            "value": "0.0028"
          }
        ]
      }
    ]
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Yelp Search request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "fields": {
          "type": "string",
          "description": "Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost."
        },
        "max_items": {
          "type": "integer",
          "description": "Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.",
          "minimum": 0
        },
        "summary": {
          "type": "boolean",
          "description": "Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost."
        },
        "jq": {
          "type": "string",
          "description": "Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost."
        },
        "max_cost_usd": {
          "type": "string",
          "description": "Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {
        "Idempotency-Key": {
          "type": "string",
          "description": "Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.",
          "minLength": 1,
          "maxLength": 255
        }
      }
    },
    "body": {
      "type": "object",
      "properties": {
        "ignoreSources": {
          "type": "array",
          "description": "Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.",
          "items": {
            "type": "string"
          }
        },
        "limit": {
          "type": "integer",
          "description": "Maximum number of results to return (1 to 20, default 20).",
          "minimum": 1,
          "maximum": 20
        },
        "location": {
          "type": "string",
          "description": "City and state defining the search area (e.g. San Francisco, CA)."
        },
        "preferLatencyUnderMs": {
          "type": "integer",
          "description": "Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.",
          "minimum": 1
        },
        "query": {
          "type": "string",
          "description": "Search term or category to look for (e.g. sushi)."
        },
        "requireFields": {
          "type": "array",
          "description": "Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `is_closed` or `price`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a place that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "location",
        "query"
      ]
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "output": {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "address1": {
                    "type": "string"
                  },
                  "address2": {
                    "type": "string"
                  },
                  "address3": {
                    "type": "string"
                  },
                  "alias": {
                    "type": "string"
                  },
                  "avg_rating": {
                    "type": "number"
                  },
                  "categories": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "alias": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "city": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "dialable_phone": {
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "is_closed": {
                    "type": "boolean"
                  },
                  "latitude": {
                    "type": "number"
                  },
                  "localized_phone": {
                    "type": "string"
                  },
                  "localized_price": {
                    "type": "string"
                  },
                  "longitude": {
                    "type": "number"
                  },
                  "name": {
                    "type": "string"
                  },
                  "neighborhoods": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "phone": {
                    "type": "string"
                  },
                  "photo_count": {
                    "type": "integer"
                  },
                  "photo_url": {
                    "type": "string"
                  },
                  "price": {
                    "type": "integer"
                  },
                  "review_count": {
                    "type": "integer"
                  },
                  "state": {
                    "type": "string"
                  },
                  "unrounded_avg_rating": {
                    "type": "number"
                  },
                  "url": {
                    "type": "string"
                  },
                  "zip": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "found": {
          "type": "boolean"
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example (output fragment; HTTP assumed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/anyapi/v1/run/yelp.search' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "limit": 20,
  "location": "Chicago, IL",
  "query": "pizza"
}'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Configured HTTP 200; actual status is unverified.
```json
{
  "output": {
    "data": {
      "items": [
        {
          "address1": "2145 N Halsted St",
          "address2": "",
          "address3": "",
          "alias": "lous-deep-dish-kitchen-chicago",
          "avg_rating": 4.5,
          "categories": [
            {
              "alias": "pizza",
              "title": "Pizza"
            },
            {
              "alias": "tradamerican",
              "title": "American (Traditional)"
            }
          ],
          "city": "Chicago",
          "country": "US",
          "dialable_phone": "+13125550142",
          "id": "abc123XyzChicagoDeepDish",
          "is_closed": false,
          "latitude": 41.9214,
          "localized_phone": "(312) 555-0142",
          "localized_price": "$$",
          "longitude": -87.6486,
          "name": "Lou's Deep Dish Kitchen",
          "neighborhoods": [
            "Lincoln Park"
          ],
          "phone": "+13125550142",
          "photo_count": 384,
          "photo_url": "https://s3-media0.fl.yelpcdn.com/bphoto/9f2a1b7c6e4d8a3b5c1f0e2d4a6b8c9d/o.jpg",
          "price": 2,
          "review_count": 2418,
          "state": "IL",
          "unrounded_avg_rating": 4.47,
          "url": "https://www.yelp.com/biz/lous-deep-dish-kitchen-chicago",
          "zip": "60614"
        },
        {
          "address1": "4560 N Broadway St",
          "address2": "",
          "address3": "",
          "alias": "uptown-slice-house-chicago",
          "avg_rating": 4,
          "categories": [
            {
              "alias": "pizza",
              "title": "Pizza"
            }
          ],
          "city": "Chicago",
          "country": "US",
          "dialable_phone": "+17735550198",
          "id": "def456UptownSlice",
          "is_closed": false,
          "latitude": 41.9647,
          "localized_phone": "(773) 555-0198",
          "localized_price": "$",
          "longitude": -87.6558,
          "name": "Uptown Slice House",
          "neighborhoods": [
            "Uptown"
          ],
          "phone": "+17735550198",
          "photo_count": 156,
          "photo_url": "https://s3-media0.fl.yelpcdn.com/bphoto/2c4e6a8b0d1f3e5a7c9b1d3f5e7a9c0b/o.jpg",
          "price": 1,
          "review_count": 967,
          "state": "IL",
          "unrounded_avg_rating": 4.02,
          "url": "https://www.yelp.com/biz/uptown-slice-house-chicago",
          "zip": "60640"
        },
        {
          "address1": "1780 N Milwaukee Ave",
          "address2": "Suite 2",
          "address3": "",
          "alias": "wicker-park-pie-co-chicago",
          "avg_rating": 4.5,
          "categories": [
            {
              "alias": "pizza",
              "title": "Pizza"
            },
            {
              "alias": "italian",
              "title": "Italian"
            }
          ],
          "city": "Chicago",
          "country": "US",
          "dialable_phone": "+17735550176",
          "id": "ghi789WickerParkPie",
          "is_closed": false,
          "latitude": 41.9127,
          "localized_phone": "(773) 555-0176",
          "localized_price": "$$",
          "longitude": -87.6763,
          "name": "Wicker Park Pie Co.",
          "neighborhoods": [
            "Wicker Park"
          ],
          "phone": "+17735550176",
          "photo_count": 92,
          "photo_url": "https://s3-media0.fl.yelpcdn.com/bphoto/5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b/o.jpg",
          "price": 2,
          "review_count": 512,
          "state": "IL",
          "unrounded_avg_rating": 4.46,
          "url": "https://www.yelp.com/biz/wicker-park-pie-co-chicago",
          "zip": "60622"
        }
      ]
    },
    "found": true
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- anyapi: https://openany.si/market/apis/yelp/yelp-search/?offering=fdc54ce7-75a4-4ed4-9c1f-1c9e958fe173

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
