Retrieves an archive file by link ID
GET/api/v1/archives/:linkId
Retrieves an archive file in the specified format.
Request
Path Parameters
linkId stringrequired
The ID of the desired link
Query Parameters
0
: PNG1
: JPEG2
: PDF3
: Readability JSON4
Monolith HTML
format integer
Possible values: [0
, 1
, 2
, 3
, 4
]
The numeric value corresponding to the format of the file being uploaded:
preview boolean
Indicates whether to return a preview of the archive.
Responses
- 200
- 401
- 403
- 404
Archive file retrieved successfully.
- application/json
- Schema
- Example (auto)
Schema
response object
The archive file.
{
"response": {}
}
Unauthorized
- application/json
- Schema
- Example (auto)
Schema
response string
{
"response": "string"
}
Forbidden
- application/json
- Schema
- Example (auto)
Schema
response string
{
"response": "string"
}
The requested archive file was not found.
- application/json
- Schema
- Example (auto)
Schema
response string
{
"response": "string"
}
Authorization: http
name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://docs.linkwarden.app/api/v1/archives/:linkId");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());