handlestringобязательно
GitHub username.
https://api.sandbase.ai/v1/api/github/user-activityList a GitHub user's public contribution activity by handle (grouped monthly summaries of commits, pull requests, and issues with repository links) for a given year.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
List a GitHub user's public contribution activity by handle (grouped monthly summaries of commits, pull requests, and issues with repository links) for a given year.
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "github/user-activity", "handle": "kentcdodds"}'
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. |
cursor | string | No | Pagination cursor from a previous response (pages backward by month). |
year | string | No | Year of contribution activity to return (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-activity" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"handle": "kentcdodds"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
handlestringобязательноGitHub username.
yearstringYear of contribution activity to return (defaults to the current year).
cursorstringPagination cursor from a previous response (pages backward by month).
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
GitHub User ActivityЭтот 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-activity, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
От $0.0012 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: handle (string). Необязательные: year (string) и cursor (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно).
Нет. GitHub User Activity работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API GitHub.