Media, products, notes and links

See canonical JSON examples for recommendations, notes and saved web pages.

On this page

Reference item bodies

The examples are validation fixtures for media@1, product@1, note@1 and link@1. Use the envelope to store revision and provenance information.

Download

Media

The medium identifies the recommendation type. External identifiers and resolution details can help match it.

json
{
  "medium": "movie",
  "title": "demo",
  "creators": [],
  "year": 1000,
  "external_ids": {
    "openlibrary": null,
    "isbn": null,
    "musicbrainz": null,
    "tmdb": null,
    "imdb": null,
    "podcastindex": null,
    "feed_url": "https://example.invalid/item",
    "igdb": null
  },
  "genres": [],
  "runtime_seconds": 0,
  "pages": 1,
  "episodes": 1,
  "links": [],
  "recommendation": null,
  "quote": null,
  "list_context": {
    "label": null,
    "position": 1,
    "total": 1
  },
  "music_unit": "recording",
  "platforms": [],
  "edition": null,
  "language": null,
  "resolution": {
    "status": "matched",
    "confidence": 0,
    "attribution": [],
    "candidates": []
  }
}

For TV, Pigeon's per-save watched state maps episode keys to ISO 8601 timestamps. Use s2e5 for season 2, episode 5. When either number is unknown, use the catalogue and episode ID, such as tvmaze:123 or tmdb:456. Legacy bare numeric keys are TVmaze episode IDs. Pigeon converts them when the matching TVmaze episodes load. The media body’s episodes field is the show's total episode count.

Product

A recommendation can have evidence, alternatives and offers.

json
{
  "name": "demo",
  "brand": null,
  "variant": null,
  "category": null,
  "gtin": null,
  "url": "https://example.invalid/item",
  "comparison": {
    "versus": [],
    "verdict": null
  },
  "pros": [],
  "cons": [],
  "grocery": false,
  "evidence": {
    "quote": "demo",
    "intent": "recommended",
    "specific": false
  },
  "resolution": {
    "status": "matched",
    "confidence": 0,
    "attribution": [],
    "candidates": []
  },
  "offers": []
}

Note

A note can collect sections, links and recognized entities.

json
{
  "title": "demo",
  "summary": "demo",
  "sections": [],
  "links": [],
  "entities": [],
  "guessed_kind": null,
  "tags": []
}

A link keeps the URL, page metadata and context from the save.

json
{
  "url": "https://example.invalid/item",
  "canonical_url": "https://example.invalid/item",
  "host": "demo",
  "title": "demo",
  "description": "demo",
  "site_name": null,
  "author": null,
  "published_at": null,
  "reading_minutes": 1,
  "image_url": "https://example.invalid/item",
  "context": "demo",
  "origin": "page",
  "metadata": "read"
}