Skip to content

Scrape

Standard · 1 credit

Fetch a web page and extract its text content, links, images, and metadata including Open Graph tags.

FieldTypeRequiredDescription
urlstringYesURL to scrape
FieldTypeDescription
urlstringFetched URL
titlestringPage title
descriptionstringMeta description
textstringExtracted text content (max 50,000 characters)
linksarrayPage links (max 100)
links[].hrefstringLink URL
links[].textstringLink text
imagesarrayPage images (max 50)
images[].srcstringImage URL
images[].altstringAlt text
metaobjectMeta tag key-value pairs
opengraphobjectOpen Graph tag key-value pairs
Terminal window
curl -X POST https://morso.dev/api/scrape \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
{
"url": "https://example.com",
"title": "Example Domain",
"description": "",
"text": "Example Domain\nThis domain is for use in illustrative examples in documents...",
"links": [
{"href": "https://www.iana.org/domains/example", "text": "More information..."}
],
"images": [],
"meta": {},
"opengraph": {}
}
  • 400 — Invalid URL, fetch failure, or HTML parse error.

See Errors for the standard error shape.