← Back to Context.dev
GET/web/scrape/html
Scrape raw HTML from a URL
Scrapes the given URL and returns the raw HTML content of the page.
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/html",
query: {
"url": "example"
}
});
console.log(output);Query parameters
urlrequired
string
Full URL to scrape (must include http:// or https:// protocol)
Response
url
string
html
string
type
string
success
boolean
key_metadata.credits_consumed
number
key_metadata.credits_remaining
number