oEmbed Discovery & Response Auditor avatar

oEmbed Discovery & Response Auditor

Pricing

Pay per usage

Go to Apify Store
oEmbed Discovery & Response Auditor

oEmbed Discovery & Response Auditor

Audits a public page's oEmbed discovery link and endpoint response against the oEmbed 1.0 spec. Validates link rel=alternate discovery, required type/version fields per declared type, and HTTPS.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Sanskar Jaiswal

Sanskar Jaiswal

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Security

Limited permissions

Share

Audits a public page for oEmbed discovery and validates the discovered endpoint response against the oEmbed 1.0 specification. oEmbed lets a site embed rich representations of other sites' content (photos, videos, and rich HTML widgets) by auto-discovering a provider endpoint through a <link rel="alternate"> tag and fetching a small structured JSON (or XML) response.

Use cases

  • CMS, blogging platform, and link-preview engineering teams verifying their own oEmbed discovery and endpoint are spec-conformant before launch or after a template change.
  • Embedding-client and widget developers validating third-party oEmbed providers before integrating them.
  • SEO and content-tooling consultants auditing a client's social/embed readiness as part of a broader technical audit.
  • CI/CD pipelines validating /.well-known-adjacent oEmbed discovery after reverse-proxy, CMS, or template changes.

Input

FieldTypeRequiredDescription
startUrlstringyesPublic page URL to audit for oEmbed discovery links, e.g. a blog post or media page.
endpointOverridestringnoIf set, skip HTML discovery and directly validate this oEmbed endpoint URL instead.
timeoutSecondsintegernoRequest timeout, 3-30 seconds. Default 10.
maxResponseBytesintegernoMax bytes read from the page HTML and the oEmbed response body. Default 1000000 (1 MB).

Output

One JSON object per run, pushed to the default dataset.

FieldTypeDescription
inputUrlstringThe page URL provided as input.
pageFinalUrlstring|nullFinal page URL after redirects (null if endpointOverride was used).
discoveryLinksarrayDiscovered <link rel="alternate"> oEmbed tags: type, href, resolvedUrl, title.
endpointTestedbooleanWhether an oEmbed endpoint URL was found (or supplied) and tested.
endpointUrlstring|nullThe oEmbed endpoint URL that was tested.
endpointStatusinteger|nullHTTP status code returned by the endpoint.
endpointHttpsbooleanWhether the endpoint was served over HTTPS.
endpointContentTypestring|nullContent-Type header returned by the endpoint.
isXmlResponsebooleanWhether the response was the XML oEmbed format rather than JSON.
jsonValidbooleanWhether the JSON response body parsed successfully.
oembedTypestring|nullDeclared type member: photo, video, link, or rich.
oembedVersionstring|nullDeclared version member.
fieldValidationIssuesarraySpec violations found in the response fields.
checksarrayPer-check breakdown: name, status, note, weight, recommendation.
issuesarrayDeduplicated list of all issues found.
scoreintegerReadiness score, 0-100.
gradestringLetter grade, A+ to F.
checkedAtstringISO timestamp of the audit.
recommendationsarrayActionable fixes.
errorstring|nullTop-level page-fetch error, if any.

Example input

{
"startUrl": "https://www.flickr.com/photos/bees/2341623661/",
"timeoutSeconds": 10
}

Example output

{
"inputUrl": "https://www.flickr.com/photos/bees/2341623661/",
"discoveryLinks": [
{
"type": "application/json+oembed",
"href": "https://www.flickr.com/services/oembed/?url=...&format=json",
"resolvedUrl": "https://www.flickr.com/services/oembed/?url=...&format=json",
"title": "oEmbed Profile"
}
],
"endpointTested": true,
"endpointStatus": 200,
"endpointHttps": true,
"endpointContentType": "application/json; charset=utf-8",
"isXmlResponse": false,
"jsonValid": true,
"oembedType": "photo",
"oembedVersion": "1.0",
"fieldValidationIssues": [],
"score": 100,
"grade": "A+",
"issues": [],
"recommendations": ["oEmbed discovery and response look spec-conformant. Re-run this audit after template/provider changes to catch regressions."]
}

What the spec requires

Per the oEmbed 1.0 specification:

  • A provider page SHOULD declare discovery via <link rel="alternate" type="application/json+oembed" href="..."> (and optionally a second link with type="text/xml+oembed") so embedding clients can find the endpoint without hardcoded provider logic.
  • The oEmbed endpoint response is a JSON (or XML) object with required type (photo, video, link, or rich) and version ("1.0") members.
  • type: photo responses require url, width, and height.
  • type: video and type: rich responses require html, width, and height.
  • type: link responses require only type and version; other optional members (title, author_name, author_url, provider_name, provider_url, cache_age, thumbnail_url, thumbnail_width, thumbnail_height) MAY be present on any type and must have the documented types when present.

Security

  • Public HTTP/HTTPS only. URL credentials are rejected.
  • Localhost and private/link-local IPv4 and IPv6 literal ranges (RFC 1918, RFC 3927, and IPv6 unique-local/link-local equivalents, including bracketed IPv6 literals) are blocked.
  • Hostnames are DNS-resolved and resolved addresses are re-checked against the same private-range rules before any request is made (SSRF defense in depth).
  • Redirects are manually followed and each hop is revalidated with the same SSRF checks before the next request is made (max 3 hops).
  • Response bodies (both the page HTML and the oEmbed endpoint body) are capped at maxResponseBytes (default 1 MB).
  • Only the audited page and the one discovered (or supplied) oEmbed endpoint URL are ever fetched; no other links found in the page or response are fetched by this actor.
  • No login, no credential collection, no private-data extraction.

Pricing

EventPrice (USD)
Actor start$0.005
Page audited$0.01

Apify takes a 20% platform commission; the operator keeps 80%.

FAQ

What if a page has no oEmbed discovery link at all? The audit still runs, scores the missing-discovery check as a hard miss, and returns a recommendation to publish a discovery link. No endpoint is tested in that case.

What if I already know the oEmbed endpoint URL and don't want HTML discovery? Set endpointOverride to the exact endpoint URL (including any url= query parameter your provider requires); the actor will skip page discovery and validate that endpoint directly.

Does this actor support the XML oEmbed format? It detects XML responses by Content-Type and reports it, but field-level validation (required members per type) is only performed on the JSON format, since JSON is the format recommended by the current spec and used by the overwhelming majority of real-world providers.

Why does type: link score 100 with so few fields? The oEmbed spec genuinely requires only type and version for the link type; this actor does not penalize spec-compliant minimal responses.