Skip to main content
GET
/
web
/
scrape
/
html
JavaScript
import BrandDev from 'brand.dev';

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

const response = await client.brand.webScrapeHTML({ url: 'https://example.com' });

console.log(response.html);
{
  "success": true,
  "html": "<string>",
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

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

Query Parameters

url
string<uri>
required

Full URL to scrape (must include http:// or https:// protocol)

Response

Successful response

success
enum<boolean>
required

Indicates success

Available options:
true
html
string
required

Raw HTML content of the page

url
string
required

The URL that was scraped