> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Openmart: Search Businesses

> Find local business/store records by keyword, category, quality filters, and location. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Find local business/store records by keyword, category, quality filters, and location.

> [!NOTE]
>
> Tool ID: `openmart_search_businesses`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'openmart_search_businesses',
  {
    "query": "software companies hiring engineers",
    "limit": 100,
    "location": [
      {
        "country": "US",
        "state": "California",
        "city": "San Francisco"
      }
    ]
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute openmart_search_businesses --input '{
  "query": "software companies hiring engineers",
  "limit": 100,
  "location": [
    {
      "country": "US",
      "state": "California",
      "city": "San Francisco"
    }
  ]
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": [
    {
      "id": "id_123",
      "content": {},
      "match_score": 123
    }
  ]
}
```

Use `deepline describe openmart_search_businesses --json` for the latest machine-readable contract.

## Input reference

Search Openmart local business records by keyword, location, quality filters, and business attributes.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.query` | `string` | No | — | Minimum length: 1. Maximum length: 500. |
| `payload.limit` | `integer` | No | `100` | Minimum: 1. Maximum: 1000. |
| `payload.location` | `array` | No | — | — |
| `payload.has_website` | `boolean` | No | — | — |
| `payload.has_valid_website` | `boolean` | No | — | — |
| `payload.has_contact_info` | `boolean` | No | — | — |
| `payload.tags` | `array` | No | — | Maximum items: 100. |
| `payload.store_name` | `string` | No | — | — |
| `payload.min_locations` | `integer` | No | — | — |
| `payload.max_locations` | `integer` | No | — | — |
| `payload.min_overall_rating` | `number` | No | — | Minimum: 0. Maximum: 5. |
| `payload.max_overall_rating` | `number` | No | — | Minimum: 0. Maximum: 5. |
| `payload.min_total_reviews` | `integer` | No | — | — |
| `payload.max_total_reviews` | `integer` | No | — | — |
| `payload.min_price_tier` | `integer` | No | — | — |
| `payload.max_price_tier` | `integer` | No | — | — |
| `payload.ownership_type` | `string` | No | — | — |
| `payload.include_keywords` | `array` | No | — | Maximum items: 64. |
| `payload.exclude_keywords` | `array` | No | — | Maximum items: 64. |
| `payload.exclude_root_domains` | `array` | No | — | — |
| `payload.open_date_after` | `string` | No | — | — |
| `payload.open_date_before` | `string` | No | — | — |
| `payload.info_updated_after` | `string` | No | — | — |
| `payload.info_updated_before` | `string` | No | — | — |
| `payload.cursor` | `array` | No | — | — |
| `payload.estimate_total` | `boolean` | No | — | — |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Search Openmart local business records by keyword, location, quality filters, and business attributes.",
    "properties": {
      "query": {
        "type": "string",
        "minLength": 1,
        "maxLength": 500
      },
      "limit": {
        "type": "integer",
        "default": 100,
        "minimum": 1,
        "maximum": 1000
      },
      "location": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "country": {
              "type": "string",
              "description": "Country code or name."
            },
            "state": {
              "type": "string"
            },
            "city": {
              "type": "string"
            },
            "zip_code": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "lat": {
              "type": "number"
            },
            "long": {
              "type": "number"
            },
            "geo_radius": {
              "type": "integer"
            },
            "use_geo_fuzz": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      },
      "has_website": {
        "type": "boolean"
      },
      "has_valid_website": {
        "type": "boolean"
      },
      "has_contact_info": {
        "type": "boolean"
      },
      "tags": {
        "type": "array",
        "maxItems": 100,
        "items": {
          "type": "string"
        }
      },
      "store_name": {
        "type": "string"
      },
      "min_locations": {
        "type": "integer"
      },
      "max_locations": {
        "type": "integer"
      },
      "min_overall_rating": {
        "type": "number",
        "minimum": 0,
        "maximum": 5
      },
      "max_overall_rating": {
        "type": "number",
        "minimum": 0,
        "maximum": 5
      },
      "min_total_reviews": {
        "type": "integer"
      },
      "max_total_reviews": {
        "type": "integer"
      },
      "min_price_tier": {
        "type": "integer"
      },
      "max_price_tier": {
        "type": "integer"
      },
      "ownership_type": {
        "type": "string"
      },
      "include_keywords": {
        "type": "array",
        "maxItems": 64,
        "items": {
          "type": "string"
        }
      },
      "exclude_keywords": {
        "type": "array",
        "maxItems": 64,
        "items": {
          "type": "string"
        }
      },
      "exclude_root_domains": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "open_date_after": {
        "type": "string"
      },
      "open_date_before": {
        "type": "string"
      },
      "info_updated_after": {
        "type": "string"
      },
      "info_updated_before": {
        "type": "string"
      },
      "cursor": {
        "type": "array",
        "items": {}
      },
      "estimate_total": {
        "type": "boolean"
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `array \| object` | Yes | — | Provider response payload. |
| `result.data.data` | `array` | Yes | — | — |
| `result.data.data[].id` | `string` | No | — | — |
| `result.data.data[].content` | `record` | No | — | — |
| `result.data.data[].match_score` | `number` | No | — | — |
| `result.data.data[].match_highlights` | `array` | No | — | — |
| `result.data.data[].cursor` | `array` | No | — | — |
| `result.data.total_count` | `integer` | No | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "description": "Provider response payload.",
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "content": {
                  "type": "object",
                  "additionalProperties": true
                },
                "match_score": {
                  "type": "number"
                },
                "match_highlights": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "cursor": {
                  "type": "array",
                  "items": {}
                }
              },
              "additionalProperties": true
            }
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "content": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "match_score": {
                      "type": "number"
                    },
                    "match_highlights": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "cursor": {
                      "type": "array",
                      "items": {}
                    }
                  },
                  "additionalProperties": true
                }
              },
              "total_count": {
                "type": "integer"
              }
            },
            "required": [
              "data"
            ],
            "additionalProperties": true
          }
        ]
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `per_result` (per result).
* Estimated Deepline credits: `0.13` per pricing unit.

## Related documentation

* [Openmart provider guide](https://deepline.com/docs/providers/openmart/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.