FairGazette
Open Syndication API · No API Key Required to Start

Build on FairGazette’s structured local & global news API.

Newsletters, civic dashboards, Discord/Slack bots, and AI agents can query our edge-cached REST, GraphQL, and RSS endpoints for free under the FairGazette Open Syndication License.

Open Syndication License (Attribution & Backlinks)

Free for commercial and non-commercial use provided you: (1) include a clickable backlink to https://fairgazette.com/s/<slug> (fairgazetteUrl) crediting FairGazette, and (2) preserve direct links to the original publishers.

GraphQL Endpoint (POST /v1/graphql)

Served from an in-memory Rust snapshot (sub-millisecond latency). Visit GET http://fairgazette-api/v1/graphql for the full SDL schema.

curl -sS -X POST http://fairgazette-api/v1/graphql \
  -H 'Content-Type: application/json' \
  -d '{"query":"{ stories(query: \"within:25mi(Oakland) -paywall:paywalled\", limit: 5) { headline fairgazetteUrl primaryLocationText distanceMiles articleCount articles { sourceName canonicalUrl paywallTier framing { tone emotionalConjugations { phrase neutralEquivalent } } } } }"}'

REST, Map & RSS Endpoints

  • GET http://fairgazette-api/v1/stories?q=within:150mi(Beirut)+include_broader:true — Clustered stories with multi-location coordinates, topics, entities, and framing signals.
  • GET http://fairgazette-api/v1/map?q=within:25mi(Oakland) — Geo-pinned story clusters with linked source URLs.
  • GET http://fairgazette-api/v1/sources — Active global & local source directory.
  • GET https://fairgazette.com/feed.xml — Public RSS 2.0 feed; /news-sitemap.xml — 48-hour Google News Sitemap.

Watch DSL & Optional Signed-In API Keys

Supports within:25mi(City), include_broader:true|false, global_min_sources:3, topic:, tag:, source:, -paywall:paywalled, and tone:factual. No API key is required for normal cached reads; signed-in accounts can optionally mint a free API key for higher dedicated rate limits.