{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Weekly Trending Repos & Org Repo Finder",
    "description": "Find GitHub repositories gaining stars this week, run keyword searches across all public repos, or list an organization's public repos with stars, forks, language, topics and license for each one.",
    "version": "1.1",
    "x-build-id": "DGRXP7CBtuvak3Z5y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~github-weekly-trending-repos-and-org-repo-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-github-weekly-trending-repos-and-org-repo-finder",
        "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/dataspryva~github-weekly-trending-repos-and-org-repo-finder/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-github-weekly-trending-repos-and-org-repo-finder",
        "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/dataspryva~github-weekly-trending-repos-and-org-repo-finder/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-github-weekly-trending-repos-and-org-repo-finder",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "trending",
              "search",
              "orgRepos",
              "userRepos",
              "repoDetails",
              "developers"
            ],
            "type": "string",
            "description": "What to fetch: GitHub Trending repositories, trending developers, keyword search, an organization's repos, a user's repos, or specific repository details.",
            "default": "trending"
          },
          "since": {
            "title": "Trending period",
            "enum": [
              "daily",
              "weekly",
              "monthly"
            ],
            "type": "string",
            "description": "Time window for trending repositories and developers (mode=trending / developers).",
            "default": "weekly"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Keywords to search in repository names, descriptions and READMEs (mode=search). GitHub search syntax such as `language:` or `topic:` also works.",
            "default": "machine learning"
          },
          "language": {
            "title": "Programming language",
            "enum": [
              "",
              "Python",
              "JavaScript",
              "TypeScript",
              "Rust",
              "Go",
              "Java",
              "C++",
              "C#",
              "C",
              "Ruby",
              "PHP",
              "Swift",
              "Kotlin",
              "Dart",
              "Scala",
              "Shell",
              "HTML",
              "CSS",
              "Vue",
              "Svelte",
              "Jupyter Notebook",
              "R",
              "MATLAB",
              "Lua",
              "Perl",
              "Haskell",
              "Elixir",
              "Erlang",
              "Clojure",
              "F#",
              "OCaml",
              "Zig",
              "Nim",
              "Julia",
              "Objective-C",
              "Assembly",
              "Solidity",
              "PowerShell",
              "Groovy",
              "Crystal",
              "Elm",
              "WebAssembly",
              "TeX",
              "Makefile",
              "Dockerfile",
              "Nix",
              "HCL",
              "Astro",
              "CMake",
              "CoffeeScript",
              "Emacs Lisp",
              "GDScript",
              "GLSL",
              "Gherkin",
              "Jsonnet",
              "PLpgSQL",
              "Prolog",
              "Racket",
              "Raku",
              "ReScript",
              "Sass",
              "SCSS",
              "Starlark",
              "TSQL",
              "Visual Basic .NET",
              "Wolfram Language",
              "XSLT"
            ],
            "type": "string",
            "description": "Restrict results to one programming language (all modes except developers; trending uses the language's trending page).",
            "default": ""
          },
          "customLanguage": {
            "title": "Custom language",
            "type": "string",
            "description": "Optional free-text GitHub language name that overrides the dropdown above (e.g. `Blade`, `QML`, `Tcl`)."
          },
          "spokenLanguage": {
            "title": "Spoken language",
            "enum": [
              "",
              "en",
              "zh",
              "es",
              "hi",
              "ar",
              "pt",
              "fr",
              "de",
              "ja",
              "ko",
              "ru",
              "it",
              "tr",
              "vi",
              "pl",
              "nl",
              "id",
              "th",
              "fa",
              "he",
              "uk",
              "sv",
              "da",
              "fi",
              "no",
              "cs",
              "el",
              "ro",
              "hu",
              "ca",
              "sr",
              "hr",
              "sk",
              "sl",
              "bg",
              "lt",
              "lv",
              "et",
              "ms",
              "tl",
              "sw",
              "bn",
              "ta",
              "te",
              "ml",
              "kn",
              "gu",
              "mr",
              "pa",
              "ur",
              "ne",
              "si",
              "km",
              "lo",
              "my",
              "ka",
              "hy",
              "az",
              "kk",
              "uz"
            ],
            "type": "string",
            "description": "Only show trending repos whose README is written in this language (mode=trending).",
            "default": ""
          },
          "customSpokenLanguage": {
            "title": "Custom spoken language",
            "type": "string",
            "description": "Optional ISO 639-1 code that overrides the spoken language dropdown (e.g. `fi`, `uk`, `vi`)."
          },
          "org": {
            "title": "Organization",
            "type": "string",
            "description": "GitHub organization login or profile URL (mode=orgRepos).",
            "default": "openai"
          },
          "user": {
            "title": "User",
            "type": "string",
            "description": "GitHub user login or profile URL (mode=userRepos).",
            "default": "torvalds"
          },
          "repoUrls": {
            "title": "Repository URLs",
            "type": "array",
            "description": "Repository links or `owner/repo` paths, one per line (mode=repoDetails).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "stars",
              "forks",
              "updated",
              "help-wanted-issues",
              "best-match"
            ],
            "type": "string",
            "description": "Result order for search, org and user modes. `Best match` uses GitHub relevance; other values rank by that metric.",
            "default": "stars"
          },
          "minStars": {
            "title": "Minimum stars",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop repositories with fewer stars than this. Set 0 to disable.",
            "default": 0
          },
          "pushedWithinDays": {
            "title": "Pushed within (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only repositories with a push in the last N days. Set 0 to disable (365 = one year).",
            "default": 0
          },
          "aiOnly": {
            "title": "AI / ML repositories only",
            "type": "boolean",
            "description": "Keep repositories related to AI, machine learning, LLMs, computer vision and related topics (all repository modes).",
            "default": false
          },
          "filterTopics": {
            "title": "Topics filter",
            "type": "array",
            "description": "Keep repositories with at least one of these GitHub topics (e.g. `llm`, `rag`, `pytorch`). Empty = no topic filter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeForks": {
            "title": "Include forks",
            "type": "boolean",
            "description": "Include forked repositories in search, org and user results. Off by default for a clean signal.",
            "default": false
          },
          "includeDeveloperProfiles": {
            "title": "Include developer profiles",
            "type": "boolean",
            "description": "Fetch bio, followers, public repo count, company and location for each trending developer (mode=developers). Adds one request per developer.",
            "default": false
          },
          "includeLanguages": {
            "title": "Include language breakdown",
            "type": "boolean",
            "description": "Fetch the byte-count language breakdown for each repository (mode=repoDetails). Adds one request per repository.",
            "default": true
          },
          "includeContributors": {
            "title": "Include contributors",
            "type": "boolean",
            "description": "Fetch the top 10 contributors for each repository (mode=repoDetails). Adds one request per repository.",
            "default": false
          },
          "includeReadme": {
            "title": "Include README",
            "type": "boolean",
            "description": "Fetch each repository's README as markdown (mode=repoDetails). Adds one download per repository.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of records to return. GitHub search, org and user modes cap at 1,000 results; Trending exposes about 25 per page.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}