Repository
GET/v1/github/repository1 credit
Returns details of a public GitHub repository: owner, description, language, stars, forks, watchers, open issues, topics, license, default branch and dates.
01Query parameters
| Name | Type | Description |
|---|---|---|
| urloptional | string | Repository URL, e.g. `https://github.com/golang/go`. Either `url`, or `owner` together with `repo`, is required. |
| owneroptional | string | Repository owner (user or organization), used together with `repo` when no `url` is given. |
| repooptional | string | Repository name, used together with `owner` when no `url` is given. |
02Request
curl "https://api.scrapesocial.ai/v1/github/repository?url=https%3A%2F%2Fgithub.com%2Fgolang%2Fgo" \ -H "x-api-key: $SCRAPESOCIAL_KEY"
03Responses
Real answers from the API. Lists are shortened to 2 items.
GET /v1/github/repository?url=https%3A%2F%2Fgithub.com%2Fgolang%2Fgo
{
"success": true,
"credits_remaining": 4980,
"credits_charged": 1,
"repository": {
"id": 23096959,
"node_id": "MDEwOlJlcG9zaXRvcnkyMzA5Njk1OQ==",
"name": "go",
"full_name": "golang/go",
"owner": {
"id": 4314092,
"login": "golang",
"avatar_url": "https://avatars.githubusercontent.com/u/4314092?v=4",
"url": "https://github.com/golang",
"type": "Organization"
},
"private": false,
"url": "https://github.com/golang/go",
"description": "The Go programming language",
"fork": false,
"homepage": "https://go.dev",
"language": "Go",
"forks_count": 21621,
"stars_count": 139573,
"watchers_count": 139573,
"size": 462859,
"default_branch": "master",
"open_issues_count": 10456,
"topics": [
"go",
"golang"
],
"license": {
"key": "bsd-3-clause",
"name": "BSD 3-Clause \"New\" or \"Revised\" License",
"spdx_id": "BSD-3-Clause"
},
"archived": false,
"disabled": false,
"visibility": "public",
"pushed_at": "2026-10-24T20:27:02Z",
"created_at": "2014-08-19T04:33:40Z",
"updated_at": "2026-10-25T17:05:53Z"
}
}Common to every endpoint
Any route can answer these: a missing or wrong key, no credits left, the platform not answering, or a failure on our side. None of them costs credits.
GET /v1/cosmos/profile?handle=design
{
"success": false,
"message": "Invalid API key"
}04Notes
The repository is in the `repository` object; stars are in `stars_count`. An unknown repository is a free 404, a repository GitHub withholds is a free 403, and a URL that is not a GitHub repository is a free 400.
05Errors & credits
Every error has success: false, a real HTTP status and costs no credits.
400missing_parameter
A required parameter is missing or invalid.
403private_account
The account is private or age-restricted.
404not_found
No such account.
503upstream_error
The platform did not answer; retry shortly.