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

> Extract products from a brand's website. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Extract products from a brand's website.

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

## 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(
  'contextdev_post_brand_ai_products',
  {
    "domain": "example.com"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute contextdev_post_brand_ai_products --input '{
  "domain": "example.com"
}' --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": {
    "products": [
      {
        "name": "Example",
        "description": "Example description",
        "features": [
          "example"
        ],
        "target_audience": [
          "example"
        ],
        "tags": [
          "example"
        ],
        "images": [
          "example"
        ],
        "sku": "example"
      }
    ],
    "key_metadata": {}
  }
}
```

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

## Input reference

Extract product information from a brand's website.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.domain` | `string` | No | — | The domain name to analyze. |
| `payload.maxProducts` | `integer` | No | — | Maximum number of products to extract. Minimum: 1. Maximum: 12. |
| `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. |
| `payload.directUrl` | `string` | No | — | A specific URL to use directly as the starting point for extraction without domain resolution. Format: `uri`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Extract product information from a brand's website.",
    "properties": {
      "domain": {
        "type": "string",
        "description": "The domain name to analyze."
      },
      "maxProducts": {
        "type": "integer",
        "description": "Maximum number of products to extract.",
        "minimum": 1,
        "maximum": 12
      },
      "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
        }
      },
      "directUrl": {
        "type": "string",
        "description": "A specific URL to use directly as the starting point for extraction without domain resolution.",
        "format": "uri"
      }
    },
    "required": [],
    "anyOf": [
      {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "description": "The domain name to analyze."
          },
          "maxProducts": {
            "type": "integer",
            "description": "Maximum number of products to extract.",
            "minimum": 1,
            "maximum": 12
          },
          "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": [
          "domain"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "directUrl": {
            "type": "string",
            "description": "A specific URL to use directly as the starting point for extraction without domain resolution.",
            "format": "uri"
          },
          "maxProducts": {
            "type": "integer",
            "description": "Maximum number of products to extract.",
            "minimum": 1,
            "maximum": 12
          },
          "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": [
          "directUrl"
        ],
        "additionalProperties": false
      }
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.products` | `array` | No | — | — |
| `result.data.products[].name` | `string` | Yes | — | — |
| `result.data.products[].description` | `string` | Yes | — | — |
| `result.data.products[].price` | `number \| null` | No | — | — |
| `result.data.products[].currency` | `string \| null` | No | — | — |
| `result.data.products[].billing_frequency` | `"monthly" \| "yearly" \| "one_time" \| "usage_based" \| null` | No | — | Allowed: `monthly`, `yearly`, `one_time`, `usage_based`, `null`. |
| `result.data.products[].pricing_model` | `"per_seat" \| "flat" \| "tiered" \| "freemium" \| "custom" \| null` | No | — | Allowed: `per_seat`, `flat`, `tiered`, `freemium`, `custom`, `null`. |
| `result.data.products[].url` | `string \| null` | No | — | — |
| `result.data.products[].category` | `string \| null` | No | — | — |
| `result.data.products[].features` | `array` | Yes | — | — |
| `result.data.products[].target_audience` | `array` | Yes | — | — |
| `result.data.products[].tags` | `array` | Yes | — | — |
| `result.data.products[].image_url` | `string \| null` | No | — | — |
| `result.data.products[].images` | `array` | Yes | — | — |
| `result.data.products[].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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "products": {
            "type": "array",
            "items": {
              "type": "object",
              "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: `provider_usage` (provider usage).
* Estimated Deepline credits: `0.01` per pricing unit.

## Related documentation

* [Context.dev provider guide](https://deepline.com/docs/providers/contextdev/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.