{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Repositories Scraper",
    "description": "GitHub Repositories Scraper exports public GitHub repositories from searches, URLs, users, organisations, topics or trending lists: stars, forks, watchers, issues, license, topics, commits, releases, contributors, languages, owner profile, health scores and change tracking.",
    "version": "1.0",
    "x-build-id": "16kVsJlOYGT7BYjgx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~github-repositories-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-github-repositories-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/neuro-scraper~github-repositories-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-github-repositories-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/neuro-scraper~github-repositories-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-github-repositories-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords to search repositories for, one per line, e.g. web scraper. GitHub search qualifiers work too (language:python stars:>100). The filters below are added to every query.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Repository, user or organisation URLs",
            "type": "array",
            "description": "GitHub URLs or owner/repo names: a repository (https://github.com/psf/requests or psf/requests) gives that repository; a user or organisation (https://github.com/microsoft) gives its public repositories.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Users (their repositories)",
            "type": "array",
            "description": "GitHub logins whose own public repositories you want, e.g. sindresorhus.",
            "items": {
              "type": "string"
            }
          },
          "organizations": {
            "title": "Organisations (their repositories)",
            "type": "array",
            "description": "GitHub organisation logins whose public repositories you want, e.g. microsoft.",
            "items": {
              "type": "string"
            }
          },
          "topic": {
            "title": "Topics",
            "type": "array",
            "description": "Repository topics, e.g. machine-learning. Every topic is added as topic:<name> to the search (alone it lists the topic's repositories).",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "search",
              "urls",
              "trending",
              "users"
            ],
            "type": "string",
            "description": "What to scrape. Auto picks it from the inputs you filled.",
            "default": "auto"
          },
          "type": {
            "title": "Search for",
            "enum": [
              "repositories",
              "users"
            ],
            "type": "string",
            "description": "repositories = one row per repository; users = the search queries find developer profiles instead.",
            "default": "repositories"
          },
          "maxItems": {
            "title": "Max repositories per input",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "How many repositories each search query / user / organisation gives (the search follows its next pages until the limit). Repository URLs give one row each.",
            "default": 20
          },
          "maxPages": {
            "title": "Max search pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Optional cap on search pages (100 repositories per page)."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "stars",
              "forks",
              "updated",
              "help-wanted-issues",
              "best-match"
            ],
            "type": "string",
            "description": "Order of the search results.",
            "default": "stars"
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Descending or ascending order for the sort field.",
            "default": "desc"
          },
          "language": {
            "title": "Programming language",
            "type": "string",
            "description": "Only repositories in this language, e.g. Python, TypeScript, Go. Empty or any = all languages."
          },
          "minStars": {
            "title": "Min stars",
            "minimum": 0,
            "type": "integer",
            "description": "Only repositories with at least this many stars."
          },
          "maxStars": {
            "title": "Max stars",
            "minimum": 0,
            "type": "integer",
            "description": "Only repositories with at most this many stars."
          },
          "minForks": {
            "title": "Min forks",
            "minimum": 0,
            "type": "integer",
            "description": "Only repositories with at least this many forks."
          },
          "license": {
            "title": "License",
            "enum": [
              "any",
              "mit",
              "apache-2.0",
              "gpl-3.0",
              "gpl-2.0",
              "bsd-2-clause",
              "bsd-3-clause",
              "lgpl-3.0",
              "lgpl-2.1",
              "mpl-2.0",
              "agpl-3.0",
              "unlicense",
              "isc",
              "cc0-1.0",
              "epl-2.0"
            ],
            "type": "string",
            "description": "Only repositories under this license.",
            "default": "any"
          },
          "createdAfter": {
            "title": "Created after",
            "type": "string",
            "description": "Only repositories created on or after this date (YYYY-MM-DD)."
          },
          "pushedAfter": {
            "title": "Pushed after",
            "type": "string",
            "description": "Only repositories with a push on or after this date (YYYY-MM-DD)."
          },
          "includeForks": {
            "title": "Include forks",
            "type": "boolean",
            "description": "Also return forked repositories in searches (GitHub leaves forks out by default).",
            "default": false
          },
          "includeArchived": {
            "title": "Include archived repositories",
            "type": "boolean",
            "description": "Turn off to drop archived (read-only) repositories.",
            "default": true
          },
          "autoPartitionResults": {
            "title": "Go past 1,000 search results",
            "type": "boolean",
            "description": "GitHub stops a search at 1,000 results. When on and you ask for more, the search is split by creation year to collect more repositories.",
            "default": false
          },
          "deliverTopN": {
            "title": "Only the top N by score",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only the N best repositories of every input by overall score (0 = all)."
          },
          "enrichRepoData": {
            "title": "Open every repository page",
            "type": "boolean",
            "description": "Read each repository's own page for exact watchers, commits, releases, tags, topics, license and community files.",
            "default": true
          },
          "fetchExtras": {
            "title": "Extra data per repository",
            "type": "array",
            "description": "Additional data read for every repository.",
            "items": {
              "type": "string",
              "enum": [
                "latestRelease",
                "languages",
                "contributors",
                "readme",
                "issues"
              ],
              "enumTitles": [
                "Latest release",
                "Language breakdown (%)",
                "Top contributors",
                "README text",
                "Recent issues and pull requests"
              ]
            },
            "default": [
              "latestRelease",
              "languages",
              "contributors",
              "readme"
            ]
          },
          "maxContributors": {
            "title": "Contributors per repository",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many top contributors to list when contributors are requested.",
            "default": 10
          },
          "includeOwnerProfile": {
            "title": "Include the owner profile",
            "type": "boolean",
            "description": "Add the owner's public profile (name, bio, company, location, followers, website) to every row.",
            "default": true
          },
          "state": {
            "title": "Issue state",
            "enum": [
              "open",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Which issues / pull requests to list when Extra data includes issues.",
            "default": "open"
          },
          "since": {
            "title": "Issues updated since",
            "type": "string",
            "description": "Only issues / pull requests updated on or after this date (with Extra data = issues)."
          },
          "issuesPerRepo": {
            "title": "Issues per repository",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many recent issues / pull requests to list per repository.",
            "default": 10
          },
          "includeComments": {
            "title": "Include issue comments",
            "type": "boolean",
            "description": "Add up to 10 comments to every listed issue.",
            "default": false
          },
          "includeReviews": {
            "title": "Include pull request reviews",
            "type": "boolean",
            "description": "Add the reviews of every listed pull request.",
            "default": false
          },
          "includeFiles": {
            "title": "Include pull request files",
            "type": "boolean",
            "description": "Add the changed files of every listed pull request.",
            "default": false
          },
          "trendingSince": {
            "title": "Trending period",
            "enum": [
              "daily",
              "weekly",
              "monthly"
            ],
            "type": "string",
            "description": "With mode Trending: today, this week or this month."
          },
          "trendingLanguage": {
            "title": "Trending language",
            "type": "string",
            "description": "With mode Trending: only this language, e.g. python."
          },
          "spokenLanguageCode": {
            "title": "Trending spoken language",
            "type": "string",
            "description": "With mode Trending: spoken language code of the repositories, e.g. en, zh."
          },
          "compareRepos": {
            "title": "Benchmark repositories",
            "type": "array",
            "description": "Repositories (owner/repo or URL) to compare every result with in the benchmarks column. They are not output themselves.",
            "items": {
              "type": "string"
            }
          },
          "compareToPreviousRun": {
            "title": "Compare with the previous run",
            "type": "boolean",
            "description": "Remember this input's results and mark every repository as new, updated or unchanged on the next run, with the previous values and the star change.",
            "default": true
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "enriched",
              "minimal",
              "raw"
            ],
            "type": "string",
            "description": "How many columns each row has.",
            "default": "enriched"
          },
          "addSequentialId": {
            "title": "Add a sequential id",
            "type": "boolean",
            "description": "Add a sequentialId column (1, 2, 3 ...) in output order.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages are read in parallel.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "GitHub works without a proxy. Set one only if your network needs it.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}