handlestringобязательно
GitHub username.
https://api.sandbase.ai/v1/api/github/user-contributionsFetch a GitHub user's contribution graph for a year (total contributions plus per-day counts and heatmap intensity).
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
Fetch a GitHub user's contribution graph for a year (total contributions plus per-day counts and heatmap intensity).
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "github/user-contributions", "year": 2024, "handle": "torvalds"}'
The result is returned in outputs[0].data. Lookups that find nothing fail with a not-found error.
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | GitHub username. |
year | integer | No | Calendar year of the contribution graph. Defaults to the current year. |
Billed at the actual cost of each call, about $0.0012 per request. A call can cost more when the first data source fails and another one answers. Failed calls and lookups that find nothing are not charged.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/api/github/user-contributions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"year": 2024,
"handle": "torvalds"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
handlestringобязательноGitHub username.
yearintegerCalendar year of the contribution graph. Defaults to the current year.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
GitHub User ContributionsЭтот API GitHub | От $0.0012 за запрос | JSON |
GitHub | От $0.0012 за запрос | JSON |
GitHub | От $0.0012 за запрос | JSON |
GitHub | От $0.0012 за запрос | JSON |
GitHub | От $0.0012 за запрос | JSON |
GitHub | От $0.0012 за запрос | JSON |
Руководства:Best GitHub API in 2026: Pricing Compared
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/github/user-contributions, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
От $0.0012 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: handle (string). Необязательные: year (integer). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно).
Нет. GitHub User Contributions работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API GitHub.