{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Scraper: Repos, Trending, Issues, PRs and Releases",
    "description": "Scrape GitHub repositories from searches, trending pages, owners and repo lists, plus issues, pull requests and releases. Stars, forks, topics, license, dates, labels, downloads. No login; optional token for big runs.",
    "version": "1.0",
    "x-build-id": "nz4iP5XVSjDRVeN1Z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datagrovehq~github-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datagrovehq-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/datagrovehq~github-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datagrovehq-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/datagrovehq~github-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datagrovehq-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": {
          "searchQueries": {
            "title": "Repository searches",
            "type": "array",
            "description": "Search GitHub repositories. GitHub's qualifiers work: language:python, stars:>1000, topic:llm, created:>2026-01-01, pushed:>2026-10-01, license:mit, org:apify. GitHub serves up to 1,000 results per query.",
            "items": {
              "type": "string"
            }
          },
          "trendingLanguages": {
            "title": "Trending today",
            "type": "array",
            "description": "Today's trending repositories from github.com/trending, with stars gained today and full repo data. Use a language (python, typescript, rust, go) or an empty entry for all languages.",
            "items": {
              "type": "string"
            }
          },
          "repositories": {
            "title": "Repositories",
            "type": "array",
            "description": "Repositories as owner/repo or URL (https://github.com/apify/crawlee). Returns repo details, and their issues and releases if turned on below.",
            "items": {
              "type": "string"
            }
          },
          "owners": {
            "title": "Owners (users or organizations)",
            "type": "array",
            "description": "All public repositories of a user or organization (up to 1,000), as a name or URL (microsoft, https://github.com/vercel).",
            "items": {
              "type": "string"
            }
          },
          "issueSearchQueries": {
            "title": "Issue and pull request searches",
            "type": "array",
            "description": "Search issues and PRs across GitHub with qualifiers: is:issue, is:pr, is:open, label:bug, repo:owner/name, language:go, created:>2026-10-01, \"good first issue\". Up to 1,000 results per query.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerSource": {
            "title": "Max items per source",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows from each search, trending page, owner, or repository's issues or releases.",
            "default": 100
          },
          "sort": {
            "title": "Repository sort",
            "enum": [
              "stars",
              "forks",
              "updated",
              "best-match"
            ],
            "type": "string",
            "description": "Order for repository searches and owners.",
            "default": "stars"
          },
          "includeForks": {
            "title": "Include forks (owners)",
            "type": "boolean",
            "description": "For owners: also list repositories that are forks of other projects.",
            "default": false
          },
          "includeRepoDetails": {
            "title": "Repo details for Repositories",
            "type": "boolean",
            "description": "Output one row per repository in the Repositories list. Turn off to get only their issues or releases.",
            "default": true
          },
          "includeIssues": {
            "title": "Issues and PRs for Repositories",
            "type": "boolean",
            "description": "Get issues and pull requests of each repository in the Repositories list, newest first.",
            "default": false
          },
          "issueType": {
            "title": "Issue type",
            "enum": [
              "all",
              "issues",
              "pulls"
            ],
            "type": "string",
            "description": "For repository issues: issues, pull requests, or both.",
            "default": "all"
          },
          "issueState": {
            "title": "Issue state",
            "enum": [
              "all",
              "open",
              "closed"
            ],
            "type": "string",
            "description": "For repository issues: open, closed, or all.",
            "default": "all"
          },
          "updatedSince": {
            "title": "Issues updated since (date)",
            "type": "string",
            "description": "Optional. For repository issues: only those updated on or after this date (YYYY-MM-DD)."
          },
          "issueSort": {
            "title": "Issue search sort",
            "enum": [
              "best-match",
              "created",
              "updated",
              "comments",
              "reactions"
            ],
            "type": "string",
            "description": "Order for issue and PR searches.",
            "default": "best-match"
          },
          "includeBody": {
            "title": "Include issue text",
            "type": "boolean",
            "description": "Include the full text (Markdown) of issues and PRs. Turn off for smaller datasets.",
            "default": true
          },
          "includeReleases": {
            "title": "Releases for Repositories",
            "type": "boolean",
            "description": "Get releases of each repository in the Repositories list: tag, notes, assets and download counts.",
            "default": false
          },
          "githubToken": {
            "title": "GitHub token (optional)",
            "type": "string",
            "description": "Optional personal access token (no scopes needed). Without it, issues and releases are limited to 60 requests per hour per IP (100 rows per request). Searches, trending, owners and repo details work fine without it."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for normal use. Without a token, an Apify proxy switches IPs when GitHub's hourly limit runs out.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}