{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Repos, Trending & Releases API — No Token Needed",
    "description": "GitHub repository facts — stars, forks, watchers, issues, language, licence, topics, README — plus trending repos by language, search in GitHub's syntax, releases with download counts and organisation repos. No token needed. No user or profile scraping. $1 per 1,000 repositories.",
    "version": "0.1",
    "x-build-id": "SV0tn4YtKDY1EFEJE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/insight.solutions~github-repos-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-insight.solutions-github-repos-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/insight.solutions~github-repos-api/runs": {
      "post": {
        "operationId": "runs-sync-insight.solutions-github-repos-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/insight.solutions~github-repos-api/run-sync": {
      "post": {
        "operationId": "run-sync-insight.solutions-github-repos-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "repos": {
            "title": "Repositories",
            "type": "array",
            "description": "One repository per entry, as `owner/repo` or any github.com link to it (`https://github.com/apify/crawlee`, `…/tree/master/docs`, `git@github.com:apify/crawlee.git`). Each becomes one `repo` row: stars, forks, watchers, open issues, language, licence, topics, dates and more. Duplicates are dropped, case-insensitively.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "orgs": {
            "title": "Organisations",
            "type": "array",
            "description": "Organisation logins (`apify`, `microsoft`) or their github.com links. Each returns its public repositories, most recently updated first, as `repo` rows, up to `maxResults` per organisation. Personal accounts are not listed: this Actor never reads user accounts, by design — put a person's repositories under Repositories instead.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "GitHub repository search, in GitHub's own syntax: `topic:web-scraping stars:>500`, `language:rust pushed:>2026-09-01`, `org:apify`, `llm in:description`. Each query returns up to `maxResults` `search-result` rows with their rank and the total match count. GitHub returns at most 1,000 results per query, however it is paged.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchSort": {
            "title": "Sort search results by",
            "enum": [
              "stars",
              "forks",
              "updated",
              "best-match"
            ],
            "type": "string",
            "description": "`stars`, `forks` or `updated` (most recent first), or `best-match` for GitHub's own relevance ranking.",
            "default": "stars"
          },
          "trending": {
            "title": "Trending lists",
            "type": "array",
            "description": "`all` for GitHub's main trending page, or a language as it is spelled in github.com/trending/<language>: `python`, `typescript`, `rust`, `go`, `c++`, `jupyter-notebook`. Each list returns its repositories (usually 25) as `trending-repo` rows, with the stars gained in the period.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "trendingSince": {
            "title": "Trending period",
            "enum": [
              "daily",
              "weekly",
              "monthly"
            ],
            "type": "string",
            "description": "Which trending list: today's, this week's or this month's. `starsToday` on each row is the stars gained in that period.",
            "default": "daily"
          },
          "includeReleases": {
            "title": "Include releases",
            "type": "boolean",
            "description": "Also return `release` rows — tag, name, prerelease flag, publish date, notes, assets with download counts — for every repository from Repositories and Organisations. When GitHub's API limit is reached, releases come from the repository's Atom feed instead: the newest ten, without assets or download counts, and the rows say so.",
            "default": false
          },
          "maxReleasesPerRepo": {
            "title": "Releases per repository",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Newest first. 100 per request.",
            "default": 10
          },
          "includeReadme": {
            "title": "Include README text",
            "type": "boolean",
            "description": "Add the README, decoded, to each `repo` row (`readmeText`, cut to `maxTextChars`). One extra API request per repository.",
            "default": false
          },
          "includeLanguages": {
            "title": "Include language breakdown",
            "type": "boolean",
            "description": "Add `languages` — bytes of code per language, e.g. `{ \"TypeScript\": 4281680, \"MDX\": 2133590 }` — to each `repo` row. One extra API request per repository.",
            "default": false
          },
          "maxTextChars": {
            "title": "Maximum text length",
            "minimum": 100,
            "maximum": 1000000,
            "type": "integer",
            "description": "README text and release notes longer than this are cut, with a trailing \"…\".",
            "default": 20000
          },
          "maxResults": {
            "title": "Maximum results per list",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Per search query, per organisation and per trending list. A search cannot go past 1,000 — that is GitHub's ceiling.",
            "default": 100
          },
          "githubToken": {
            "title": "GitHub token (optional)",
            "type": "string",
            "description": "Optional. Your own GitHub personal access token — a fine-grained token with read-only access to public repositories and no other permissions is enough — raises the limit from 60 to 5,000 API requests an hour and search from 10 to 30 a minute. Sent only to api.github.com in the Authorization header; never logged and never put on a row. Leave empty for small runs."
          },
          "maxConcurrency": {
            "title": "Requests in flight",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "At most three at a time, 250 ms apart — GitHub asks API clients not to burst. Each slot uses its own proxy session, which without a token is its own 60-an-hour allowance.",
            "default": 3
          },
          "maxRunSecs": {
            "title": "Time budget (seconds)",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "The run stops reading when this runs out; rows already returned are kept, and anything not reached gets a free `deadline` row.",
            "default": 240
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "GitHub answered every capture request through the Apify datacenter proxy with the same quota numbers as with no proxy at all, so datacenter is the default. Without a token, GitHub counts requests per IP, and a fresh proxy session is a fresh allowance — the Actor rotates once when an exit runs out.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}