{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Trending Scraper",
    "description": "GitHub Trending Scraper exports today's, this week's or this month's trending GitHub repositories and developers for any language: rank, stars gained in the period, total stars, forks, builders, topics, license, open issues, README and contributors.",
    "version": "1.0",
    "x-build-id": "rT8OpEgpU6YPDT8UX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~github-trending-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-github-trending-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-trending-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-github-trending-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-trending-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-github-trending-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": {
          "since": {
            "title": "Period",
            "enum": [
              "daily",
              "weekly",
              "monthly"
            ],
            "type": "string",
            "description": "The trending period.",
            "default": "daily"
          },
          "periods": {
            "title": "Several periods",
            "type": "array",
            "description": "Scrape several periods in one run (overrides Period).",
            "items": {
              "type": "string",
              "enum": [
                "daily",
                "weekly",
                "monthly"
              ]
            }
          },
          "language": {
            "title": "Programming language",
            "type": "string",
            "description": "One language, e.g. python, rust, typescript. Empty = all languages."
          },
          "languages": {
            "title": "Several languages",
            "type": "array",
            "description": "Several languages in one run, e.g. python, go. Every language x period is its own list (overrides Programming language).",
            "items": {
              "type": "string"
            }
          },
          "spokenLanguageCode": {
            "title": "Spoken language",
            "type": "string",
            "description": "Two-letter code of the spoken language of the repositories, e.g. en, zh, es. Empty = any."
          },
          "scrapeType": {
            "title": "What to scrape",
            "enum": [
              "trending",
              "developers",
              "search",
              "repo",
              "user"
            ],
            "type": "string",
            "description": "Trending repositories (default), trending developers, or the extra modes search / repository URLs / user profiles.",
            "default": "trending"
          },
          "maxItems": {
            "title": "Max rows per list",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum rows per language x period list (a trending list has up to 25 rows) and per search query in search mode.",
            "default": 25
          },
          "minStars": {
            "title": "Min total stars",
            "minimum": 0,
            "type": "integer",
            "description": "Only repositories with at least this many stars in total."
          },
          "filterTopics": {
            "title": "Only these topics",
            "type": "array",
            "description": "Keep only repositories tagged with at least one of these topics, e.g. llm, rust.",
            "items": {
              "type": "string"
            }
          },
          "aiOnly": {
            "title": "Only AI repositories",
            "type": "boolean",
            "description": "Keep only repositories about AI (LLM, agents, machine learning ...) by name, description and topics.",
            "default": false
          },
          "watchlistMode": {
            "title": "Watchlist mode",
            "type": "boolean",
            "description": "Output only the repositories of the watchlist when they appear on a trending list.",
            "default": false
          },
          "watchlist": {
            "title": "Watchlist",
            "type": "array",
            "description": "Repositories (owner/repo or URL) to watch. Every row says onWatchlist true/false; with Watchlist mode only these are output.",
            "items": {
              "type": "string"
            }
          },
          "enrichWithApi": {
            "title": "Add repository details",
            "type": "boolean",
            "description": "Add topics, license, open issues, last update, watchers, commits and releases of every trending repository.",
            "default": true
          },
          "includeReadme": {
            "title": "Include README",
            "type": "boolean",
            "description": "Add the README of every repository as plain text (on by default; turn off for smaller rows).",
            "default": true
          },
          "includeContributors": {
            "title": "Include top contributors",
            "type": "boolean",
            "description": "Add the top 10 contributors of every repository.",
            "default": false
          },
          "searchQueries": {
            "title": "Search queries (search mode)",
            "type": "array",
            "description": "With What to scrape = search: keywords to search repositories for.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort (search mode)",
            "enum": [
              "stars",
              "forks",
              "updated",
              "help-wanted-issues",
              "best-match"
            ],
            "type": "string",
            "description": "Order of the search results in search mode.",
            "default": "stars"
          },
          "startUrls": {
            "title": "Repository URLs (repo mode)",
            "type": "array",
            "description": "With What to scrape = repo: repository links or owner/repo names.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Users (user mode)",
            "type": "array",
            "description": "With What to scrape = user: GitHub logins whose profile and repositories you want.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many repositories are processed at the same time.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}