Git City API
Fetch repository data and generate 3D city visualizations from GitHub commit history.All Git City endpoints require session authentication. You must be signed in to use these endpoints.
Get repository city data
Query parameters
Response (repository data)
Block color mapping
Branch fallback
When thebranch parameter is set to main (the default) and the branch is not found in the repository, the API automatically retries with master. This handles repositories that use master as their default branch without requiring an extra request from the client.
Errors
Error response (500)
List user repositories
Response
Errors
Analyze repository by URL
Request body
Response
Returns the same response shape as GET /api/git-city. The branch defaults tomain and falls back to master if main is not found.