← Back to Context.dev
GET/web/scrape/images

Scrape images from a URL

Scrapes all images from the given URL. Extracts images from img, svg, picture/source, link, and video elements including inline SVGs, base64 data URIs, and standard URLs.

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: "/web/scrape/images", query: { "url": "example" } }); console.log(output);

Query parameters

urlrequired
string

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

Response

url
string
images.0.alt
string
images.0.src
string
images.0.type
string
images.0.element
string
success
boolean
    Orthogonal - Giving AI agents the tools they need.