Discover/AllSides API
live

AllSides APIallsides.com

Access AllSides media bias ratings, balanced news roundups, and perspective-filtered headlines via 5 endpoints. Compare Left, Center, and Right coverage of the same stories.

Endpoint health
verified 4d ago
get_headline_roundups
get_media_bias_ratings
get_headline_roundup_detail
get_news_articles_by_perspective
search_allsides
5/5 passing latest checkself-healing
Endpoints
5
Updated
22d ago

What is the AllSides API?

The AllSides API exposes 5 endpoints covering media bias ratings, multi-perspective headline roundups, and keyword search across AllSides content. Use get_headline_roundup_detail to pull a single story's articles grouped by Left, Center, and Right perspective alongside source names and headlines, or call get_media_bias_ratings to retrieve paginated bias scores and rating images for hundreds of news outlets.

Try it

No input parameters required.

api.parse.bot/scraper/aeaabc35-896b-4ab6-a8f7-1f9f4240d41a/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/aeaabc35-896b-4ab6-a8f7-1f9f4240d41a/get_headline_roundups' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace allsides-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: AllSides SDK — balanced news, media bias ratings, and multi-perspective roundups."""
from parse_apis.allsides_api import AllSides, Perspective, RoundupNotFound

client = AllSides()

# List recent headline roundups — each groups Left/Center/Right coverage of one story.
for roundup in client.roundups.list(limit=3):
    print(roundup.title, roundup.perspectives)

# Drill into the first roundup's sub-resource articles for per-perspective detail.
roundup = client.roundups.list(limit=1).first()
if roundup:
    for article in roundup.articles.list(limit=5):
        print(article.perspective, article.headline, article.source)

# Filter current news by political perspective using the Perspective enum.
for article in client.newsarticles.list_by_perspective(perspective=Perspective.RIGHT, limit=5):
    print(article.headline, article.link)

# Browse media bias ratings — paginated, returns source name + bias label.
for source in client.mediasources.list(limit=5):
    print(source.name, source.bias, source.slug)

# Search across all AllSides content by keyword.
for result in client.searchresults.search(query="immigration", limit=5):
    print(result.title, result.source, result.type)

# Typed error handling: catch RoundupNotFound when a slug is invalid.
try:
    bad_roundup = client.roundups.list(limit=1).first()
    if bad_roundup:
        for art in bad_roundup.articles.list(limit=1):
            print(art.headline)
except RoundupNotFound as exc:
    print(f"Roundup gone: {exc}")

print("exercised: roundups.list / roundup.articles.list / newsarticles.list_by_perspective / mediasources.list / searchresults.search")
All endpoints · 5 totalmissing one? ·

Fetch recent headline roundups from AllSides. Each roundup groups articles from Left, Center, and Right perspectives on a single news story. Returns all roundups currently displayed on the recent roundups page — no pagination, no filtering.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "roundups": "array of headline roundup summaries with title, link, date, and perspective labels"
  },
  "sample": {
    "data": {
      "roundups": [
        {
          "date": null,
          "link": "https://www.allsides.com/story/elections-graham-platner-wins-senate-nomination-democrats-divided-future-party",
          "title": "Graham Platner Wins Senate Nomination, Democrats Divided on Future of Party",
          "perspectives": [
            "From the Center",
            "From the Left",
            "From the Right"
          ]
        }
      ]
    },
    "status": "success"
  }
}

About the AllSides API

Headline Roundups and Perspectives

The get_headline_roundups endpoint returns a list of story roundups, each with a title, link, date, and perspective labels. To drill into a specific story, pass its slug (e.g. /story/china-us-china-negotiations-who-has-upper-hand) to get_headline_roundup_detail, which returns an articles array where each item carries a perspective field (Left, Center, or Right), a headline, the originating source, and a link. A tags array and a summary field are also included at the roundup level.

Perspective-Filtered News Feed

get_news_articles_by_perspective accepts a single required perspective parameter — Left, Center, or Right — and returns the current balanced news feed filtered to that political category. Each article object includes headline, link, source, and perspective. This is useful for monitoring how outlets of a specific lean are covering breaking topics at any given moment.

Media Bias Ratings

get_media_bias_ratings provides paginated access to AllSides bias assessments for news sources. Pagination is zero-based via the page parameter, and an optional featured boolean narrows results to highlighted sources. Each record in the sources array includes name, slug, bias (the rating label), and bias_image (a URL to the visual rating indicator). The total field in the response tells you how many sources match your filter.

Search

search_allsides takes a required query string and an optional zero-based page integer. Results include title, link, source, snippet, and type — the content type field lets you distinguish between news articles, media bias pages, and other AllSides content types in a single query.

Reliability & maintenanceVerified

The AllSides API is a managed, monitored endpoint for allsides.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when allsides.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official allsides.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4d ago
Latest check
5/5 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a media bias lookup tool that shows a news outlet's bias rating and bias_image from get_media_bias_ratings.
  • Aggregate Left, Center, and Right coverage of the same event by fetching get_headline_roundup_detail for a given story slug.
  • Monitor breaking news from a specific political lean by polling get_news_articles_by_perspective with the Left, Center, or Right parameter.
  • Populate a research dashboard with paginated bias ratings for hundreds of sources using the page and featured filters.
  • Search AllSides content by keyword with search_allsides to surface relevant story roundups, bias pages, or articles by type.
  • Compare how headline framing differs across perspectives for the same story using the headline and source fields in roundup detail responses.
  • Tag news articles in a dataset with bias context by matching source names against get_media_bias_ratings results.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does AllSides offer an official developer API?+
AllSides does not publish a public developer API. This Parse API provides structured access to AllSides data across 5 endpoints.
What does `get_headline_roundup_detail` return beyond the article list?+
In addition to the articles array (each with perspective, headline, source, and link), the response includes a top-level headline string for the roundup, a summary field, and a tags array. The slug parameter accepts either a path like /story/topic-slug-name or a full URL.
Does `get_media_bias_ratings` return individual journalist or author ratings?+
The endpoint covers news source-level ratings — each record reflects a publication or outlet, not an individual journalist. The sources array returns name, slug, bias, and bias_image per outlet. You can fork this API on Parse and revise it to add an endpoint targeting individual author or journalist bias data if AllSides exposes that separately.
Is there an endpoint for historical bias rating changes over time for a source?+
Not currently. The API returns the current bias rating and image for each source via get_media_bias_ratings, with no historical change data. You can fork the API on Parse and revise it to add an endpoint that captures rating history if that data becomes accessible.
How does pagination work in `search_allsides` and `get_media_bias_ratings`?+
Both endpoints use zero-based page indexing via the page integer parameter. The response always includes a total field indicating the full count of matching records, and a page field confirming which page was returned. Start at page=0 and increment until you have retrieved all results.
Page content last updated . Spec covers 5 endpoints from allsides.com.
Related APIs in News MediaSee all →
news.un.org API
Access UN News headlines, stories, and articles organized by topic and region across multiple languages. Search news content, retrieve in-depth reports, and subscribe to RSS feeds for updates on global events and UN initiatives.
afp.com API
Access real-time AFP news articles and fact-check stories across multiple languages, with the ability to search, filter by region or topic, and discover trending fact-checks. Browse the latest news ticker, explore fact-checked content by category, and stay informed with curated news and verification articles from AFP's global network.
getapp.com API
Search and compare software solutions while accessing detailed information like pricing, features, integrations, reviews, and alternatives all in one place. Get category leaders, read industry research from their blog, and make informed software decisions based on comprehensive data.
payloadspace.com API
Search and retrieve space industry news articles, company information, funding rounds, contract awards, and events from Payload Space's comprehensive database. Stay updated on latest developments across commercial space, military space, European space news, and industry events like webinars and podcasts.
cryptopanic.com API
Access real-time cryptocurrency market sentiment data from CryptoPanic. Retrieve news posts filtered by bullish or bearish sentiment, browse the full news feed with flexible filters, and fetch an aggregated sentiment score derived from 24-hour price movements across top cryptocurrencies.
cryptoslate.com API
Track real-time cryptocurrency prices and rankings, access detailed coin information and market overviews, and discover industry companies and key people in the crypto space. Stay informed with the latest cryptocurrency news articles and search across all available data to monitor assets and trends.
pewresearch.org API
Search and retrieve Pew Research Center publications, reports, and expert profiles across a wide range of topics, including technology, politics, science, religion, and social trends. Access detailed report content, key findings, charts, and methodology information, and filter results by topic, format, or region to stay informed on the latest research and data.
citizenscount.org API
Access candidate profiles, election results, bill details, and policy topics from Citizens Count. Find elected officials by town, retrieve voter education guides, and search across candidates, legislation, and news — all from one structured API.