Marketing - Web Scraper

Scrape Website

Scrape any website using a headless browser. Extract page title, H1, meta description, text content, links, images, and headings. Works with JavaScript-heavy websites and SPAs. Use this for competitor analysis, SEO audits, price monitoring, and content research.

post/ai/api/v1/marketing/scrape

Request

  • Base URL: https://sharksapi.ai
  • URL: https://sharksapi.ai/ai/api/v1/marketing/scrape
  • Auth: HTTP bearer

Request body

urlstring uri required

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

extractstring[]

What data to extract from the page. Default: title, h1, meta_description, text

wait_for_selectorstring

CSS selector to wait for before scraping (for dynamic/SPA pages)

custom_selectorstring

Custom CSS selector to extract specific elements

Example request

{
  "url": "https://example.com",
  "extract": [
    "title",
    "h1",
    "meta_description",
    "links"
  ],
  "wait_for_selector": ".content-loaded",
  "custom_selector": ".product-price, .product-title"
}

Response

Website scraped successfully

statusstring
urlstring

The scraped URL

messagestring

Example response

{
  "status": "success",
  "message": "Website scraped successfully"
}

Changes

No recorded changes to this operation across all 1 revision of this API.