List pages saved more than once
Groups of link items that share a normalised URL. The same page counts once with or without tracking
parameters, www., a fragment, a trailing slash, or http instead of https. Notes, quotes and to-dos
that carry a source URL are never grouped.
Each group names a suggested_keep_id: the copy the user put the most into. Lists count 3 each, a note 4,
a favourite 3 and each tag 1. A tie goes to the oldest copy.
bearerAuthorizationBearer <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.
cursor?stringSend the next_cursor from the previous page to get the next one
limit?integerHow many groups to return. Anything above 200 is treated as 200.
1 <= value50A page of duplicate groups
application/json- response
groups*array<>next_cursor?stringOnly there while more groups remain
curl -X GET 'https://example.com/v1/cleanup/duplicates'{ "groups": [ { "url": "string", "items": [ { "id": "string", "title": "string", "url": "string", "domain": "string", "tags": [ "string" ], "is_favourite": true, "has_note": true, "list_count": 0, "archived_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z" } ], "suggested_keep_id": "string" } ], "next_cursor": "string"}Keep a dead link POST
Hides a dead link from the report. It comes back only if the link is found dead again after it has answered once. The item itself is not changed.
Merge copies of one page POST
Folds copies of one page into the copy that stays, all in one transaction. The copy that stays gets: - every tag from the other copies - their notes, joined with a blank line (a note already inside another is not repeated, and if joining would pass 1 MB the kept note stays alone) - a favourite flag if any copy had one - a place in every list the other copies were in The other copies are deleted like any deleted item: a tombstone for sync, an `item.deleted` webhook event, and their stored files removed. A refused merge changes nothing.