Free static JSON API for user stories (agile format) hosted directly on GitHub via raw.githubusercontent.com.
This repository is useful for frontend demos, tests, mock backends, workshops, and API integration exercises.
fake api, mock api, json api, user stories, agile, frontend testing, raw github api, static dataset
https://raw.githubusercontent.com/mickaellherminez/github-user-stories-fake-api/main/dataGET /user-stories.jsonFull URL:
GET https://raw.githubusercontent.com/mickaellherminez/github-user-stories-fake-api/main/data/user-stories.jsonGET /user-stories/{id}.jsonExamples:
GET https://raw.githubusercontent.com/mickaellherminez/github-user-stories-fake-api/main/data/user-stories/1.json
GET https://raw.githubusercontent.com/mickaellherminez/github-user-stories-fake-api/main/data/user-stories/2.json
GET https://raw.githubusercontent.com/mickaellherminez/github-user-stories-fake-api/main/data/user-stories/3.json
GET https://raw.githubusercontent.com/mickaellherminez/github-user-stories-fake-api/main/data/user-stories/4.json
GET https://raw.githubusercontent.com/mickaellherminez/github-user-stories-fake-api/main/data/user-stories/5.json
... up to
GET https://raw.githubusercontent.com/mickaellherminez/github-user-stories-fake-api/main/data/user-stories/30.jsonEach user story contains:
idandindex(US-001,US-002, ...)titleanddescriptionconstraints(business rules)acceptanceCriteria(Given/When/Then format)priority(low|medium|high)status(draft|ready|in-progress|done)images(mockup URLs)
- OpenAPI spec:
openapi.yaml - JSON Schema:
data/user-story.schema.json
const BASE_URL =
'https://raw.githubusercontent.com/mickaellherminez/github-user-stories-fake-api/main/data';
export async function getAllUserStories() {
const response = await fetch(`${BASE_URL}/user-stories.json`);
if (!response.ok) throw new Error('Failed to fetch user stories');
return response.json();
}
export async function getUserStoryById(id: number) {
const response = await fetch(`${BASE_URL}/user-stories/${id}.json`);
if (!response.ok) throw new Error(`Failed to fetch user story with id ${id}`);
return response.json();
}If you need immutable URLs for production demos, use a commit SHA in the URL instead of main.
data/
user-story.schema.json
user-stories.json
user-stories/
1.json
...
30.json
img/
openapi.yaml
scripts/
validate_data.py
.github/
workflows/
validate-data.ymlData consistency is validated in CI:
- every
data/user-stories/{id}.jsonentry must matchdata/user-stories.json - required fields and enums are validated
- ids, indexes, and image URLs are validated
- the repository currently ships 30 user stories
MIT. See LICENSE.