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

> Get Google Maps business details by business ID, optionally with emails and social profiles from its website. Includes SDK V2 examples, schemas, and cost.

Get Google Maps business details by business ID, optionally with emails and social profiles from its website.

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

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

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute openwebninja_localbusiness_business_details --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_details --json` for the latest machine-readable contract.

## Input reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.business_id` | `string` | Yes | — | Minimum length: 1. Pattern: `^[^,\s]+(\s*,\s*[^,\s]+)&#123;0,19&#125;$`. |
| `payload.extract_emails_and_contacts` | `boolean` | No | `true` | — |
| `payload.extract_share_link` | `boolean` | No | `false` | — |
| `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;)?$`. |
| `payload.coordinates` | `string` | No | — | Minimum length: 1. |

<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,
        "pattern": "^[^,\\s]+(\\s*,\\s*[^,\\s]+){0,19}$"
      },
      "extract_emails_and_contacts": {
        "type": "boolean",
        "default": true
      },
      "extract_share_link": {
        "type": "boolean",
        "default": false
      },
      "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})?$"
      },
      "coordinates": {
        "type": "string",
        "minLength": 1
      }
    },
    "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: `provider_usage` (provider usage).
* 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.