> ## 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.

# OpenWeb Ninja: Openwebninja Localbusiness Business Reviews

> List the reviews of a Google Maps business, sorted by newest, most relevant or rating. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

List the reviews of a Google Maps business, sorted by newest, most relevant or rating.

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

## 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(
  'openwebninja_localbusiness_business_reviews',
  {
    "business_id": "business_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute openwebninja_localbusiness_business_reviews --input '{
  "business_id": "business_123"
}' --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"]}}
{
  "status": "example",
  "request_id": "request_123",
  "parameters": {}
}
```

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

## Input reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.business_id` | `string` | Yes | — | Minimum length: 1. |
| `payload.limit` | `integer` | No | `20` | Minimum: 1. Maximum: 100. |
| `payload.cursor` | `string` | No | — | Minimum length: 1. |
| `payload.sort_by` | `"most_relevant" \| "newest" \| "highest_ranking" \| "lowest_ranking"` | No | `"most_relevant"` | Allowed: `most_relevant`, `newest`, `highest_ranking`, `lowest_ranking`. |
| `payload.fields` | `string` | No | — | Minimum length: 1. |
| `payload.region` | `string` | No | `"us"` | Pattern: `^[A-Za-z]&#123;2&#125;$`. |
| `payload.language` | `string` | No | `"en"` | Pattern: `^[A-Za-z]&#123;2,8&#125;(-[A-Za-z0-9]&#123;2,8&#125;)?$`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "business_id": {
        "type": "string",
        "minLength": 1
      },
      "limit": {
        "type": "integer",
        "default": 20,
        "minimum": 1,
        "maximum": 100
      },
      "cursor": {
        "type": "string",
        "minLength": 1
      },
      "sort_by": {
        "type": "string",
        "default": "most_relevant",
        "enum": [
          "most_relevant",
          "newest",
          "highest_ranking",
          "lowest_ranking"
        ]
      },
      "fields": {
        "type": "string",
        "minLength": 1
      },
      "region": {
        "type": "string",
        "default": "us",
        "pattern": "^[A-Za-z]{2}$"
      },
      "language": {
        "type": "string",
        "default": "en",
        "pattern": "^[A-Za-z]{2,8}(-[A-Za-z0-9]{2,8})?$"
      }
    },
    "required": [
      "business_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Normalized OpenWebNinja result envelope.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.status` | `string` | No | — | — |
| `result.request_id` | `string` | No | — | — |
| `result.parameters` | `record` | No | — | — |
| `result.data` | `unknown` | No | — | — |
| `result.cursor` | `string` | No | — | — |
| `result.next_cursor` | `string` | No | — | — |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Normalized OpenWebNinja result envelope.",
    "properties": {
      "status": {
        "type": "string"
      },
      "request_id": {
        "type": "string"
      },
      "parameters": {
        "type": "object",
        "additionalProperties": {}
      },
      "data": {},
      "cursor": {
        "type": "string"
      },
      "next_cursor": {
        "type": "string"
      }
    },
    "additionalProperties": true
  }
  ```
</details>

## Deepline cost

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

## Related documentation

* [OpenWeb Ninja provider guide](https://deepline.com/docs/providers/openwebninja/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.