Skip to content
Skip to Content
DevelopersAPI referenceCleanup

Cleanup counts at a glance

GET
/v1/cleanup

The numbers for the top of a cleanup page. Nothing is checked when you call this; it reads what the checks found.

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.

Response Body

Counts of links, dead links and duplicates

application/json
  1. response
links*integer

Live link items

checked*integer

Of those, how many have been checked at least once

dead*integer

Dead links the user has not chosen to keep

suspect*integer

Links that are failing but not yet confirmed dead

duplicate_groups*integer

Pages saved more than once

duplicate_items*integer

Copies beyond the first of each page, so the number a full cleanup would remove

last_checked_at*|

The most recent check of any of the user's links

Formatdate-time
Example Request
curl -X GET 'https://example.com/v1/cleanup'
Example Response
{  "links": 0,  "checked": 0,  "dead": 0,  "suspect": 0,  "duplicate_groups": 0,  "duplicate_items": 0,  "last_checked_at": "2019-08-24T14:15:22Z"}