Pages

Get a page

Parameters

Name Required Type Description
with_content optional boolean If true, returns the page's content
with_html optional boolean If true, returns the page's html
curl --request GET \
    --url https://api.embedding.io/v0/pages/pag_1234 \
    --header 'Authorization: Bearer YOUR_API_KEY'

Returns

Name Type Description
id string The ID of the page
url string The url of the page
title string The meta title of the page
og_type string The Open Graph type of the page
og_image string The Open Graph image of the page
h1 string The h1 tag of the page
content string The page's content in markdown format
{
    "id": "pag_VKPDz1YZLan39e",
    "url": "https:\/\/en.wikipedia.org\/wiki\/Main_Page",
    "title": "Wikipedia, the free encyclopedia",
    "description": null,
    "og_type": "website",
    "og_image": "https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/3\/31\/Southern_Chivalry.jpg\/1200px-Southern_Chivalry.jpg",
    "h1": "Main Page",
  	"content": "...",
    "html": "..."
}