POST
/
brand
/
ai
/
query
import BrandDev from 'brand.dev';

const client = new BrandDev({
  apiKey: process.env['BRAND_DEV_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const response = await client.brand.aiQuery({
    data_to_extract: [
      {
        datapoint_description: 'datapoint_description',
        datapoint_example: 'datapoint_example',
        datapoint_name: 'datapoint_name',
        datapoint_type: 'text',
      },
    ],
    domain: 'domain',
  });

  console.log(response.data_extracted);
}

main();
{
  "domain": "<string>",
  "urls_analyzed": [
    "<string>"
  ],
  "data_extracted": [
    {
      "datapoint_name": "<string>",
      "datapoint_value": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Successful response

The response is of type object.