# GitHub User/Org Repository Listing via SocialFetch

> GitHub User/Org Repository Listing via SocialFetch is a paid API for AI agents from api.socialfetch.dev, paid per call via x402, $0.014/call, status unknown (last checked 2026-09-14).

Lists all public repositories for a given GitHub user or organization handle, with sorting and pagination support.

## Facts

- Endpoint: GET https://api.socialfetch.dev/v1/github/profiles/:handle/repositories
- Price: $0.014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-user-org-repository-listing-via-socialfetch-c98132ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nj_q9zK-1FB3LB0bajebC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability github-user-org-repository-listing-via-socialfetch-c98132ab
```

Example prompt: Can you list all the public GitHub repositories for the user 'torvalds', sorted by most recently updated?

## When to prefer this

Use this endpoint when you need to enumerate the public repositories of a known GitHub user or organization by handle, especially if you want sorting or pagination control. Prefer this over scraping GitHub directly or using the GitHub API when you need x402 micropayment-compatible, pre-authenticated access to GitHub profile data alongside other social platform data in a unified API.

## Known failure modes

- Invalid or non-existent GitHub handle returns an error or empty list
- Invalid sort field or direction enum value causes a 400 bad request
- Pagination cursor from a different query or expired cursor may yield unexpected results
- Rate limiting or upstream GitHub API unavailability causes 5xx errors
- Handle exceeding 39 characters fails input validation

## How this service works

List repositories for a GitHub user or organization.

## Output

Returns a paginated list of public GitHub repositories for the specified user or organization, including metadata such as repository names, descriptions, topics, and other repository details. Includes a pagination cursor for fetching additional pages.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "handle"
     ],
     "properties": {
      "handle": {
       "type": "string",
       "maxLength": 39,
       "minLength": 1,
       "description": "GitHub username whose public repositories should be listed."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "sort": {
       "enum": [
        "created",
        "updated",
        "pushed",
        "full_name"
       ],
       "type": "string",
       "description": "Sort field for repositories."
      },
      "type": {
       "enum": [
        "owner",
        "all",
        "member"
       ],
       "type": "string",
       "description": "Repository type filter. `owner`: repos owned by the user. `all`: owned repos plus repos from organizations the user belongs to. `member`: only repos the user belongs to via organization membership (not owned by the user). Default: `owner`."
      },
      "cursor": {
       "type": "string",
       "minLength": 1,
       "description": "Pagination cursor returned by a previous response."
      },
      "direction": {
       "enum": [
        "asc",
        "desc"
       ],
       "type": "string",
       "description": "Sort direction."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-user-org-repository-listing-via-socialfetch-c98132ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.socialfetch.dev](https://www.zero.xyz/host/api.socialfetch.dev/llms.txt)
