Fetch
The /fetch endpoint allows you to fetch a single webpage from a given URL.
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: "linkup",
path: "/fetch",
body: {
"url": "example"
}
});
console.log(output);Body parameters
The URL of the webpage you want to fetch.
Defines whether the API should render the JavaScript of the webpage.
Defines whether the API should include the raw HTML of the webpage in its response.
Defines whether the API should extract the images from the webpage in its response.
Response
Clean markdown version of the webpage content.
URL of the website favicon.
Raw page content. Present only when includeRawContent is true.
The type of rawContent (e.g. html). Present only when rawContent is returned.
Deprecated. Raw HTML version of the webpage. Use includeRawContent instead.
List of images extracted from the webpage. Present only when extractImages is true.
URL of the extracted image.
Alt text of the extracted image.
Structured data extracted from the webpage. Present only when schema is provided in the request. Fields with no grounded value are omitted.