Skip to content
Skip to Content
DevelopersAPI referenceItems

Find saved items for a URL

GET
/v1/items/lookup

Lets the browser extension show an "already saved" badge. The match uses the normalised URL, so the same page saved from a newsletter and from a search result counts once.

Authorization

bearer
headerAuthorizationBearer <token>

A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Query Parameters

url*string
Formaturi

Response Body

Saved items with the same normalised URL, or an empty list

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://example.com/v1/items/lookup?url=http%3A%2F%2Fexample.com'
Example Response
{  "items": [    {      "id": "string",      "kind": "link",      "source": "api",      "url": "string",      "domain": "string",      "title": "string",      "description": "string",      "content": "string",      "content_html": "string",      "note": "string",      "tags": [        "string"      ],      "image_url": "string",      "favicon_url": "string",      "author": "string",      "publisher": "string",      "published_at": "2019-08-24T14:15:22Z",      "lang": "en",      "ai_tags": [        "string"      ],      "ai_caption": "string",      "ocr_text": "string",      "objects": [        "string"      ],      "ai_summary": "string",      "summary_edited": true,      "card": "article",      "details": {        "property1": "string",        "property2": "string"      },      "recipe": {        "description": "string",        "image": {          "url": "http://example.com",          "width": 1,          "height": 1,          "color": "string",          "asset_id": "string",          "source_url": "http://example.com",          "alt": "string"        },        "yield": "string",        "prep_minutes": 1,        "cook_minutes": 1,        "total_minutes": 1,        "ingredients": [          {            "group": "string",            "text": "string"          }        ],        "steps": [          {            "group": "string",            "text": "string"          }        ]      },      "product": {        "name": "string",        "brand": "string",        "description": "string",        "price": {          "amount": 0,          "currency": "string",          "list_amount": 0        },        "availability": "in_stock",        "rating": {          "value": 0,          "count": 1        },        "images": [          "http://example.com"        ],        "image_refs": [          {            "url": "http://example.com",            "width": 1,            "height": 1,            "color": "string",            "asset_id": "string",            "source_url": "http://example.com",            "alt": "string"          }        ],        "sku": "string"      },      "enrich_status": "none",      "enriched_at": "2019-08-24T14:15:22Z",      "palette": [        {          "hex": "#1e50d2",          "lab": [            0,            0,            0          ],          "weight": 0        }      ],      "color_words": [        "string"      ],      "thumbnail_url": "string",      "thumbnail_color": "string",      "animated_url": "string",      "thumbnail_width": 0,      "thumbnail_height": 0,      "thumbnail_status": "none",      "blurhash": "string",      "crawl_status": "none",      "content_quality": "full",      "reading_progress": {        "progress": 0,        "percent": 0,        "offset": 0,        "anchor": "string",        "updated_at": "2019-08-24T14:15:22Z"      },      "word_count": 1,      "reading_minutes": 1,      "dir": "ltr",      "excerpt": "string",      "lead_image": {        "url": "http://example.com",        "width": 1,        "height": 1,        "color": "string",        "asset_id": "string",        "source_url": "http://example.com",        "alt": "string"      },      "crawl_error": "string",      "crawled_at": "2019-08-24T14:15:22Z",      "capture_status": "none",      "capture_error": "string",      "captured_at": "2019-08-24T14:15:22Z",      "is_favourite": true,      "archived_at": "2019-08-24T14:15:22Z",      "completed_at": "2019-08-24T14:15:22Z",      "change_seq": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "deleted_at": "2019-08-24T14:15:22Z",      "shared": true,      "share_expires_at": "2019-08-24T14:15:22Z"    }  ]}

Save an item (safe to retry) POST

Saves a link, note, quote, highlight, to-do, image or PDF. Send a client-generated ULID as `id`, so that a retry or an offline-queued save never creates a duplicate. The answer is 201 the first time and 200 when an item with that `id` already exists for the caller. A link to a page the caller already saved (the same normalised URL; Amazon products by ASIN) is not saved again either: the answer is 200 with that item, brought back. Its saved date becomes now (so it is at the top of the feed) and it leaves the archive. A `note` sent replaces the old one, `tags` sent are added to its own, `is_favourite` is applied when sent, and a `title` or `description` is applied only when sent without `html` (with it, they are the tab's, not the user's). Fields not sent are kept, and the `html` is not stored. A retry with the `id` of that existing item changes nothing. Links are fetched in the background. Pass `html` (the page as rendered) to skip the fetch. Image and PDF files are uploaded first (`POST /v1/uploads`) and then saved here with `upload_id`. A Markdown file (`text/markdown`, at most 1 MB) uploaded the same way makes a `note`: the file's text is the note's text, and with no `title` the first `# ` heading is the title. Images may be JPEG, PNG, WebP, GIF, AVIF, HEIC, HEIF, JPEG XL, BMP, TIFF, Photoshop (PSD) or SVG; every one gets a JPEG thumbnail (SVG and PSD are drawn from their own data, transparent areas on white). SVG is stored as uploaded and always served as a download, never shown inline. A video (`video/mp4`, `video/quicktime`, `video/webm`, `video/x-matroska`, `video/x-msvideo`, for `.mp4 .mov .webm .mkv .avi`) or audio file (`audio/mpeg`, `audio/mp4`, `audio/wav`, `audio/aac`, `audio/aiff`, `audio/flac`, `audio/ogg`, for `.mp3 .m4a .wav .aac .aiff .flac .ogg`) uploaded the same way makes a `video` or `audio` item; `upload_id` is required, and `title` should be the file name. Video and audio may be up to the server's `MAX_MEDIA_UPLOAD_BYTES` (500 MB by default); other files `MAX_UPLOAD_BYTES`. The worker then reads the file with ffprobe and ffmpeg: a video's `card` is `video` and an audio file's `music`, with `details.duration` (and artist, album and year for audio) from the file's tags, a missing title is filled from its title tag, and the thumbnail is a frame of the video or the audio file's cover art, if it has one. Neither is sent to the AI. A note whose whole text sits inside one matching pair of quotation marks (`"…"`, `“…”`, `«…»`, `„…“`, `‘…’`, `「…」`) is saved as a `quote`. Check `kind` in the response. The text is kept exactly as sent. A `highlight` is text saved from somewhere (a selection on a page, with the page as `url`) without quoting it. A highlight or a note is saved as a `quote` instead when it is quoted: wrapped in quotation marks as above; one Markdown blockquote, every line that is not blank starting with `>` (the markers are dropped); or sent with `html` (the selection's HTML, used only for this and never stored) that is one `<blockquote>` or `<q>`. Imports keep the kind they came with, and an explicit `quote` is always a quote.

Delete many items POST

Deletes up to 200 of the user's items in one request and one transaction, each as `DELETE /v1/items/{id}` would: a tombstone for sync, an `item.deleted` webhook, and its files removed. Ids that are not the user's live items (unknown, someone else's, already deleted) are skipped, so repeating the request is harmless. Allowed while the library is read-only over its plan's limits. An API key needs write access to `items`.