Skills catalog Domain intelligence

Social Media Preview

Helps humans and agents verify that a public page has a usable social sharing title, description, and image, with structured diagnostics for missing or unsafe metadata.

socialpreview v1 open live

Use This Skill

Endpoints

Method Path Status Modes
GET/POST /api/v1/social-preview live json

Input Contract

Provide url as an http or https URL up to 2048 characters. If no scheme is supplied, https is assumed. The checker follows up to five redirects. Private or reserved page targets and non-standard ports are blocked.

Output Contract

Returns a ready, partial, missing, or unavailable status; normalized and final URLs; redirect and HTTP status details; resolved title, description, site name, content type, canonical URL, Twitter card type, image URL, dimensions, fetch status, response content type, accessibility, and safety; boolean checks; warnings; and errors. Open Graph values take priority, followed by Twitter Card and ordinary HTML metadata.

Errors

Empty or invalid URL, unsupported scheme, embedded credentials, unsupported port, DNS resolution failure, private or reserved network target, request failure, invalid redirect, or redirect loop. Missing preview fields are returned as warnings with HTTP 200.

Auth and Limits

Anonymous JSON API for initial rollout. Use the /api/v1 endpoint for agents; browser form submissions remain protected by CSRF and reCAPTCHA.

JSON API uses the standard API throttle. Each request may perform up to five outbound page requests and up to three requests while validating the preview image.

Examples

Requests

GET /api/v1/social-preview?url=https://example.com/article
POST /api/v1/social-preview {"url":"https://example.com/article"}

Responses

{"skill":"socialpreview","status":"ready","has_preview":true,"title":"Example article","description":"An example summary.","image":{"url":"https://example.com/social.jpg","width":1200,"height":630,"status_code":200,"content_type":"image/jpeg","accessible":true,"display_safe":true},"checks":{"has_open_graph":true,"has_title":true,"has_description":true,"has_image":true,"image_is_accessible":true}}

FAQ

Does this exactly reproduce every social network?

No. Networks apply their own crawlers, caches, crops, and fallback rules. This skill shows the metadata the page currently advertises and an approximate card rendering.

What counts as ready?

A ready result has a title, description, and publicly displayable image. Partial results identify which core fields are missing.

Will unsafe image URLs be displayed?

No. Images using unsupported schemes, credentials, unresolved hosts, or private and reserved network addresses are reported but not rendered in the browser preview.

Related Skills