API reference
1 endpoint, served at https://orbitwrite.com/api/v1. Each one lists the credentials it accepts, its parameters and every response it can give.
Fetches a public URL and returns its Open Graph / Twitter card metadata for rendering a link preview. Private, loopback and non-HTTP addresses are rejected.
An API key or OAuth access token as a bearer token, or a signed-in session.
urlstringRequiredFormat uri.
200objectMetadata for the URL
previewLinkPreviewRequiredurlstringRequiredThe URL the metadata was read from, after redirects — may differ from the requested one.
titlestring | nullRequireddescriptionstring | nullRequiredimagestring | nullRequiredsiteNamestring | nullRequiredtypestringRequiredvideo when the page advertises video content (og:type, a Twitter player card, or a known video host), article otherwise. Drives the player-card layout in the composer.
"video""article"curl -X POST "https://orbitwrite.com/api/v1/link-preview" \
-H "Authorization: Bearer $ORBITWRITE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com"
}'{
"preview": {
"url": "string",
"title": "string",
"description": "string",
"image": "string",
"siteName": "string",
"type": "video"
}
}