← Back to Context.dev
POST/brand/ai/query
Query website data using AI
Use AI to extract specific data points from a brand's website. The AI will crawl the website and extract the requested information based on the provided data points.
Context.dev·$0.03 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "context-dev",
path: "/brand/ai/query",
body: {
"domain": "example",
"data_to_extract": []
}
});
console.log(output);Body parameters
domainrequired
string
The domain name to analyze
timeoutMS
integer
Optional timeout in milliseconds. Max 300000ms (5 minutes).
specific_pages
object
Optional object specifying which pages to analyze
data_to_extractrequired
array
Array of data points to extract. Each item requires: datapoint_name (string), datapoint_type (text|number|date|boolean|list|url), datapoint_description (string), datapoint_example (string)
Response
domain
string
status
string
key_metadata.credits_consumed
number
key_metadata.credits_remaining
number
urls_analyzed.0
string
data_extracted.0.datapoint_name
string
data_extracted.0.datapoint_value
null