Aller au contenu
GET /v1/archive

The thread numbers archived on a board, newest first

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/fourchan-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/fourchan-api/v1/archive" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fourchan-api/v1/archive", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fourchan-api/v1/archive");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/fourchan-api/v1/archive",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "The thread numbers archived on board /g/, newest first. Archived threads have fallen off the live catalog but their content is still retrievable — pass a no to /v1/thread (board=g, no=…) to read it in full (very old archived threads may already be purged). total_archived is how many threads are currently archived. Not every board has an archive. Pass board (required) and limit (1-1000).",
        "board": "g",
        "count": 100,
        "title": "Technology",
        "source": "4chan read-only JSON API (a.4cdn.org/{board}/archive.json)",
        "threads": [
            {
                "no": 109041871,
                "url": "https://boards.4chan.org/g/thread/109041871",
                "thread_endpoint": "/v1/thread?board=g&no=109041871"
            },
            {
                "no": 109041735,
                "url": "https://boards.4chan.org/g/thread/109041735",
                "thread_endpoint": "/v1/thread?board=g&no=109041735"
            },
            {
                "no": 109041665,
                "url": "https://boards.4chan.org/g/thread/109041665",
                "thread_endpoint": "/v1/thread?board=g&no=109041665"
            },
            {
                "no": 109041587,
                "url": "https://boards.4chan.org/g/thread/109041587",
                "thread_endpoint": "/v1/thread?board=g&no=109041587"
            },
            {
                "no": 109041468,
                "url": "https://boards.4chan.org/g/thread/109041468",
                "thread_endpoint": "/v1/thread?board=g&no=109041468"
            },
            {
                "no": 109040947,
                "url": "https://boards.4chan.org/g/thread/109040947",
                "thread_endpoint": "/v1/thread?board=g&no=109040947"
            },
            {
                "no": 109040896,
                "url": "https://boards.4chan.org/g/thread/109040896",
                "thread_endpoint": "/v1/thread?board=g&no=109040896"
            },
            {
                "no": 109040872,
                "url": "https://boards.4chan.org/g/thread/109040872",
                "thread_endpoint": "/v1/thread?board=g&no=109040872"
            },
            {
                "no": 109040815,
                "url": "https://boards.4chan.org/g/thread/109040815",
                "thread_endpoint": "/v1/thread?board=g&no=109040815"
            },
            {
                "no": 109040727,
                "url": "https://boards.4chan.org/g/thread/109040727",
                "thread_endpoint": "/v1/thread?board=g&no=109040727"
            },
            {
                "no": 109040116,
                "url": "https://boards.4chan.org/g/thread/109040116",
                "thread_endpoint": "/v1/thread?board=g&no=109040116"
            },
            {
                "no": 109039875,
                "url": "https://boards.4chan.org/g/thread/109039875",
                "thread_endpoint": "/v1/thread?board=g&no=109039875"
  
…