Skip to content
OSINTtools.io

Arquivo.pt API

Search or look up by URL the pages and images Portugal's web archive has preserved since 1996, over free JSON APIs.

Base URL
https://arquivo.pt
Sign-in
No key
Format
REST
Endpoints
4

Compiled by OSINTtools.io editors from github.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

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.

Quick start

  1. No key needed

    The Arquivo.pt API answers without an account or key.

  2. Make your first request

    Full-text search over archived pages, with date, site, type and language filters.. Replace the example values and run it in a terminal, or use Try it on the endpoint.

    curl 'https://arquivo.pt/textsearch?q=Albert%20Einstein'
  3. Read the response

    A 200 response looks like this.

    {
      "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"
        }
      ]
    }

Authentication

No key or account: every endpoint answers without one.

Rate limits and pricing

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.

Errors

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

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.

Query parameters

qstringrequiredtakes your name

Search terms; all must match

Example: Albert Einstein
fromstring

Captures on or after this timestamp, YYYYMMDDHHMMSS (shorter forms accepted)

Example: 2005
tostring

Captures on or before this timestamp; shorter forms use the start of the period

Example: 20061231235959
typestring

Comma-separated document types such as pdf, doc/docx, html

Example: pdf
siteSearchstring

Comma-separated sites; *.host includes subdomains

Example: *.example.org
languagestring

Detected page language, ISO 639-1

Example: pt
offsetinteger

Results to skip

Example: 0Default: 0
maxItemsinteger

Results per page, maximum 500

Example: 10Default: 50
fieldsstring

Comma-separated result fields to return

Example: title,originalURL,tstamp
Response fields · 11Show

serviceNamestring

Service name

estimated_nr_resultsinteger

Estimated total results across all pages

next_pagestring

URL of the next page; omitted on the last page

titlestring

HTML title of the page

originalURLstring

URL of the captured version

linkToArchivestring

Wayback-style link on Arquivo.pt

tstampstring

UTC crawl time, YYYYMMDDHHMMSS

digeststring

Content hash

mimeTypestring

MIME type

collectionstring

Collection ID

snippetstring

HTML excerpt with query terms in <em>

curl 'https://arquivo.pt/textsearch?q=Albert%20Einstein'
No key needed
Response
{
  "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"
    }
  ]
}

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

Query parameters

versionHistorystringrequiredtakes your url

Percent-encoded URL whose versions to list

Example: www.example.org
fromstring

Versions on or after this timestamp

Example: 2010
tostring

Versions on or before this timestamp

Example: 2015
offsetinteger

Versions to skip

Example: 0Default: 0
maxItemsinteger

Versions per page

Example: 10Default: 50
Response fields · 7Show

estimated_nr_resultsinteger

Estimated total versions

originalURLstring

URL of the capture

linkToArchivestring

Wayback-style link on Arquivo.pt

tstampstring

UTC crawl time, YYYYMMDDHHMMSS

contentLengthinteger

Size in bytes

statusCodeinteger

HTTP status when crawled

mimeTypestring

MIME type

curl 'https://arquivo.pt/textsearch?versionHistory&versionHistory=www.example.org'
No key needed
Response
{
  "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"
    }
  ]
}

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

Query parameters

mstringrequiredtakes your url

Version as <URL>/<timestamp>, percent-encoded

Example: http://www.example.org/20120101000000
curl 'https://arquivo.pt/textextracted?m=http%3A%2F%2Fwww.example.org%2F20120101000000'
No key needed
Response
Example page text extracted from the archived version.

CDX server

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.

Query parameters

urlstringrequiredtakes your url

URL to look up; wildcards allowed

Example: example.org
fromstring

Start of date range, inclusive

Example: 2014
tostring

End of date range, inclusive

Example: 2014
matchTypestring

How url is matched

Example: exactDefault: exactOne of: exact, prefix, host, domain
limitinteger

Maximum lines, up to 100000

Example: 100
outputstring

Output format

Example: jsonDefault: cdxjOne of: cdxj, json, text, link
filterstring

Repeatable filter, field:[!][=|~]expression

Example: =status:200
fieldsstring

Comma-separated fields to return

Example: url,timestamp,status
collapseTimeinteger

Collapse consecutive same-status captures sharing the first n timestamp digits

Example: 8
Response fields · 10Show

urlkeystring

SURT-canonicalised URL

timestampstring

Capture time in UTC, YYYYMMDDhhmmss

urlstring

Original URL of the capture

mimestring

MIME type, or warc/revisit

statusstring

HTTP status code; may be missing

digeststring

SHA-1 payload digest, base32

lengthstring

Compressed record length in bytes

offsetstring

Byte offset in the WARC/ARC file

filenamestring

WARC/ARC file holding the record

collectionstring

Arquivo.pt collection

curl 'https://arquivo.pt/wayback/cdx?url=example.org'
No key needed
Response
{
  "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"
}