Every Premier League club in the dataset, with all fields.
A free, no-signup, no-auth JSON API built for the coding practice courses on this site - and for anyone who needs clean JSON data for teaching, prototyping or demos. Every dataset is plain CSV in this folder, every response is valid JSON with proper HTTP status codes, and every endpoint on this page has a Run button that fires a real request for you.
Endpoints are lowercase words and digits separated by forward slashes - no punctuation anywhere in the endpoint names. Numbers inside the URL are parameters: /api/worldcities/mostpopulated/8 returns the eight most populated cities, and /api/random/int/5/1/100 returns five random integers between 1 and 100.
Success responses share one envelope: a meta object describing the request, and a data payload with the actual content.
{
"meta": {
"api": "achocodes free API",
"version": "1.0",
"endpoint": "/api/premiershipteams/3",
"requested_at": "2026-10-24T12:00:00+00:00",
"status": 200,
"count": 3,
"total_in_dataset": 20
},
"data": [
{ "team": "Arsenal", "stadium": "Emirates Stadium", "capacity": 60704, "manager": "Mikel Arteta" }
]
}
Errors are JSON too - never a bare HTML error page. Each error carries the correct HTTP status code, a short message, and a hint that tells you how to fix the request. In JavaScript, read response.status and then body.error.message.
{
"error": {
"status": 404,
"message": "No Premier League club matches \"lisbon\".",
"hint": "Try /api/premiershipteams/ to see every club and its exact name.",
"documentation": "/api/"
}
}
A note on the data: the CSV files behind these endpoints are a curated sample dataset for coding practice. Figures like earnings and stock prices are illustrative snapshots, not live data. Managers, coaches and rosters change constantly - treat the sports data as realistic practice material, not a live feed.
Twenty clubs with stadium, capacity, city, manager, squad size, earnings and founding year.
Every Premier League club in the dataset, with all fields.
The first n clubs. Any number from 1 to 100.
One random club, as a single object.
n random clubs - never the same club twice in one response.
One club by name: lowercase, no spaces. Unknown names return a 404.
A light list of every club with its manager - perfect for practicing array methods.
Team, stadium, city and capacity - sorted biggest stadium first.
Club earnings in millions of US dollars, highest first.
Sort all clubs by one field: team, stadium, capacity, city, manager, players, earnings or founded. An unknown field returns a 400 that lists the valid ones.
All thirty teams with city, conference, division, arena, coach, squad size, earnings, championships and founding year.
Every NBA team with all fields.
The first n teams.
One random NBA team.
n random teams.
One team by name slug, e.g. celtics or lakers - the nickname alone works too.
All teams in one conference: east or west.
All teams in one division: atlantic, central, southeast, northwest, pacific or southwest.
The n most decorated franchises, by championship count.
Every team with its head coach.
Team earnings this year in millions of US dollars, highest first.
All fifty states with population, GDP, average income, average temperature and main products (as a JSON array).
Every state with all fields - the richest single dataset here.
The first n states, in alphabetical order.
One random state.
n random states.
One state by its two-letter code, e.g. ca, tx or ny.
State, code and capital - a clean three-field list.
The n most populous states.
The n states with the highest average income.
The n warmest states by average yearly temperature, in Fahrenheit.
Each state with its main products as a JSON array - great for practicing array flattening and counting.
The hundred biggest cities with country, continent, population, average temperature in Celsius, time zone and one memorable fact each.
All 100 cities with every field.
The first n cities, in rank order.
The n most populated cities on Earth, biggest first.
One random city.
n random cities.
One city by name slug, e.g. tokyo or newyork.
Every city in one continent: africa, asia, europe, northamerica, oceania or southamerica.
Every city in one country, e.g. japan or brazil.
Every continent with a count of its cities in the dataset.
The top 100 companies by revenue rank, with stock symbol, stock price, last year's earnings in millions of US dollars, employee count and business sector.
Every company in the dataset with all fields.
The top n companies by Fortune rank.
One random company.
n random companies.
One company by name slug, e.g. walmart or apple.
The n companies with the most employees.
Every business sector with its company count - perfect for building group-by exercises.
150 of the most famous sentences from the plays, each with its play, act and scene. Both text columns are public domain.
All 150 sentences with play, act and scene.
The first n sentences.
One random sentence, with its play, act and scene.
n random sentences.
Every play in the dataset, with its slug and sentence count.
Every sentence from one play, e.g. hamlet or macbeth.
One random sentence from one play.
150 curated sentences and memorable moments from Charles Dickens' Oliver Twist (public domain), each with its chapter number.
All 150 sentences with their chapters.
The first n sentences.
One random sentence with its chapter.
n random sentences.
Every chapter represented in the dataset, with its sentence count.
All sentences from one chapter, e.g. chapter 2 - where Oliver asks for more.
Integers, floats, coin flips, dice, passwords, colors and UUIDs - the building blocks for practice exercises.
One random integer between 0 and 100.
One random integer between 0 and the maximum.
One random integer between min and max. Negatives are allowed.
Count random integers between min and max, in a values array.
One random float between 0 and 1, rounded to 2 decimals.
One random float between min and max, rounded to 2 decimals.
Count random floats between min and max.
Heads or tails.
Roll one six-sided die: rolls, total and average.
Roll up to 10 dice at once: rolls, total and average.
A random 12-character password (ambiguous characters excluded).
A random password of 8 to 64 characters.
A random color with hex, rgb and hsl representations.
A random version 4 UUID.
API health, version, dataset sizes and the rate-limit setting. Status checks are never rate limited.
A machine-readable list of every endpoint - handy for building tools on top of this API.