---
title: "Get a user's activity in a repository"
method: POST
path: "/v1/github/user-repo-activity"
tags: ["GitHub"]
---

# Get a user's activity in a repository

`POST /v1/github/user-repo-activity`

## Request

- Base URL: `https://api.fiber.ai`
- URL: `https://api.fiber.ai/v1/github/user-repo-activity`
- Auth: none declared

Returns recent commits, pull requests, and issues by one user in one repository. A list that cannot be loaded is named in unavailableSections; the other lists are still returned.

<span>⚡ <strong>Rate limit:</strong> 15 requests per 1 minute</span>

<span>💰 <strong>Cost:</strong> 2 credits per request&nbsp;<span title="Pricing shown is default pricing. Actual pricing may vary.">ⓘ</span></span>

<span>⏱ <strong>Recommended timeout:</strong> 30 seconds&nbsp;<span title="Recommended timeout: set your HTTP client timeout to at least 30 seconds for this endpoint.">ⓘ</span></span>

## Request body

- object
  - `apiKey` string, required: Your Fiber API key
  - `profileUrl` string, required: User whose activity to return. Accepts a profile URL or a username.
  - `repoUrl` string, required: Repository to look in. Accepts a repository URL or 'owner/repo'.
  - `limit` integer, nullable: How many commits, pull requests, and issues to return for each list. Defaults to 10. Maximum 30.

## Response `200`

Default Response

- object
  - `output` object, required
    - `commits` object[], required: Recent commits by this user in the repository.
      - `message` string, required: Commit message.
      - `authoredAt` string, nullable: When the commit was authored, as an ISO-8601 timestamp. This is the author date, which can differ from when the commit was committed.
      - `url` string, required: URL of the commit.
    - `pullRequests` object[], required: Recent pull requests opened by this user in the repository.
      - `title` string, required: Title of the pull request or issue.
      - `state` 'open' | 'closed' | 'null', nullable: Whether the pull request or issue is open or closed.
      - `createdAt` string, nullable: When it was opened, as an ISO-8601 timestamp.
      - `url` string, required: URL of the pull request or issue.
    - `issues` object[], required: Recent issues opened by this user in the repository.
      - `title` string, required: Title of the pull request or issue.
      - `state` 'open' | 'closed' | 'null', nullable: Whether the pull request or issue is open or closed.
      - `createdAt` string, nullable: When it was opened, as an ISO-8601 timestamp.
      - `url` string, required: URL of the pull request or issue.
    - `unavailableSections` string[], required: Lists that could not be loaded. The other lists are still returned.
  - `chargeInfo` union, required
    - object: Credits were charged immediately for this operation
      - `method` 'charged-now', required
      - `creditsCharged` number, required
      - `lowCreditAlert` object, nullable: Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required: URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required: Human-readable credits warning.
        - `availableCredits` number, required: Number of credits remaining in the current billing period.
    - object: Credits will be charged after the operation completes
      - `method` 'charging-later', required
      - `message` string, required
      - `lowCreditAlert` object, nullable: Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required: URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required: Human-readable credits warning.
        - `availableCredits` number, required: Number of credits remaining in the current billing period.
    - object: Credits that were charged for an asynchronous operation
      - `method` 'charged-for-async-process', required
      - `creditsCharged` number, required
      - `message` string, required
      - `lowCreditAlert` object, nullable: Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required: URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required: Human-readable credits warning.
        - `availableCredits` number, required: Number of credits remaining in the current billing period.
    - object: No credits were charged for this operation
      - `method` 'free', required
      - `message` string, required
      - `lowCreditAlert` object, nullable: Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required: URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required: Human-readable credits warning.
        - `availableCredits` number, required: Number of credits remaining in the current billing period.
    - object: Credits were refunded for this operation
      - `method` 'credits-refunded', required
      - `creditsRefunded` number, required
      - `message` string, required
      - `lowCreditAlert` object, nullable: Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required: URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required: Human-readable credits warning.
        - `availableCredits` number, required: Number of credits remaining in the current billing period.
  - `warnings` object[], nullable: Warnings about extraneous fields in request
    - `field` string, required: Full path to extraneous field (e.g., 'searchParams.ExtraField')
    - `message` string, required: Warning message
  - `advice` string[], nullable: Tips, recommendations, and suggestions for using this API effectively.

## Other responses

- `400`: Default Response
- `401`: Default Response
- `402`: Default Response
- `403`: Default Response
- `404`: Default Response
- `422`: Default Response
- `429`: Default Response
- `500`: Default Response
- `503`: Default Response

## Changes

- **2026-10-27** `a15af2897f6b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fiber/apis/fiber-ai-api/changes/v1/github/user-repo-activity/post.md)

---

[API](https://skmtc.dev/fiber/apis/fiber-ai-api.md) - [All operations](https://skmtc.dev/fiber/apis/fiber-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fiber/apis/fiber-ai-api/revisions/d8237cb5c35e?raw)
