{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Scraper: Repositories, Trending, Issues, Releases",
    "description": "GitHub scraper without login: search repositories by phrase, topic and language, list the most starred new repositories of the last N days, read repository details, README, issues, releases and a user's or organisation's repositories. Only-new mode. USD 0.0008 per result row.",
    "version": "0.1",
    "x-build-id": "O6XvdFPXkNBTgPDOa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bardach_technologies~github-repository-data-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bardach_technologies-github-repository-data-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/bardach_technologies~github-repository-data-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bardach_technologies-github-repository-data-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/bardach_technologies~github-repository-data-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bardach_technologies-github-repository-data-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": {
          "searchPhrases": {
            "title": "GitHub repository scraper: search phrases",
            "maxItems": 20,
            "type": "array",
            "description": "Up to 20 repository searches, each up to 256 characters, one search per entry. Plain words search name, description, topics and README; GitHub's own search qualifiers also work (for example stars:>1000 or org:vercel). Each phrase is read with the filters below. Leave all lists empty and the run ends at once without a result charge (Apify's own start fee still applies).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language filter",
            "type": "string",
            "description": "Optional programming language as GitHub names it, for example Python, Rust, C++ or Jupyter Notebook. Applies to searches and the trending-style job. If you set only a language or a topic (no phrase, no other list), one search with these filters runs."
          },
          "topic": {
            "title": "Topic filter",
            "type": "string",
            "description": "Optional GitHub topic, for example machine-learning or cli (lower case letters, digits and -)."
          },
          "minStars": {
            "title": "Minimum stars",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Searches and the trending-style job return only repositories with at least this many stars. Default 0 (no minimum).",
            "default": 0
          },
          "createdWithinDays": {
            "title": "Created within the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Searches only: repositories created in the last N days. 0 (default): no limit. For \"most starred of the last N days\" use Trending days below.",
            "default": 0
          },
          "pushedWithinDays": {
            "title": "Pushed within the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Searches only: repositories with a push in the last N days (a sign that the project is alive). 0 (default): no limit.",
            "default": 0
          },
          "excludeForks": {
            "title": "Leave out forks",
            "type": "boolean",
            "description": "Applies to searches, the trending-style job and account lists. Default off.",
            "default": false
          },
          "excludeArchived": {
            "title": "Leave out archived repositories",
            "type": "boolean",
            "description": "Applies to searches and the trending-style job. Default off.",
            "default": false
          },
          "sortBy": {
            "title": "Sort searches by",
            "enum": [
              "stars",
              "forks",
              "updated",
              "best-match"
            ],
            "type": "string",
            "description": "Order of search results. Default: most stars.",
            "default": "stars"
          },
          "trendingDays": {
            "title": "Trending: most starred created in the last N days",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Adds one job that returns the most starred repositories created in the last N days (with the language, topic, minimum stars and fork filters above). This is the stars-in-a-window list of new projects, not GitHub's own trending page. 0 (default): off, from 1 to 365.",
            "default": 0
          },
          "repositories": {
            "title": "GitHub repository scraper: repositories (owner/name or link)",
            "maxItems": 100,
            "type": "array",
            "description": "Up to 100 repositories as owner/name or github.com links, but one run takes at most 200 jobs and each repository is up to 3 jobs (details, issues, releases), so 100 repositories fit only with fewer data kinds. Each one gives a details row (stars, forks, issues, licence, topics, last push, optional README), plus its issues and releases when switched on below. A repository GitHub does not know gets a free not-found row, a blocked one a free blocked row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "accounts": {
            "title": "GitHub repository scraper: users or organisations",
            "maxItems": 50,
            "type": "array",
            "description": "Up to 50 GitHub users or organisations (name or github.com link). Each gives the list of its public repositories, most recently pushed first. Only repository data is read, no profile fields.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "repositoryDetails": {
            "title": "Repository details",
            "type": "boolean",
            "description": "On (default): every listed repository gives one details row. Off: only the issues and releases you switch on are read.",
            "default": true
          },
          "includeIssues": {
            "title": "Issues",
            "type": "boolean",
            "description": "Adds the issues of every listed repository, newest first (pull requests only if switched on below).",
            "default": false
          },
          "includePullRequests": {
            "title": "Include pull requests in issues",
            "type": "boolean",
            "description": "GitHub lists pull requests together with issues. Default off: pull requests are left out.",
            "default": false
          },
          "issueState": {
            "title": "Issue state",
            "enum": [
              "open",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Which issues are read. Default: open.",
            "default": "open"
          },
          "includeReleases": {
            "title": "Releases",
            "type": "boolean",
            "description": "Adds the releases of every listed repository, newest first, with tag, date, notes excerpt and download counts.",
            "default": false
          },
          "includeReadme": {
            "title": "README text",
            "type": "boolean",
            "description": "Adds the README text to each repository details row (one more request per repository; e-mail-like text is removed). Default off.",
            "default": false
          },
          "readmeMaxChars": {
            "title": "README: maximum characters",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The README text is cut to this length. Default 5,000, up to 100,000.",
            "default": 5000
          },
          "maxResultsPerJob": {
            "title": "Maximum results per job",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "At most this many rows per search, trending job, account, issues list or releases list in one run (the job row says how many were left). Default 100, from 1 to 1,000 (GitHub reaches at most 1,000 search results).",
            "default": 100
          },
          "maxPagesPerJob": {
            "title": "Maximum pages scanned per job",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Pages of 100 read per job and run. With onlyNewSinceLastRun a job may need to read past entries it has already reported to find new ones; the limit stops that (the job is then marked truncated). Without a token GitHub allows 60 requests an hour and 10 searches a minute, so keep it low. Default 3, from 1 to 10.",
            "default": 3
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since the last run",
            "type": "boolean",
            "description": "On: each search, trending job, account list, issues list and releases list delivers only items it has not delivered before (the first run delivers everything it read and saves what it delivered). Repository details rows are always delivered. Runs with the same state key, job and filters compare with each other. Default off: every run delivers everything and saves nothing.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Names this monitoring job for onlyNewSinceLastRun. Use another key for another job. Only one run at a time per state key: two runs at the same time with the same key both deliver (and charge) the same new items and can damage the saved state, which then starts a new baseline. 1 to 64 letters, digits, - or _. Default: default.",
            "default": "default"
          },
          "githubToken": {
            "title": "GitHub token (optional)",
            "type": "string",
            "description": "Optional. A personal access token with no permissions at all (read-only public data) raises GitHub's limits from 60 to 5,000 requests an hour and from 10 to 30 searches a minute. It is sent only to api.github.com, as an authorization header, and is never stored, logged or written to the output. Create it in your own GitHub settings; do not give a token that can write. Format: a token starts with github_pat_ (fine-grained) or ghp_ (classic)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}