{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Scraper — Repositories, Stars & Releases",
    "description": "Extract public GitHub repositories and releases with stars, forks, topics, licenses and release notes. Search keywords, list owner repositories or export release history. No account required.",
    "version": "0.1",
    "x-build-id": "r17yremabAxIDHLuB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/felixgoldwin~github-repository-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-felixgoldwin-github-repository-scraper",
        "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/felixgoldwin~github-repository-scraper/runs": {
      "post": {
        "operationId": "runs-sync-felixgoldwin-github-repository-scraper",
        "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/felixgoldwin~github-repository-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-felixgoldwin-github-repository-scraper",
        "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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "search",
              "owners",
              "repositories",
              "releases"
            ],
            "type": "string",
            "description": "Search finds repositories by GitHub query. Owners lists public repositories for users or organizations. Repositories looks up specific repositories. Releases exports public release metadata from the repositories you provide.",
            "default": "search"
          },
          "queries": {
            "title": "Search queries",
            "maxItems": 20,
            "type": "array",
            "description": "Search mode only. Up to 20 GitHub repository queries, 256 characters each. Supports qualifiers such as language:TypeScript, topic:ai, stars:>100 and license:mit. GitHub returns at most 1,000 results per query. If omitted in search mode, uses stars:>100 language:TypeScript.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          "owners": {
            "title": "GitHub owners",
            "maxItems": 50,
            "type": "array",
            "description": "Required in Owners mode. Up to 50 GitHub usernames or organization names, such as apify or microsoft. Use account names, not emails or profile URLs. Repositories are sorted by last update using the selected order.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 39
            },
            "default": []
          },
          "repositories": {
            "title": "GitHub repositories",
            "maxItems": 50,
            "type": "array",
            "description": "Required in Specific repositories and Releases modes. Up to 50 owner/repository names or HTTPS GitHub repository URLs. For example, apify/crawlee or https://github.com/apify/crawlee. Duplicates are removed case-insensitively. Do not include credentials, URL parameters or fragments.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": []
          },
          "sortBy": {
            "title": "Search sort",
            "enum": [
              "stars",
              "forks",
              "updated"
            ],
            "type": "string",
            "description": "Sort field for Search mode only. Owners mode always sorts by updated date. This field does not affect specific repository lookup or release ordering.",
            "default": "stars"
          },
          "order": {
            "title": "Sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Applies to Search and Owners modes. Descending returns the largest or newest values first. Releases retain GitHub's source ordering; specific repositories retain input order.",
            "default": "desc"
          },
          "includeForks": {
            "title": "Include forked repositories",
            "type": "boolean",
            "description": "Keep forked repositories in repository results. Turning this off removes records GitHub marks as forks. Applies to Search, Owners and Specific repositories modes, not Releases mode. Search queries must themselves include fork:true if you want GitHub to search forks.",
            "default": true
          },
          "includeArchived": {
            "title": "Include archived repositories",
            "type": "boolean",
            "description": "Keep archived repositories in repository results. Turning this off removes records GitHub marks as archived. Applies to Search, Owners and Specific repositories modes, not Releases mode.",
            "default": true
          },
          "includePrereleases": {
            "title": "Include prereleases",
            "type": "boolean",
            "description": "Releases mode only. Keep releases GitHub labels as prereleases. Turning this off excludes those records. Draft and private releases are not accessible to this unauthenticated scraper.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum total results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum unique matching records saved across the whole run, not per query or repository. Filters and duplicates do not consume this result limit. Actual output also depends on source availability, page budget and GitHub rate limits.",
            "default": 1000
          },
          "maxPages": {
            "title": "Maximum total source pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Global page budget across all input targets. A page contains up to 100 source records; a specific repository lookup also uses one page. Filters can reduce records saved per page. GitHub rate limits may stop the run before this budget is reached.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}