{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Repo Scraper & API: Search by Stars, Topic",
    "description": "GitHub repo scraper & API, $1 per 1,000 results: search by language, topic, stars, forks, license past the 1,000-result cap; optional releases, languages, README as JSON/CSV/Excel. Official GitHub REST API, your free token, no scraping.",
    "version": "1.0",
    "x-build-id": "BfHqFccV1L2eeT9MD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tuper~github-repos/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tuper-github-repos",
        "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/tuper~github-repos/runs": {
      "post": {
        "operationId": "runs-sync-tuper-github-repos",
        "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/tuper~github-repos/run-sync": {
      "post": {
        "operationId": "run-sync-tuper-github-repos",
        "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",
        "required": [
          "githubToken"
        ],
        "properties": {
          "githubToken": {
            "title": "GitHub token (required, free)",
            "type": "string",
            "description": "Your own GitHub personal access token. Create one in 1 minute at github.com/settings/tokens > Generate new token (classic): no scopes needed for public repositories. It gives you 30 searches a minute and 5,000 calls an hour; without it GitHub allows 60 calls an hour shared by every Apify user. Stored encrypted, used only for this run's GitHub API calls."
          },
          "mode": {
            "title": "What to get",
            "enum": [
              "search",
              "lookup",
              "owner"
            ],
            "type": "string",
            "description": "search = repositories matching keywords and filters; lookup = given repositories by name or URL; owner = all public repositories of users or organizations.",
            "default": "search"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Keywords matched in name, description and README (search mode). GitHub search syntax works too: in:name, NOT, \"phrases\", any qualifier such as size:>1000."
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Main language, any of these (e.g. Python, TypeScript, Rust).",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Repository topics; all must match (e.g. llm, web-scraping).",
            "items": {
              "type": "string"
            }
          },
          "minStars": {
            "title": "Minimum stars",
            "minimum": 0,
            "type": "integer",
            "description": "Only repositories with at least this many stars."
          },
          "maxStars": {
            "title": "Maximum stars",
            "minimum": 0,
            "type": "integer",
            "description": "Only repositories with at most this many stars (find small, rising projects)."
          },
          "minForks": {
            "title": "Minimum forks",
            "minimum": 0,
            "type": "integer",
            "description": "Only repositories with at least this many forks."
          },
          "createdFrom": {
            "title": "Created from",
            "type": "string",
            "description": "Created on or after this date (YYYY-MM-DD)."
          },
          "createdTo": {
            "title": "Created to",
            "type": "string",
            "description": "Created on or before this date (YYYY-MM-DD)."
          },
          "pushedAfter": {
            "title": "Pushed after",
            "type": "string",
            "description": "Only repositories with a commit pushed on or after this date (YYYY-MM-DD): skips abandoned projects."
          },
          "licenses": {
            "title": "Licenses",
            "type": "array",
            "description": "License keys (mit, apache-2.0, gpl-3.0...); any of these.",
            "items": {
              "type": "string"
            }
          },
          "owners": {
            "title": "Owners (users / organizations)",
            "type": "array",
            "description": "search mode: only repositories of these users or orgs. owner mode: list all their public repositories.",
            "items": {
              "type": "string"
            }
          },
          "repositories": {
            "title": "Repositories (lookup mode)",
            "type": "array",
            "description": "owner/name or GitHub URLs, e.g. apify/crawlee or https://github.com/apify/crawlee.",
            "items": {
              "type": "string"
            }
          },
          "includeForks": {
            "title": "Include forks",
            "type": "boolean",
            "description": "Forks are left out by default.",
            "default": false
          },
          "excludeArchived": {
            "title": "Skip archived repositories",
            "type": "boolean",
            "description": "Leave out read-only archived repositories.",
            "default": true
          },
          "goodFirstIssues": {
            "title": "Has good first issues",
            "type": "boolean",
            "description": "Only repositories with open 'good first issue' issues.",
            "default": false
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "stars",
              "forks",
              "updated",
              "best-match",
              "help-wanted-issues"
            ],
            "type": "string",
            "description": "Search mode order. With more than 1,000 matches the order holds within each date slice.",
            "default": "stars"
          },
          "order": {
            "title": "Order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Highest first or lowest first.",
            "default": "desc"
          },
          "splitByDate": {
            "title": "Get past the 1,000-result cap",
            "type": "boolean",
            "description": "GitHub returns at most 1,000 results per search. When more match and Max results is above 1,000, the Actor splits the search by creation date and collects every slice.",
            "default": true
          },
          "includeDetails": {
            "title": "Add languages, latest release and README",
            "type": "boolean",
            "description": "4 extra API calls per repository: language breakdown in %, latest release, README excerpt (1,000 chars), watcher count. Slower (about 1,200 repositories an hour on one token).",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many repositories (you pay per result).",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}