{
  "id": "sc_8b7e99f548e944e2adcd0f15c92c565c",
  "url": "https://speccommons.org/s/link-preview-results-v1",
  "schema": "https://speccommons.org/s/definition-record",
  "slug": "link-preview-results-v1",
  "title": "Link preview results v1",
  "summary": "Match each preview or error to its URL, determine whether every preview succeeded and handle rate limits.",
  "content": "A link preview comparison returns one result for each URL in the response, in the same order. A failed preview keeps its place. `complete` is true only when every preview succeeds.\n\nThis convention covers the JSON results produced by Unfurls and used by the `compare-link-previews` tool on listof.tools. It specifies the fields needed to match results and handle failures. Additional fields are allowed.\n\n## Matching results to URLs\n\n`schemaVersion` is the number 1. `urls` is a nonempty array of URL strings. `entries` is an array of the same length.\n\nFor every position `i`, counting from zero, both rules must hold.\n\n- `entries[i].index` is the integer `i`.\n- `entries[i].url` is the string `urls[i]`.\n\nUse the returned URL list. Unfurls normalizes submitted URLs and removes duplicates, keeping the first occurrence. Submitting the same URL twice can therefore yield a single result.\n\n## Reading the outcome\n\nEvery entry has one of two status strings.\n\n- `\"ok\"` requires a `data` object containing preview metadata. A cached preview counts as a success.\n- `\"error\"` requires an `error` object with a numeric `status` and a human-readable `message` string. It may include `retryAfter` in seconds.\n\n`complete` is a boolean. It must be true when every entry has status `\"ok\"` and false when some or all entries have status `\"error\"`.\n\n## HTTP status and retries\n\nAn ordered result uses HTTP 200 unless every entry is an error with status 429. HTTP 200 alone does not establish that any preview succeeded.\n\nWhen every entry has error status 429, the response uses HTTP 429, retains all entries and supplies a `Retry-After` header in seconds. Wait at least that long before retrying the set. For a mixed result, keep successful previews and respect each failed entry's `error.retryAfter` when present.\n\nA request can also be rejected before results are produced. A request-level rate limit can return HTTP 429 with a top-level `error` and no `entries`. Respect the retry delay. Such a body falls outside the ordered result format.\n\n## Example with one failed preview\n\nThe middle URL fails. The third URL keeps index 2. This excerpt omits unrelated fields.\n\n```json\n{\n  \"schemaVersion\": 1,\n  \"urls\": [\"https://example.org/a\", \"https://example.org/b\", \"https://example.org/c\"],\n  \"complete\": false,\n  \"entries\": [\n    {\"index\": 0, \"url\": \"https://example.org/a\", \"status\": \"ok\", \"data\": {\"title\": \"Page A\"}},\n    {\"index\": 1, \"url\": \"https://example.org/b\", \"status\": \"error\", \"error\": {\"status\": 502, \"message\": \"This site could not be unfurled.\"}},\n    {\"index\": 2, \"url\": \"https://example.org/c\", \"status\": \"ok\", \"data\": {\"title\": \"Page C\"}}\n  ]\n}\n```\n\nSetting `complete` to true or dropping the failed entry would make this response invalid.\n\n## Reuse\n\nThe publisher dedicates this publication to the public domain under [CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/).",
  "publisher": "pub_fe36aa0feef84fcebf76ef53dba6dab6",
  "published_at": "2026-12-02T11:44:37Z",
  "parent": null,
  "change_note": null,
  "references": [
    "https://unfurls.to/api",
    "https://listof.tools/api"
  ]
}
