{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Scraper: Repos, Issues, PRs, Contributors & Trending",
    "description": "GitHub scraper, no token or login: search repositories and users with GitHub's search syntax, repository stats, user and org profiles, issues and pull requests with comments, top contributors, forks, and today's trending repositories. From $1 per 1,000 repositories.",
    "version": "0.1",
    "x-build-id": "UGkqzgrbhe7uVdyD3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~github-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-github-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/memo23~github-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-github-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/memo23~github-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-github-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": {
          "startUrls": {
            "title": "GitHub links, repositories or usernames",
            "type": "array",
            "description": "One per line. A repository (`facebook/react` or its link) gives a repository row; an account (`torvalds`, or an organization link such as `https://github.com/vercel`) gives a profile row; an issue or pull request link gives its comments. Mix them freely.",
            "items": {
              "type": "string"
            }
          },
          "includeIssues": {
            "title": "Issues and pull requests of each repository",
            "type": "boolean",
            "description": "Also list the issues and pull requests of every repository above, with labels, comment and reaction counts, author and dates.",
            "default": false
          },
          "issueState": {
            "title": "Issue state",
            "enum": [
              "open",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Which issues and pull requests to list.",
            "default": "open"
          },
          "maxIssuesPerRepository": {
            "title": "Max issues per repository",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "Up to 150. The newest come first, then the most recently updated and the most discussed.",
            "default": 30
          },
          "includeContributors": {
            "title": "Top contributors of each repository",
            "type": "boolean",
            "description": "Also list the top 30 contributors of every repository, ranked by commits.",
            "default": false
          },
          "includeForks": {
            "title": "Forks of each repository",
            "type": "boolean",
            "description": "Also list forks of every repository: newest, most starred, oldest.",
            "default": false
          },
          "maxForksPerRepository": {
            "title": "Max forks per repository",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Up to 120.",
            "default": 30
          },
          "includeUserRepositories": {
            "title": "Repositories of each account",
            "type": "boolean",
            "description": "Also list the public repositories each account owns, most recently pushed first.",
            "default": false
          },
          "maxRepositoriesPerUser": {
            "title": "Max repositories per account",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Up to 120.",
            "default": 30
          },
          "includeComments": {
            "title": "Comments on the issues found",
            "type": "boolean",
            "description": "Also fetch the comments (up to 30, oldest first) of every issue and pull request this run lists that has at least 2 comments. Issue and pull request links in the list above always give their comments.",
            "default": false
          },
          "repositorySearchQueries": {
            "title": "Repository searches",
            "type": "array",
            "description": "Written like the GitHub search box: `web scraper language:python stars:>100`, `topic:llm pushed:>2026-01-01`, `org:vercel`. Each repository comes back with stars, forks, language, license, topics and dates.",
            "items": {
              "type": "string"
            }
          },
          "repositorySearchSort": {
            "title": "Sort repositories by",
            "enum": [
              "",
              "stars",
              "forks",
              "updated"
            ],
            "type": "string",
            "description": "The order repository search results come in.",
            "default": ""
          },
          "maxResultsPerRepositorySearch": {
            "title": "Max repositories per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Up to 1,000, the most GitHub returns for one search. Narrow by stars or date to get past that.",
            "default": 100
          },
          "userSearchQueries": {
            "title": "User and organization searches",
            "type": "array",
            "description": "Written like the GitHub search box: `location:berlin language:rust followers:>100`, `type:org location:japan`. Each account comes back as a full profile: name, bio, company, location, website, followers, repository count.",
            "items": {
              "type": "string"
            }
          },
          "userSearchSort": {
            "title": "Sort accounts by",
            "enum": [
              "",
              "followers",
              "repositories",
              "joined"
            ],
            "type": "string",
            "description": "The order user search results come in.",
            "default": ""
          },
          "maxResultsPerUserSearch": {
            "title": "Max accounts per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Up to 1,000. Each account is one profile row.",
            "default": 30
          },
          "issueSearchQueries": {
            "title": "Issue and pull request searches",
            "type": "array",
            "description": "Searches across all of GitHub, written like the GitHub search box: `memory leak is:issue language:rust`, `repo:microsoft/vscode is:pr is:open`, `label:\"good first issue\" language:python`.",
            "items": {
              "type": "string"
            }
          },
          "issueSearchSort": {
            "title": "Sort search results by",
            "enum": [
              "",
              "comments",
              "created",
              "updated",
              "reactions"
            ],
            "type": "string",
            "description": "The first order results come in. Past 30 results the other orders fill in the rest.",
            "default": ""
          },
          "maxResultsPerSearch": {
            "title": "Max results per search",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "Up to 150.",
            "default": 30
          },
          "trending": {
            "title": "Today's trending repositories",
            "type": "boolean",
            "description": "Also list the repositories on GitHub's trending page today (up to 25), with rank and description.",
            "default": false
          },
          "trendingDetails": {
            "title": "Full details for trending repositories",
            "type": "boolean",
            "description": "Turn each trending repository into a full repository row with stars, forks, language, license, topics and dates (billed as a repository row instead of a listing row).",
            "default": false
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "type": "integer",
            "description": "The run stops at this many dataset rows. Free-plan runs return up to 100.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}