Skip to content
Skip to Content
DevelopersAPI referenceCleanup

List pages saved more than once

GET
/v1/cleanup/duplicates

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.

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

cursor?string

Send the next_cursor from the previous page to get the next one

limit?integer

How many groups to return. Anything above 200 is treated as 200.

Range1 <= value
Default50

Response Body

A page of duplicate groups

application/json
  1. response
groups*array<>
next_cursor?string

Only there while more groups remain

Example Request
curl -X GET 'https://example.com/v1/cleanup/duplicates'
Example Response
{  "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"}