> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bridgly.app/llms.txt
> Use this file to discover all available pages before exploring further.

# List a GitHub user's public projects



## OpenAPI

````yaml /openapi.json post /github/list-projects
openapi: 3.1.0
info:
  title: Bridgly API
  description: >-
    Web scraping API for LinkedIn, X (Twitter) and Reddit. Authenticated
    endpoints accept a Bridgly API key (`bgly_…`) via `Authorization: Bearer
    <token>`.
  version: 1.0.0
servers:
  - url: https://api.bridgly.app
    description: Production
security: []
tags:
  - name: LinkedIn
    description: Scrape LinkedIn profiles, companies, posts, and search.
  - name: Reddit
    description: Scrape Reddit posts, subreddits, users, and search.
  - name: X (Twitter)
    description: Scrape tweets and search X.
  - name: GitHub
    description: >-
      Fetch GitHub profiles, pinned repos, contributions, repositories, stars,
      and projects via GitHub's GraphQL API.
paths:
  /github/list-projects:
    post:
      tags:
        - GitHub
      summary: List a GitHub user's public projects
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                username:
                  type: string
                  description: GitHub username (login) without the "@", e.g. "torvalds".
                count:
                  default: 10
                  description: Number of results to return (1–10). Defaults to 10.
                  type: integer
                  minimum: 1
                  maximum: 10
                after:
                  description: >-
                    Pagination cursor (the `after` value returned by a previous
                    page). Omit for the first page.
                  type: string
              required:
                - username
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  timeMs:
                    type: number
                    description: >-
                      Wall-clock time the request took to complete, in
                      milliseconds.
                  creditsCost:
                    type: number
                    description: Number of account credits this request consumed.
                  data:
                    type: object
                    properties:
                      username:
                        type: string
                        description: GitHub login the projects belong to.
                      projects:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: Project GraphQL node id.
                            number:
                              anyOf:
                                - type: number
                                - type: 'null'
                              description: >-
                                Project number in the owner's project list, e.g.
                                3.
                            title:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: Project title.
                            shortDescription:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: Short project description, or null.
                            url:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: Public project URL.
                            closed:
                              type: boolean
                              description: Whether the project is closed.
                            public:
                              type: boolean
                              description: Whether the project is public.
                            createdAt:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: ISO-8601 timestamp the project was created.
                            updatedAt:
                              anyOf:
                                - type: string
                                - type: 'null'
                              description: ISO-8601 timestamp the project was last updated.
                          required:
                            - id
                            - number
                            - title
                            - shortDescription
                            - url
                            - closed
                            - public
                            - createdAt
                            - updatedAt
                          additionalProperties: false
                        description: The user's projects for this page.
                      after:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: >-
                          Pagination cursor for the next page (GitHub
                          `endCursor`), or null when there are no more results.
                    required:
                      - username
                      - projects
                      - after
                    additionalProperties: false
                required:
                  - timeMs
                  - creditsCost
                  - data
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '402':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: typescript
          label: Bridgly SDK
          source: |-
            import { Bridgly } from 'bridgly';

            const client = new Bridgly({ apiKey: process.env.BRIDGLY_API_KEY });

            const res = await client.github.listProjects({
              username: "string",
              count: 10,
            });
            if (res.type === 'success') console.log(res.data);
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Bridgly API key (`bgly_…`). Metered endpoints deduct credits from the
        resolved account.

````