Protocols

Gossip Federation Protocol

The gossip protocol uses HTTP JSON for relay-to-relay communication. It is pull-based: each relay periodically fetches from its peers and merges results.

Pull (Default)

Relay B → GET https://relay-a.example.com/api/v1/federation/instances
Relay A → 200 OK + JSON array of instances
Relay B → Merges new instances into local store

Push (Optional)

Relay A → POST https://relay-b.example.com/api/v1/federation/instances/push
           Body: JSON array of instances
Relay B → 200 OK
Relay B → Merges new instances into local store

JSON Schema

Each instance in the federation payload:

{
  "id": "unique-instance-id",
  "url": "https://instance.example.com",
  "type": "searxng",
  "name": "My SearXNG",
  "region": "europe",
  "country": "de",
  "version": "1.0.0",
  "health_status": "healthy",
  "response_time_ms": 150,
  "uptime_percentage": 99.5,
  "cloudflare": false,
  "last_checked": "2026-06-19T12:00:00Z",
  "added_at": "2026-06-18T10:00:00Z"
}

Merge Rules

ConditionAction
Instance URL not in local storeAdd it
Instance URL exists, remote is newerUpdate fields
Instance URL exists, local is newerKeep local
Instance exists in local but not in remoteKeep local (no deletion)