> ## 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 Business Ids

> Search local businesses by keyword, location, rating and reviews, returning business IDs and Google Place IDs. Includes SDK V2 examples, schemas, and cost.

Search local businesses by keyword, location, rating and reviews, returning business IDs and Google Place IDs.

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

## 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_business_ids',
  {
    "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_business_ids --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",
      "place_id": "place_123",
      "match_score": 123
    }
  ]
}
```

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

## Input reference

Fast business search that returns Openmart IDs, Google Place IDs, match scores, and pagination cursors.

| 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": "Fast business search that returns Openmart IDs, Google Place IDs, match scores, and pagination cursors.",
    "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` | Yes | — | Provider response payload. |
| `result.data[].id` | `string` | No | — | — |
| `result.data[].place_id` | `string` | No | — | — |
| `result.data[].match_score` | `number` | No | — | — |
| `result.data[].cursor` | `array` | 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": {
        "type": "array",
        "description": "Provider response payload.",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "place_id": {
              "type": "string"
            },
            "match_score": {
              "type": "number"
            },
            "cursor": {
              "type": "array",
              "items": {}
            }
          },
          "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.