# Arquivo.pt API reference

> Arquivo.pt is the Portuguese web archive. Its search API returns archived captures of web pages: full-text search over the archive, the list of preserved versions of one URL, and the metadata of a single capture. An investigator uses it to find how a page or site looked in the past, to confirm a…

Source: https://osinttools.io/apis/arquivo-pt/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/arquivo-pt/

- Base URL: https://arquivo.pt
- Authentication: No key needed.
- Rate limits: Full-text and URL search: 250 requests per 60 seconds per IP address. CDX server: 250 requests per 60 seconds per IP. Over the limit returns HTTP 429, and the docs warn that addresses exceeding limits can be permanently blocked.
- Vendor docs: https://github.com/arquivo/pwa-technologies/wiki/APIs
- OpenAPI spec: https://arquivo.pt/textsearch/api-docs/v3
- Java SDK: client-java-api, https://github.com/arquivo/client-java-api

## Overview

Arquivo.pt is the Portuguese web archive. Its search API returns archived captures of web pages: full-text search over the archive, the list of preserved versions of one URL, and the metadata of a single capture.

An investigator uses it to find how a page or site looked in the past, to confirm a page existed at a date, and to list every capture of a URL. A separate CDX server lists captures of a URL or a whole domain with their timestamps, status codes and content digests.

Calls are plain GET requests that return JSON; no key is mentioned in the docs. The docs state limits per IP address and say that addresses that exceed them can be permanently blocked. A full-text search returns at most 500 results per request, so page with `offset`.

## Errors

| Status | Meaning |
| --- | --- |
| 400 | No q, versionHistory or metadata given; q contains a URL; or an invalid parameter value |
| 404 | The requested version does not exist |
| 429 | Too many requests |

## Page search

### Full-text search over archived pages, with date, site, type and language filters.

`GET /textsearch`

- Takes: Name
- Footprint: passive (the target is not contacted)

Returns archived captures whose text matches all terms. Use quotes for exact phrases and a leading minus to exclude a term. A URL in q returns HTTP 400; use the version history endpoint for URLs. At most 500 results per request.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | Search terms; all must match Example: Albert Einstein |
| `from` | query | string | no | Captures on or after this timestamp, YYYYMMDDHHMMSS (shorter forms accepted) Example: 2005 |
| `to` | query | string | no | Captures on or before this timestamp; shorter forms use the start of the period Example: 20061231235959 |
| `type` | query | string | no | Comma-separated document types such as pdf, doc/docx, html Example: pdf |
| `siteSearch` | query | string | no | Comma-separated sites; *.host includes subdomains Example: *.example.org |
| `language` | query | string | no | Detected page language, ISO 639-1 Example: pt |
| `offset` | query | integer | no | Results to skip Example: 0 |
| `maxItems` | query | integer | no | Results per page, maximum 500 Example: 10 |
| `fields` | query | string | no | Comma-separated result fields to return Example: title,originalURL,tstamp |

Response fields:

- `serviceName` (string): Service name
- `estimated_nr_results` (integer): Estimated total results across all pages
- `next_page` (string): URL of the next page; omitted on the last page
- `response_items[].title` (string): HTML title of the page
- `response_items[].originalURL` (string): URL of the captured version
- `response_items[].linkToArchive` (string): Wayback-style link on Arquivo.pt
- `response_items[].tstamp` (string): UTC crawl time, YYYYMMDDHHMMSS
- `response_items[].digest` (string): Content hash
- `response_items[].mimeType` (string): MIME type
- `response_items[].collection` (string): Collection ID
- `response_items[].snippet` (string): HTML excerpt with query terms in <em>

```bash
curl 'https://arquivo.pt/textsearch?q=Albert%20Einstein'
```

Example response (200):

```json
{
  "serviceName": "Arquivo.pt - the Portuguese web-archive",
  "estimated_nr_results": 120,
  "next_page": "https://arquivo.pt/textsearch?q=example&offset=1",
  "response_items": [
    {
      "title": "Example page",
      "originalURL": "https://www.example.org/page",
      "linkToArchive": "https://arquivo.pt/wayback/20090709033948/https://www.example.org/page",
      "tstamp": "20090709033948",
      "digest": "0000000000000000000000000000000000000000",
      "mimeType": "text/html",
      "collection": "AWP4",
      "snippet": "An <em>example</em> excerpt"
    }
  ]
}
```

### List the preserved versions of one URL, newest first.

`GET /textsearch?versionHistory`

- Takes: URL, Domain
- Footprint: passive (the target is not contacted)

The protocol is ignored and the URL must be percent-encoded. Other full-text parameters do not apply.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `versionHistory` | query | string | yes | Percent-encoded URL whose versions to list Example: www.example.org |
| `from` | query | string | no | Versions on or after this timestamp Example: 2010 |
| `to` | query | string | no | Versions on or before this timestamp Example: 2015 |
| `offset` | query | integer | no | Versions to skip Example: 0 |
| `maxItems` | query | integer | no | Versions per page Example: 10 |

Response fields:

- `estimated_nr_results` (integer): Estimated total versions
- `response_items[].originalURL` (string): URL of the capture
- `response_items[].linkToArchive` (string): Wayback-style link on Arquivo.pt
- `response_items[].tstamp` (string): UTC crawl time, YYYYMMDDHHMMSS
- `response_items[].contentLength` (integer): Size in bytes
- `response_items[].statusCode` (integer): HTTP status when crawled
- `response_items[].mimeType` (string): MIME type

```bash
curl 'https://arquivo.pt/textsearch?versionHistory&versionHistory=www.example.org'
```

Example response (200):

```json
{
  "estimated_nr_results": 2,
  "response_items": [
    {
      "originalURL": "http://www.example.org/",
      "linkToArchive": "https://arquivo.pt/wayback/20120101000000/http://www.example.org/",
      "tstamp": "20120101000000",
      "contentLength": 20480,
      "statusCode": 200,
      "mimeType": "text/html"
    }
  ]
}
```

### Return the extracted plain text of one archived version.

`GET /textextracted`

- Takes: URL
- Footprint: passive (the target is not contacted)

Returns plain text. Returns HTTP 404 if the version has no extracted text.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `m` | query | string | yes | Version as <URL>/<timestamp>, percent-encoded Example: http://www.example.org/20120101000000 |

```bash
curl 'https://arquivo.pt/textextracted?m=http%3A%2F%2Fwww.example.org%2F20120101000000'
```

Example response (200):

```
Example page text extracted from the archived version.
```

## CDX server

### List captures of a URL, prefix, host or domain, one per line, with filters.

`GET /wayback/cdx`

- Takes: URL, Domain
- Footprint: passive (the target is not contacted)

Returns one capture per line in CDXJ by default; output=json gives one JSON object per line (newline-delimited, not an array). An empty 200 means no captures. Wildcards such as *.example.org are allowed in url.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | query | string | yes | URL to look up; wildcards allowed Example: example.org |
| `from` | query | string | no | Start of date range, inclusive Example: 2014 |
| `to` | query | string | no | End of date range, inclusive Example: 2014 |
| `matchType` | query | string | no | How url is matched Example: exact One of: exact, prefix, host, domain |
| `limit` | query | integer | no | Maximum lines, up to 100000 Example: 100 |
| `output` | query | string | no | Output format Example: json One of: cdxj, json, text, link |
| `filter` | query | string | no | Repeatable filter, field:[!][=|~]expression Example: =status:200 |
| `fields` | query | string | no | Comma-separated fields to return Example: url,timestamp,status |
| `collapseTime` | query | integer | no | Collapse consecutive same-status captures sharing the first n timestamp digits Example: 8 |

Response fields:

- `urlkey` (string): SURT-canonicalised URL
- `timestamp` (string): Capture time in UTC, YYYYMMDDhhmmss
- `url` (string): Original URL of the capture
- `mime` (string): MIME type, or warc/revisit
- `status` (string): HTTP status code; may be missing
- `digest` (string): SHA-1 payload digest, base32
- `length` (string): Compressed record length in bytes
- `offset` (string): Byte offset in the WARC/ARC file
- `filename` (string): WARC/ARC file holding the record
- `collection` (string): Arquivo.pt collection

```bash
curl 'https://arquivo.pt/wayback/cdx?url=example.org'
```

Example response (200):

```json
{
  "urlkey": "org,example)/",
  "timestamp": "20140101000000",
  "url": "http://www.example.org/",
  "mime": "text/html",
  "status": "200",
  "digest": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "length": "4096",
  "offset": "1024",
  "filename": "EXAMPLE-0001.warc.gz",
  "collection": "EAWP33"
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
