Introduction

Authentication & Access

API Errors

Validation Error Response
{
  "errors": {
    "url": [
      "Invalid URL format"
    ]
  },
  "type": "https://app.brandvantage.co/api-problem/validation-error",
  "title": "Validation Error",
  "status": 400,
  "traceId": "0HM9NIJTKU99A:00000002"
}
Processing Error Response
{
  "type": "https://app.brandvantage.co/api-problem/processing-error",
  "title": "Processing Error",
  "detail": "Unable to resolve hostname for remote server",
  "status": 500,
  "traceId": "0HM9NIJTKU99C:00000002"
}

Web Page API

Request
  • curl https://app.brandvantage.co/api/data-source/web-page \
    -d apiKey=YOUR_API_KEY \
    -d url=TARGET_URL \
    -G
Response
{
  "@type": "WebPage",
  "@context": "https://schema.org",
  "name": "Web Page Name",
  "alternateName": "Website Name",
  "image": {
    "@context": "https://schema.org",
    "@type": "ImageObject",
    "url": "https://example.org/path/to/the-image.jpg"
  },
  "description": "This is an example description for a web page",
  "text": "This is the main content of the page",
  "mainContentOfPage": {
    "@context": "https://schema.org",
    "@type": "WebPageElement",
    "cssSelector": "#main>div>div:nth-child(2)"
  }
}