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

# Context.dev: Contextdev Post Brand Ai Product

> Extract a single product from a URL. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Extract a single product from a URL.

<Info>
  Tool ID: `contextdev_post_brand_ai_product`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'contextdev_post_brand_ai_product',
  {
    "url": "https://example.com/resource"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute contextdev_post_brand_ai_product --input '{
  "url": "https://example.com/resource"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "is_product_page": true,
    "platform": "amazon",
    "product": {
      "name": "Example",
      "description": "Example description",
      "features": [
        "example"
      ],
      "target_audience": [
        "example"
      ],
      "tags": [
        "example"
      ],
      "images": [
        "example"
      ],
      "sku": "example"
    }
  }
}
```

Use `deepline tools get contextdev_post_brand_ai_product --json` for the latest machine-readable contract.

## Input reference

Given a single URL, determines if it is a product page and extracts the product information.

| Name                | Type      | Required | Default     | Details                                                                                                                                                                                                                                                               |
| ------------------- | --------- | -------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.url`       | `string`  | Yes      | —           | The product page URL to extract product data from. Format: `uri`.                                                                                                                                                                                                     |
| `payload.maxAgeMs`  | `integer` | No       | `604800000` | Return a cached result if a prior scrape for the same parameters exists and is younger than this many milliseconds. Defaults to 7 days (604800000 ms) when omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh. Minimum: 0. Maximum: 2592000000. |
| `payload.timeoutMS` | `integer` | No       | —           | Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes). Minimum: 1000. Maximum: 300000.                                              |
| `payload.tags`      | `array`   | No       | —           | Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters. Maximum items: 20.                                                                                                                                                                          |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Given a single URL, determines if it is a product page and extracts the product information.",
    "properties": {
      "url": {
        "type": "string",
        "description": "The product page URL to extract product data from.",
        "format": "uri"
      },
      "maxAgeMs": {
        "type": "integer",
        "description": "Return a cached result if a prior scrape for the same parameters exists and is younger than this many milliseconds. Defaults to 7 days (604800000 ms) when omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.",
        "default": 604800000,
        "minimum": 0,
        "maximum": 2592000000
      },
      "timeoutMS": {
        "type": "integer",
        "description": "Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).",
        "minimum": 1000,
        "maximum": 300000
      },
      "tags": {
        "type": "array",
        "description": "Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.",
        "maxItems": 20,
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 50
        }
      }
    },
    "required": [
      "url"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name                                    | Type                                                                 | Required | Default | Details                                                              |
| --------------------------------------- | -------------------------------------------------------------------- | -------- | ------- | -------------------------------------------------------------------- |
| `result.data`                           | `object`                                                             | Yes      | —       | —                                                                    |
| `result.data.is_product_page`           | `boolean`                                                            | No       | —       | —                                                                    |
| `result.data.platform`                  | `"amazon" \| "tiktok_shop" \| "etsy" \| "generic" \| null`           | No       | —       | Allowed: `amazon`, `tiktok_shop`, `etsy`, `generic`, `null`.         |
| `result.data.product`                   | `object \| null`                                                     | No       | —       | —                                                                    |
| `result.data.product.name`              | `string`                                                             | Yes      | —       | —                                                                    |
| `result.data.product.description`       | `string`                                                             | Yes      | —       | —                                                                    |
| `result.data.product.price`             | `number \| null`                                                     | No       | —       | —                                                                    |
| `result.data.product.currency`          | `string \| null`                                                     | No       | —       | —                                                                    |
| `result.data.product.billing_frequency` | `"monthly" \| "yearly" \| "one_time" \| "usage_based" \| null`       | No       | —       | Allowed: `monthly`, `yearly`, `one_time`, `usage_based`, `null`.     |
| `result.data.product.pricing_model`     | `"per_seat" \| "flat" \| "tiered" \| "freemium" \| "custom" \| null` | No       | —       | Allowed: `per_seat`, `flat`, `tiered`, `freemium`, `custom`, `null`. |
| `result.data.product.url`               | `string \| null`                                                     | No       | —       | —                                                                    |
| `result.data.product.category`          | `string \| null`                                                     | No       | —       | —                                                                    |
| `result.data.product.features`          | `array`                                                              | Yes      | —       | —                                                                    |
| `result.data.product.target_audience`   | `array`                                                              | Yes      | —       | —                                                                    |
| `result.data.product.tags`              | `array`                                                              | Yes      | —       | —                                                                    |
| `result.data.product.image_url`         | `string \| null`                                                     | No       | —       | —                                                                    |
| `result.data.product.images`            | `array`                                                              | Yes      | —       | —                                                                    |
| `result.data.product.sku`               | `string \| null`                                                     | Yes      | —       | —                                                                    |
| `result.data.key_metadata`              | `object`                                                             | No       | —       | —                                                                    |
| `result.meta`                           | `object`                                                             | No       | —       | —                                                                    |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "is_product_page": {
            "type": "boolean"
          },
          "platform": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "amazon",
              "tiktok_shop",
              "etsy",
              "generic",
              null
            ]
          },
          "product": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "billing_frequency": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "monthly",
                  "yearly",
                  "one_time",
                  "usage_based",
                  null
                ]
              },
              "pricing_model": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "per_seat",
                  "flat",
                  "tiered",
                  "freemium",
                  "custom",
                  null
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "features": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "target_audience": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "image_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "images": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sku": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name",
              "description",
              "features",
              "target_audience",
              "tags",
              "images",
              "sku"
            ],
            "additionalProperties": false
          },
          "key_metadata": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Context.dev provider guide](/docs/providers/contextdev/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
