> ## 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: Inputs, Cost & CLI Example

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

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=openmart_search_businesses:{}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                           | Type      | Required | Default | Description |
| ------------------------------ | --------- | -------- | ------- | ----------- |
| `payload.query`                | `string`  | No       |         |             |
| `payload.limit`                | `integer` | No       | `100`   |             |
| `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       |         |             |
| `payload.store_name`           | `string`  | No       |         |             |
| `payload.min_locations`        | `integer` | No       |         |             |
| `payload.max_locations`        | `integer` | No       |         |             |
| `payload.min_overall_rating`   | `number`  | No       |         |             |
| `payload.max_overall_rating`   | `number`  | No       |         |             |
| `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       |         |             |
| `payload.exclude_keywords`     | `array`   | No       |         |             |
| `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={null}
  {
    "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 Schema

| Name          | Type              | Required | Default | Description                                    |
| ------------- | ----------------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `array \| object` | Yes      |         | Provider response payload.                     |
| `result.meta` | `object`          | No       |         | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "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>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute openmart_search_businesses --payload '{}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

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