All templates

Developer tools

Mock the GitHub REST API

Users, repositories, and issues — without burning your rate limit.

4 routes · live immediately · no account needed

GitHub's REST API is rate limited to 60 requests an hour unauthenticated, which is exactly the kind of ceiling you hit while building against it. These routes return the same object shapes GitHub does, so you can develop and run tests at whatever speed you like and switch the base URL back when you are done.

What you get

GET/user200 OK
GET/users/{username}templated200 OK
GET/repos/{owner}/{repo}templated200 OK
GET/search/issues200 OK

Example response

GET /user

{
  "login": "octocat",
  "id": 1,
  "node_id": "MDQ6VXNlcjE=",
  "avatar_url": "https://avatars.githubusercontent.com/u/1?v=4",
  "html_url": "https://github.com/octocat",
  "type": "User",
  "site_admin": false,
  "name": "The Octocat",
  "company": "@github",
  "location": "San Francisco",
  "public_repos": 8,
  "followers": 9001,
  "following": 9,
  "created_at": "2011-01-25T18:44:36Z",
  "updated_at": "2024-01-15T10:12:00Z"
}

Good for

  • Develop a dashboard against GitHub data without hitting rate limits
  • Run tests offline, deterministically, with a fixed set of repos
  • Demo an integration without needing a real token

Response payloads are representative examples using this API's real field names and object shapes, not an exhaustive replica of its schema. MockBase is an independent tool and is not affiliated with, endorsed by, or sponsored by GitHub.