{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Repository Search, Stats and Releases",
    "description": "Search GitHub repositories by keyword, language, stars and dates, or look up a list of repositories. Returns stars, forks, topics, license, language, activity dates, latest release, release notes and optional README text, from GitHub's official API. Works without a key.",
    "version": "1.0",
    "x-build-id": "mItNd2LGFFHtfOnIL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pistachio_implementation~github-repo-search-stats/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pistachio_implementation-github-repo-search-stats",
        "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/pistachio_implementation~github-repo-search-stats/runs": {
      "post": {
        "operationId": "runs-sync-pistachio_implementation-github-repo-search-stats",
        "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/pistachio_implementation~github-repo-search-stats/run-sync": {
      "post": {
        "operationId": "run-sync-pistachio_implementation-github-repo-search-stats",
        "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": "Search queries",
            "type": "array",
            "description": "One per line. Keywords (llm agent framework) and any GitHub search qualifier (topic:rag, org:vercel, license:mit, in:readme) work.",
            "items": {
              "type": "string"
            }
          },
          "repositories": {
            "title": "Repositories to look up",
            "type": "array",
            "description": "One per line: owner/name (apify/crawlee) or a github.com link.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort search results by",
            "enum": [
              "best-match",
              "stars",
              "forks",
              "updated"
            ],
            "type": "string",
            "description": "Order of search results. Best match is GitHub's own relevance order.",
            "default": "best-match"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Optional. Only repositories whose main language is this, for example Python or TypeScript."
          },
          "minStars": {
            "title": "Minimum stars",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Skip repositories with fewer stars.",
            "default": 0
          },
          "createdAfter": {
            "title": "Created on or after",
            "type": "string",
            "description": "Optional date such as 2026-01-01. With sort by stars this finds new and rising repositories."
          },
          "pushedAfter": {
            "title": "Last code push on or after",
            "type": "string",
            "description": "Optional date such as 2026-06-01. Keeps actively maintained repositories only."
          },
          "includeForks": {
            "title": "Include forks in search",
            "type": "boolean",
            "description": "Forks are left out of search results unless this is on.",
            "default": false
          },
          "includeArchived": {
            "title": "Include archived repositories in search",
            "type": "boolean",
            "description": "Archived (read only) repositories are included unless this is off.",
            "default": true
          },
          "maxReposPerQuery": {
            "title": "Maximum repositories per query",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "GitHub returns at most 1,000 results for one search.",
            "default": 100
          },
          "includeLatestRelease": {
            "title": "Add latest release",
            "type": "boolean",
            "description": "Adds the latest release tag, name, date and link to each repository. Uses one extra GitHub call per repository.",
            "default": false
          },
          "releasesPerRepo": {
            "title": "Release rows per repository",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Also save up to this many recent releases per repository as separate rows, with release notes and download counts. 0 for none.",
            "default": 0
          },
          "includeReadme": {
            "title": "Add README text",
            "type": "boolean",
            "description": "Adds the README in its original Markdown, ready for an LLM or a RAG index.",
            "default": false
          },
          "maxReadmeChars": {
            "title": "Maximum README length",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Cut each README to this many characters. 0 means no limit.",
            "default": 20000
          },
          "githubToken": {
            "title": "GitHub token (optional)",
            "type": "string",
            "description": "Optional. Without a token GitHub allows 10 searches a minute and 60 other calls an hour from one address. A free personal access token with no scopes raises that to 30 searches a minute and 5,000 calls an hour. Stored encrypted and never written to the output."
          },
          "maxItems": {
            "title": "Maximum rows in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after saving this many rows (repositories plus releases).",
            "default": 5000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}