{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Repo Scraper · Repositories, Stars, Topics & Languages",
    "description": "Scrape GitHub repositories by language, topic, star count, license, organization, and pushed date window. Returns clean structured repo metrics and metadata without authentication.",
    "version": "1.0",
    "x-build-id": "UIni5bWIeJGyJxv2B"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/reapx~github-repo-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-reapx-github-repo-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/reapx~github-repo-scraper/runs": {
      "post": {
        "operationId": "runs-sync-reapx-github-repo-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/reapx~github-repo-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-reapx-github-repo-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",
        "required": [
          "maxItems"
        ],
        "properties": {
          "query": {
            "title": "Search Query / Filter",
            "type": "string",
            "description": "Custom GitHub repository search query expression (e.g. <code>stars:>1000 language:python</code>). <b>Consequence:</b> Broader queries increase run duration and total event charges; specific filters isolate exact targets.<br><br><b>Empty meaning:</b> Leave empty to build query automatically from the language, topic, stars, license, and organization inputs below."
          },
          "language": {
            "title": "Programming Language",
            "type": "string",
            "description": "Filter repositories by primary programming language (e.g., <code>python</code>, <code>typescript</code>, <code>rust</code>, <code>go</code>, <code>java</code>). <b>Consequence:</b> Narrows search results to codebases written in the chosen language.<br><br><b>Empty meaning:</b> Leave empty to search across all programming languages unconditionally without language restriction."
          },
          "topic": {
            "title": "Topic Tag",
            "type": "string",
            "description": "Filter repositories tagged with a specific GitHub topic (e.g., <code>machine-learning</code>, <code>web3</code>, <code>cli</code>, <code>react</code>). <b>Consequence:</b> Restricts returned items to repositories explicitly tagged with this topic.<br><br><b>Empty meaning:</b> Leave empty to search across all topics and untagged repositories."
          },
          "minStars": {
            "title": "Minimum Stars",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum stargazer count threshold for matching repositories (e.g., <code>500</code>). <b>Consequence:</b> Higher minimum star values filter out lower-ranked or newly created repositories, focusing results on popular projects.<br><br><b>Empty meaning:</b> Leave at 0 or empty for no lower bound on repository stars."
          },
          "maxStars": {
            "title": "Maximum Stars",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum stargazer count ceiling for matching repositories (e.g., <code>5000</code>). <b>Consequence:</b> Setting a maximum cap isolates mid-tier or hidden gem repositories before they reach viral star counts.<br><br><b>Empty meaning:</b> Leave at 0 or empty for no upper bound on repository stars.<br><br>The higher the number, the longer the run takes and the more you are charged, because you pay per row returned."
          },
          "license": {
            "title": "SPDX License Identifier",
            "type": "string",
            "description": "Filter by open-source license key (e.g., <code>mit</code>, <code>apache-2.0</code>, <code>gpl-3.0</code>, <code>bsd-3-clause</code>). <b>Consequence:</b> Filters repository records to projects with compatible open-source licensing.<br><br><b>Empty meaning:</b> Leave empty to include repositories with any open-source license or no declared license."
          },
          "organization": {
            "title": "GitHub Owner / Organization",
            "type": "string",
            "description": "Filter repositories belonging to a specific GitHub user or organization (e.g., <code>facebook</code>, <code>google</code>, <code>vercel</code>). <b>Consequence:</b> Restricts results strictly to public repositories owned by the specified organization or user account.<br><br><b>Empty meaning:</b> Leave empty to search across all public GitHub organizations and user accounts."
          },
          "pushedAfter": {
            "title": "Pushed After Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Filter repositories with code commits pushed on or after this ISO date (e.g., <code>2026-01-01</code>). <b>Consequence:</b> Excludes unmaintained or stale repositories that have not received recent updates.<br><br><b>Empty meaning:</b> Leave empty to include repositories regardless of last commit push date."
          },
          "sort": {
            "title": "Sort Criterion",
            "enum": [
              "stars",
              "forks",
              "help-wanted-issues",
              "updated"
            ],
            "type": "string",
            "description": "Field by which search results are ordered by GitHub Search API (<code>stars</code>, <code>forks</code>, <code>help-wanted-issues</code>, <code>updated</code>). <b>Consequence:</b> Controls ranking priority of returned repository records.<br><br><b>Empty meaning:</b> Defaults to sorting by <code>stars</code>.",
            "default": "stars"
          },
          "order": {
            "title": "Sort Direction",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Sort direction for ordering query results (<code>desc</code> for descending order, <code>asc</code> for ascending order). <b>Consequence:</b> Directs whether top-ranked or bottom-ranked repositories appear first in returned items.<br><br><b>Empty meaning:</b> Defaults to <code>desc</code> (descending).",
            "default": "desc"
          },
          "maxItems": {
            "title": "Maximum Repositories to Scrape",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of repository records to scrape and output into dataset (e.g., <code>50</code>, <code>500</code>). <b>Consequence:</b> Higher numbers increase execution runtime and pay-per-event cost at $0.001 per record.<br><br><b>Empty meaning:</b> Defaults to 50 repository items.<br><br>The higher the number, the longer the run takes and the more you are charged, because you pay per row returned.",
            "default": 50
          },
          "githubToken": {
            "title": "GitHub Personal Access Token (Optional)",
            "type": "string",
            "description": "Optional GitHub PAT for higher rate limits (30 req/min for Search API instead of 10 req/min unauthenticated). <b>Consequence:</b> Significantly speeds up multi-page queries; never stored or logged.<br><br><b>Empty meaning:</b> Runs unauthenticated with automatic backoff pacing."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}