{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Repository Search — Stars, Topics, License & Owners",
    "description": "Search GitHub repositories or developers with the official GitHub REST API: keywords, language, stars, topics, license, dates. Stars, forks, topics, license, last push and optional owner profiles. Your token optional.",
    "version": "0.1",
    "x-build-id": "FlD6MV0xhZpAsqg46"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/openregistry~github-repos-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-openregistry-github-repos-search",
        "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/openregistry~github-repos-search/runs": {
      "post": {
        "operationId": "runs-sync-openregistry-github-repos-search",
        "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/openregistry~github-repos-search/run-sync": {
      "post": {
        "operationId": "run-sync-openregistry-github-repos-search",
        "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": {
          "searchType": {
            "title": "Search for",
            "enum": [
              "repositories",
              "users"
            ],
            "type": "string",
            "description": "Repositories (default) or GitHub accounts.",
            "default": "repositories"
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Words searched in the name, description and topics of repositories (or in login, name and e-mail of accounts)."
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Programming languages, e.g. Python, TypeScript, Rust, Go. Several languages are alternatives.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Repositories mode: GitHub topics, e.g. machine-learning, llm, home-assistant. Every topic listed must be present.",
            "items": {
              "type": "string"
            }
          },
          "minStars": {
            "title": "Minimum stars",
            "minimum": 0,
            "type": "integer",
            "description": "Repositories mode."
          },
          "maxStars": {
            "title": "Maximum stars",
            "minimum": 0,
            "type": "integer",
            "description": "Repositories mode: useful to find rising projects."
          },
          "createdAfter": {
            "title": "Created after",
            "type": "string",
            "description": "Creation date on or after (YYYY-MM-DD)."
          },
          "createdBefore": {
            "title": "Created before",
            "type": "string",
            "description": "Repositories mode: creation date on or before (YYYY-MM-DD)."
          },
          "pushedAfter": {
            "title": "Last push after",
            "type": "string",
            "description": "Repositories mode: keep repositories with code pushed on or after this date — a good filter for maintained projects."
          },
          "license": {
            "title": "License",
            "type": "string",
            "description": "Repositories mode: SPDX license key, e.g. mit, apache-2.0, gpl-3.0."
          },
          "owners": {
            "title": "Owners",
            "type": "array",
            "description": "Repositories mode: only repositories of these users or organizations, e.g. microsoft, apify.",
            "items": {
              "type": "string"
            }
          },
          "includeForks": {
            "title": "Include forks",
            "type": "boolean",
            "description": "Repositories mode: forks are excluded by GitHub unless you turn this on.",
            "default": false
          },
          "includeArchived": {
            "title": "Include archived repositories",
            "type": "boolean",
            "description": "Repositories mode: turn off to keep only active, writable repositories.",
            "default": true
          },
          "includeOwnerProfile": {
            "title": "Add the owner's public profile",
            "type": "boolean",
            "description": "Repositories mode: adds name, company, website, location, public e-mail, bio and followers of each owner (one extra call per distinct owner). Without a token GitHub allows 60 profiles per hour.",
            "default": false
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Users mode: location written in the profile, e.g. Berlin, France, San Francisco."
          },
          "minFollowers": {
            "title": "Minimum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Users mode."
          },
          "minRepos": {
            "title": "Minimum public repositories",
            "minimum": 0,
            "type": "integer",
            "description": "Users mode."
          },
          "accountType": {
            "title": "Account type",
            "enum": [
              "any",
              "user",
              "org"
            ],
            "type": "string",
            "description": "Users mode.",
            "default": "any"
          },
          "includeProfiles": {
            "title": "Read full profiles",
            "type": "boolean",
            "description": "Users mode: reads each account's public profile (name, company, location, bio, followers). Turn off for logins only.",
            "default": true
          },
          "rawQuery": {
            "title": "Extra qualifiers (advanced)",
            "type": "string",
            "description": "Any GitHub search qualifiers added to the query, e.g. in:readme, good-first-issues:>3, size:<1000, org:vercel."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "best-match",
              "stars",
              "forks",
              "updated",
              "help-wanted-issues",
              "followers",
              "repositories",
              "joined"
            ],
            "type": "string",
            "description": "GitHub returns at most 1,000 results per search, so the sort decides which ones you get.",
            "default": "best-match"
          },
          "order": {
            "title": "Order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Ignored for best match.",
            "default": "desc"
          },
          "githubToken": {
            "title": "GitHub token (optional)",
            "type": "string",
            "description": "A personal access token with no scopes (public data only) raises the limits from 10 to 30 searches per minute and from 60 to 5,000 profiles per hour. It is stored encrypted and only sent to api.github.com."
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Up to 1,000 per run (GitHub's limit per search). For more, split by star range or creation date.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}