# Openmart · Local business search

Find companies, people and contact details with Openmart · Local business search from Alexandria through one Spiral API key. Search Openmart's local business database by business type and location, one row per physical store: name, address, website, categories, ratings, and social links. Use companies/search for one row per brand. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Lead Gen
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `openmart/businesses/search`
- Page: https://spiral.ai/tools/alexandria/openmart/businesses/search

## Pricing

Up to $0.69836 per run.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `query` (required) | text |  | — | Type of business to find, 1 to 500 characters, such as hair salons. |
| `limit` | number | 1 to 100 | 10 | Records per page, 1 to 100. Default 10. Each record returned costs 10 credits. |
| `cursor` | list |  | — | Next page: the last row's cursor from the previous page, a two-item array [match_score (number), store_id (string)], such as [24.26, "store-a"]. match_score must be a JSON number, not a string. Omit for the first page. |
| `location` | JSON |  | — | Location filters, each with a country, such as [{"country":"USA","state":"CA","city":"San Francisco"}]. |
| `estimate_total` | true or false |  | — | Wrap the page as {data, total_count} with an estimated match count. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "openmart/businesses/search",
    "input": {
      "query": "<query>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=openmart%2Fbusinesses%2Fsearch

## Common questions

### Openmart · Local business search

**How much does Openmart · Local business search cost?**

Up to $0.69836 per run. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Openmart · Local business search through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "openmart/businesses/search"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use Openmart · Local business search?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use Openmart · Local business search?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

