Skip to content
Skip to Content
DevelopersAPI referenceSearch

Items like this one (Same Vibe)

GET
/v1/items/{id}/similar

The user's items closest in meaning to this one, nearest first, with score (1 minus the cosine distance). Empty while the item's embedding is not ready, or when semantic search is off. With image search on, items whose thumbnail looks like this one's are included too. Use it for a related-items panel and "more like this". With explain=true each hit carries match with the single reason semantic.

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.

Path Parameters

id*string

Query Parameters

kind?string
Value in"link""note""quote""highlight""todo""image""pdf""video""audio"
tag?string
limit?integer
Range1 <= value <= 100
Default30
offset?integer
Range0 <= value <= 1000
Default0
explain?boolean

Adds match (always reasons: [semantic]) to each hit. Off by default.

Defaultfalse

Response Body

The user's items closest to this one, nearest first

application/json
  1. response
hits*array<>
Example Request
curl -X GET 'https://example.com/v1/items/string/similar'
Example Response
{  "hits": [    {      "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",      "score": 0,      "match": {        "reasons": [          "title"        ],        "tag": "string",        "object": "string",        "colour": "string",        "snippet": "string",        "snippet_field": "content",        "snippet_matches": [          [            0,            0          ]        ]      }    }  ]}

Search items GET

Finds items by keywords, by meaning (when embeddings are configured), by exact tag, object and colour matches, and by near-miss title spellings, then merges the results into one ranking. `q` takes free text plus operators. Put `-` in front of an operator to leave out what it matches. - `type:` the kind of item (aliases such as `website` for links and `snippet` for quotes work too); `format:pdf` is `type:pdf` - `tag:`, `domain:`, `object:` a tag, a site, or something the AI saw in an image. `site:youtube`, without a TLD, matches youtube.com, youtube.co.uk and their subdomains - `color:` a colour word such as `blue`, or a hex colour such as `#3b82f6` (finds images with a swatch near it) - `card:` article, product, recipe, book, film, series, music, video, place, ticket or trip - `text:` words that must appear in the text, with no matching by meaning - `"a phrase"` in the free text must appear, as with `text:`, and still counts towards the ranking - `is:favourite`, `is:archived`, and `is:done` or `is:open` for to-dos - `after:`, `before:` and `date:` for when it was saved. `date:` takes YYYY, YYYY-MM, YYYY-MM-DD, today, yesterday, this-week, last-week, this-month, last-month, this-year or last-year (UTC), or a day by its month's name: `date:may-19`, `date:"19th may"`, `date:may-19-2024` (without a year, the most recent one that is not in the future) - `-word` and `-"a phrase"` leave out items that contain it - `a || b` finds what either side finds, in one ranking (`tag:cats || tag:dogs`); up to 4 alternatives, each with its own words and operators A query can use up to 12 operators, exclusions and quoted phrases, over all its alternatives. Without free text, matching items are listed newest first with a score of 0. With a hex colour they are listed closest colour first. See docs/SEARCH.md. With `explain=true` each hit carries `match` (see `Match`): the ranked lists the item came from, the tag, object or colour word that matched, and a plain-text snippet. It is worked out in the ranking query itself, over the page of hits, not with a request per hit. Without free text nothing is ranked, so `match` lists the filters that admitted the item (`tag:`, `object:`, `color:`, `domain:`, `text:`) and is left out when there are none of those.

List the caller's annotations on an item GET

In reading order: by `offset` where known, then oldest first. Each reader has their own annotations: the item's owner, and the owner or accepted members of a list the item is in. Anyone else gets 404, as for a deleted item. An API key needs read access to `items`.