Bar and Bench APIbarandbench.com ↗
Fetch latest Indian legal news articles from Bar and Bench via one API endpoint. Returns headlines, authors, publication dates, summaries, and URLs.
What is the Bar and Bench API?
The Bar and Bench API provides access to India's legal news feed through a single endpoint, get_latest_news, returning up to 50 articles per page with 5 structured fields per article — headline, author, publication date, URL, and standfirst summary. It covers court rulings, judiciary developments, and legal policy updates published on barandbench.com, paginated via offset so you can retrieve any slice of the news archive.
curl -X GET 'https://api.parse.bot/scraper/f52938b0-1538-4573-92fc-45c1dc021395/get_latest_news?limit=15&offset=0' \ -H 'X-API-Key: $PARSE_API_KEY'
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 barandbench-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: Bar and Bench SDK — bounded, re-runnable; every call capped."""
from parse_apis.barandbench_com_api import BarAndBench, ParseError
client = BarAndBench()
# Fetch latest legal news articles, capped at 3 total items.
for article in client.articles.list(limit=3):
print(article.headline, article.published_at, article.author)
# Drill-down: take the most recent article.
latest = client.articles.list(limit=1).first()
if latest:
print(latest.headline, latest.url, latest.summary)
# Typed error handling around a list call with an offset.
try:
for article in client.articles.list(offset=100, limit=2):
print(article.slug, article.published_at)
except ParseError as e:
print(f"error: {e}")
print("exercised: articles.list")
Fetch the latest news articles from Bar and Bench, ordered most-recent first. Each article includes headline, publication date, URL, author, and a short summary (standfirst). Results are auto-iterated via offset-based pagination; the SDK advances pages automatically.
| Param | Type | Description |
|---|---|---|
| limit | integer | Number of articles per page (1–50). |
| offset | integer | Zero-based article offset for pagination. |
{
"type": "object",
"fields": {
"limit": "integer — page size used",
"offset": "integer — offset used",
"articles": "array of news article objects"
},
"sample": {
"data": {
"limit": 15,
"offset": 0,
"articles": [
{
"url": "https://www.barandbench.com/news/judicial-ambitions-empty-courtrooms-how-a-competitive-exam-has-slowed-delhis-trial-courts",
"slug": "news/judicial-ambitions-empty-courtrooms-how-a-competitive-exam-has-slowed-delhis-trial-courts",
"author": "Ritwik Choudhury",
"summary": "As judges step away from the bench to prepare for the next stage of their careers, what happens to the litigants waiting in their courtrooms?",
"headline": "Judicial ambitions, empty courtrooms: How a competitive exam has slowed Delhi’s trial courts",
"published_at": "2026-07-25T21:05:43Z"
}
]
},
"status": "success"
}
}About the Bar and Bench API
What the API Returns
The get_latest_news endpoint returns an array of article objects sourced from Bar and Bench's news feed, ordered most-recent first. Each object carries the article's headline, a short standfirst (summary paragraph), the author name, the canonical url, and the publication_date. These fields are sufficient to build legal news monitors, digest emails, or case-tracking dashboards without further processing.
Pagination
The endpoint accepts two optional parameters: limit (1–50, controlling page size) and offset (zero-based integer, controlling where in the feed the response begins). Both values are echoed back in the response as limit and offset so you can confirm the slice retrieved. The SDK advances pages automatically when iterating, but you can also manage pagination manually by incrementing offset in multiples of your chosen limit.
Coverage Scope
All articles returned belong to Bar and Bench's main news section at barandbench.com/news, which covers the Supreme Court of India, High Courts, legal policy, and notable case developments. The feed reflects the publication's editorial schedule; the freshness of results depends on when Bar and Bench publishes new articles. No filtering by court, author, or category is available within the current endpoint parameters.
The Bar and Bench API is a managed, monitored endpoint for barandbench.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when barandbench.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 barandbench.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.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Monitor Supreme Court and High Court rulings by polling
get_latest_newsand filtering headlines by court name. - Build a daily Indian legal digest email by fetching the standfirst and URL of the last 10 articles each morning.
- Track mentions of specific legislation or case names across recent articles using the headline and summary fields.
- Aggregate Bar and Bench articles into a legal research dashboard alongside other Indian law sources.
- Alert legal teams when articles matching client names or matter keywords appear in the news feed.
- Archive Bar and Bench's publication history by paginating through the feed with incremented offsets over time.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 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.
Does Bar and Bench offer an official developer API?+
What does each article object in the response actually contain?+
articles array includes five fields: headline (the article title), standfirst (a short editorial summary), author (byline name), url (canonical link to the full article on barandbench.com), and publication_date. Full article body text is not included.Can I filter results by topic, court, or author within the API?+
get_latest_news endpoint does not currently support server-side filtering by topic, court, author, or category. It returns the full chronological feed and you apply any filtering client-side. You can fork this API on Parse and revise it to add a category or author filter endpoint.Does the API cover Bar and Bench's opinion columns, long reads, or video content?+
How far back does the news feed go, and how fresh are the results?+
offset parameter. Freshness reflects Bar and Bench's own publication schedule — there is no fixed refresh interval guaranteed by the API, and the depth of historical coverage reachable via pagination has not been formally bounded in the current specification.