---
title: "Places Search"
method: POST
path: "/search/places"
tags: ["Search"]
---

# Places Search

`POST /search/places`

## Request

- Base URL: `https://api.weblens.dev`
- URL: `https://api.weblens.dev/search/places`
- Auth: API key in header `Payment-Signature`

Local business search via Google Local. Returns names, addresses, ratings, reviews, phone numbers, websites, and coordinates. Price: $0.045.

## Request body

- object
  - `query` string, required: What to search for, e.g. "coffee shops"
  - `location` string: Free-text location bias, e.g. "Austin, Texas"
  - `limit` number: Maximum results to return

## Response `200`

Local businesses: address, rating, reviews, phone, coordinates.

- object
  - `query` string
  - `location` string
  - `results` object[]: Places with name, address, rating, reviews, priceLevel, category, phone, website, placeId, coordinates
    - `position` integer
    - `name` string
    - `address` string
    - `rating` number
    - `reviews` integer
    - `priceLevel` string
    - `category` string
    - `phone` string
    - `website` string
    - `description` string
    - `placeId` string
    - `coordinates` object
  - `searchedAt` string
  - `requestId` string

## Other responses

- `400`: The body failed validation
- `402`: Payment required — x402 v2 protocol. Parse the PAYMENT-REQUIRED response header (base64-encoded JSON), sign the payment with your wallet, then retry the request with the Payment-Signature request header.

---

[API](https://skmtc.dev/weblens/apis/weblens-api.md) · [All operations](https://skmtc.dev/weblens/apis/weblens-api/llms.txt) · [OpenAPI document](https://skmtc.dev/weblens/apis/weblens-api/revisions/63a7e81b6921?raw)
