Community Archive logo
Agent-friendly documentation

Build with the archive

Download the daily data export, query public records through the API, or give an agent one canonical starting point.

API v1 is live

The keyed Community Archive API at https://analytics.community-archive.org/v1 replaces the public Supabase REST API, which is retired on 19 November 2026. Move existing integrations before then; new projects should start on v1.

Point an agent here

https://www.community-archive.org/llms.txt

This plain-text index includes the data dump, API credentials, query examples, schema notes, and deeper documentation links.

Choose an access path

Choose the policy-safe surface that fits your query.

Bulk Parquet export

Download tweets and profiles for bulk analysis. Each daily export checks current membership and opt-outs before publication.

One raw archive

Signed-in owners can download their own processed archive JSON while current PostgreSQL policy permits it.

https://www.community-archive.org/api/archive/<username>

Bulk Parquet export

The daily package contains enriched tweets.parquet, separate profiles.parquet, and a manifest.json with row counts, schemas, and checksums. It includes eligible members and applies current consent to referenced authors too.

Use the latest release link below to find the most recent successful export. GitHub lists the download links; the files stay in consent-managed storage. Superseded packages are removed, so bookmark the latest release rather than an individual Parquet URL. Downloads may be temporarily withdrawn when consent changes.

What can I build or discover?

  • Find a remembered quote, reply, link, or old discussion.
  • Revisit your own themes, collaborators, and changing interests.
  • Follow emerging ideas with Trends, Bangers, and the Digest.
  • Trace people, projects, events, and intellectual lineages.
  • Build a personal canon, visualization, or research dataset.
  • Analyze public interaction networks and communities.
More examples and starting points

API quickstart

Sign in, create a key on the API keys page, and send it as Authorization: Bearer cak_... on every request to https://analytics.community-archive.org/v1. Keep the key on your server or in your script, never in browser code. The full contract is the OpenAPI document.

cURL

export CA_API_KEY='cak_...'   # create one at https://www.community-archive.org/settings/api-keys

# One account's tweets, newest first (page with next_cursor until it is null)
curl --get "https://analytics.community-archive.org/v1/accounts/exgenesis/tweets" \
  -H "Authorization: Bearer $CA_API_KEY" \
  --data-urlencode "order=desc" \
  --data-urlencode "limit=5"

# Full-text search
curl --get "https://analytics.community-archive.org/v1/tweets/search" \
  -H "Authorization: Bearer $CA_API_KEY" \
  --data-urlencode "q=community archive" \
  --data-urlencode "limit=5"

JavaScript

const API = 'https://analytics.community-archive.org/v1'
const headers = { Authorization: `Bearer ${process.env.CA_API_KEY}` }

// Every tweet from one account, following the cursor
let cursor = null
do {
  const url = new URL(`${API}/accounts/exgenesis/tweets`)
  url.searchParams.set('order', 'asc')
  url.searchParams.set('limit', '200')
  if (cursor) url.searchParams.set('cursor', cursor)

  const response = await fetch(url, { headers })
  if (response.status === 429 || response.status === 503) {
    const wait = Number(response.headers.get('Retry-After') ?? '5')
    await new Promise((resolve) => setTimeout(resolve, wait * 1000))
    continue
  }
  if (!response.ok) throw new Error(`${response.status} ${await response.text()}`)

  const page = await response.json()
  for (const tweet of page.data) console.log(tweet.created_at, tweet.full_text)
  cursor = page.next_cursor
} while (cursor)

Routes

  • GET /v1/tweets/{tweet_id} — one tweet; ?ids= for up to 100
  • GET /v1/tweets?since=&until= — every tweet in a window of up to 31 days
  • GET /v1/tweets/search?q= — full-text search
  • GET /v1/accounts/{account} — profile by ID or username; /tweets, /likes, /followers, /following beneath it
  • GET /v1/members — every current member
  • GET /v1/me — your key and its limits

Rules

  • Responses are {data, next_cursor, request_id}. Page until next_cursor is null, not until a page is short.
  • Limits: 60 requests a minute and 20,000 a day per key, two in flight per account. On 429 or 503, wait Retry-After seconds and retry.
  • A 422 means the request was too broad for its query budget; narrow it, for example with a date range.
  • Treat Twitter IDs as strings, not numbers.
  • Deleted and opted-out tweets are omitted, so pages can hold fewer items than limit.

Legacy Supabase REST API

The PostgREST API served by Supabase is retired on 19 November 2026 in favour of v1 above. It keeps working until then; follow the call-by-call migration guide to move. Send the public anon key in both the apikey and Authorization headers. The anon key is intentionally public; never use a service-role key in client code.

cURL

export CA_API_URL='https://fabxmporizzqflnftavs.supabase.co'
export CA_ANON_KEY='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZhYnhtcG9yaXp6cWZsbmZ0YXZzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjIyNDQ5MTIsImV4cCI6MjAzNzgyMDkxMn0.UIEJiUNkLsW28tBHmG-RQDW-I5JNlJLt62CSk9D_qG8'

curl --get "$CA_API_URL/rest/v1/enriched_tweets" \
  -H "apikey: $CA_ANON_KEY" \
  -H "Authorization: Bearer $CA_ANON_KEY" \
  --data-urlencode "select=tweet_id,username,created_at,full_text" \
  --data-urlencode "username=ilike.defenderofbasic" \
  --data-urlencode "order=created_at.desc" \
  --data-urlencode "limit=5"

JavaScript

import { createClient } from '@supabase/supabase-js'

const supabase = createClient(
  'https://fabxmporizzqflnftavs.supabase.co',
  process.env.CA_ANON_KEY,
)

const { data, error } = await supabase
  .from('enriched_tweets')
  .select('tweet_id, username, created_at, full_text')
  .ilike('username', 'defenderofbasic')
  .order('created_at', { ascending: false })
  .limit(5)

if (error) throw error
console.log(data)

Useful resources

  • enriched_tweets — joined tweet and account data
  • tweets — core tweet records
  • all_account — accounts and usernames
  • all_profile — bios and profile media
  • user_directory — directory-ready account data

Query rules

  • Username casing is preserved; use ilike when the original casing is unknown.
  • Treat Twitter IDs as strings, not numbers.
  • Request only the columns you need with select.
  • Paginate large results; responses are capped at 1,000 rows.
  • Use a stable order when paging through changing data.

Deeper docs

The repository contains schema guidance and complete examples.