Use the /v1/metadata endpoint to extract title, description, Open Graph tags, favicon, headings, and links from any webpage without taking a screenshot.
curl "https://snapapi.tech/v1/metadata?url=https://github.com" \
-H "x-api-key: YOUR_KEY"import requests
resp = requests.get(
"https://snapapi.tech/v1/metadata",
params={"url": "https://github.com"},
headers={"x-api-key": "YOUR_KEY"}
)
data = resp.json()
print(data["title"]) # "GitHub ยท Build and ship software..."
print(data["description"]) # Meta description
print(data["og_image"]) # OG image URL
print(data["favicon"]) # Favicon URL
print(data["headings"]) # [{"level": 1, "text": "..."}, ...]
print(data["links"]) # [{"text": "...", "href": "..."}, ...]const res = await fetch(
"https://snapapi.tech/v1/metadata?url=https://github.com",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const data = await res.json();
console.log(data.title); // Page title
console.log(data.og_title); // OG title
console.log(data.og_image); // OG image URL
console.log(data.favicon); // Favicon URL
console.log(data.headings); // Array of headings
console.log(data.links.length); // Number of links on page