Get a public repository by ID
GET/api/repos/by-id/{repo_id}
getPublicRepositoryById
Returns public repository metadata by repository ID.
Authentication is not described for this operation in the spec — that does not mean it is public. Check tokens and scopes.
curl
curl -X GET 'https://neosource.dev/api/repos/by-id/REPO_ID'fetch
fetch("https://neosource.dev/api/repos/by-id/REPO_ID", {
method: "GET",
});Path parameters
repo_idrequiredRepository ID.
Responses
200Repository metadata
application/json
Standard errors
Bodies documented once for the whole API — see standard errors.
- 400Bad Request — one of: invalid_input
- 404Not Found — one of: not_found
- 429Rate limited — retry after the `Retry-After` header
- 500Internal server error
- 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
- 504Gateway timeout — the request exceeded the server's handling budget