---
title: "Use this endpoint to get recent links."
method: GET
path: "/user/history"
---

# Use this endpoint to get recent links.

`GET /user/history`

Use this endpoint to get recent links.<br /> Recent link logging being disabled by default,<br /> this will return nothing until history logging has been activated in your account settings.<br /> <br /> Links older than 3 days are automatically deleted from the recent history.<br /> To keep links in your account, use the Saved links.<br />

## Query parameters

- `apikey` string
- `agent` string, required

## Response `200`

This endpoint retrieves a complete list of all available hosts for this user

- object
  - `status` string
  - `data` object
    - `links` object[]
      - `link` string
      - `filename` string
      - `size` integer
      - `date` integer
      - `host` string
  - `error` object
    - `code` string
    - `message` string

---

[API](https://skmtc.dev/alldebrid/apis/alldebrid-api.md) · [All operations](https://skmtc.dev/alldebrid/apis/alldebrid-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/alldebrid/alldebrid-api/revisions/4856488e3924/schema)
