{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Projects Scraper",
    "description": "Discover, score, and rank GitHub repositories by quality, stack fit, and reusable feature value.\nTop Benefits\nStack-aware discovery: filters repos by your real stack (React, PostgreSQL, TypeScript, etc.)\nActionable ranking: each repo gets score + compatibility + feature intelligence",
    "version": "1.0",
    "x-build-id": "eTiPL0Mcg4MPUU9VM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zippy_vector~github-projects-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zippy_vector-github-projects-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/zippy_vector~github-projects-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zippy_vector-github-projects-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/zippy_vector~github-projects-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zippy_vector-github-projects-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",
        "required": [
          "githubToken"
        ],
        "properties": {
          "githubToken": {
            "title": "GitHub Personal Access Token",
            "minLength": 1,
            "type": "string",
            "description": "GitHub PAT with at least repo read permissions. Used for authenticated GitHub REST/Search API calls."
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "GitHub search queries, e.g. ['ai agent', 'saas boilerplate']. Combined with language and stars filters.",
            "items": {
              "type": "string"
            },
            "default": [
              "saas boilerplate",
              "starter template"
            ]
          },
          "languages": {
            "title": "Languages filter",
            "type": "array",
            "description": "Optional language filters, e.g. ['TypeScript', 'Python']. If empty, all languages are allowed.",
            "items": {
              "type": "string"
            },
            "default": [
              "TypeScript",
              "Python"
            ]
          },
          "minStars": {
            "title": "Minimum stars",
            "type": "integer",
            "description": "Minimum GitHub stars to include a repository.",
            "default": 50
          },
          "maxStars": {
            "title": "Maximum stars",
            "type": "integer",
            "description": "Maximum GitHub stars (to avoid overly popular repos).",
            "default": 50000
          },
          "minForks": {
            "title": "Minimum forks",
            "type": "integer",
            "description": "Minimum number of forks.",
            "default": 5
          },
          "pushedAfter": {
            "title": "Pushed after (date)",
            "type": "string",
            "description": "Only include repositories with the last commit after this date. Format: YYYY-MM-DD. Default is one year ago.",
            "default": ""
          },
          "excludeTopics": {
            "title": "Exclude topics",
            "type": "array",
            "description": "GitHub topics to avoid, e.g. ['abandoned', 'deprecated'].",
            "items": {
              "type": "string"
            },
            "default": [
              "deprecated",
              "abandoned"
            ]
          },
          "includeTopics": {
            "title": "Preferred topics",
            "type": "array",
            "description": "Topics that increase a project's score, e.g. ['boilerplate', 'starter', 'template', 'saas'].",
            "items": {
              "type": "string"
            },
            "default": [
              "boilerplate",
              "starter",
              "template",
              "saas"
            ]
          },
          "maxResults": {
            "title": "Maximum projects",
            "type": "integer",
            "description": "How many projects to collect in total across all queries.",
            "default": 100
          },
          "scoreThreshold": {
            "title": "Minimum score threshold",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Only include projects with a total score >= this threshold (0–100).",
            "default": 10
          },
          "deepAnalysis": {
            "title": "Deep analysis (slower)",
            "type": "boolean",
            "description": "If true, fetches extra GitHub stats (commits, releases, issues, contributors). If false, collects only basic repo + README + topics + languages for faster runs.",
            "default": true
          },
          "maxSearchPagesPerQuery": {
            "title": "Max search pages per query",
            "minimum": 1,
            "maximum": 34,
            "type": "integer",
            "description": "Limit how many GitHub Search pages to process per query/language (1 page = 30 repos). Lower number = faster run.",
            "default": 3
          },
          "techStack": {
            "title": "Your Tech Stack",
            "type": "array",
            "description": "Specify technologies you use. Example: ['React', 'PostgreSQL', 'TypeScript', 'Docker']",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "stackMatchThreshold": {
            "title": "Min stack match %",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Minimum compatibility percentage to keep the repo (0-100)",
            "default": 30
          },
          "outputDataset": {
            "title": "Save to dataset",
            "type": "boolean",
            "description": "If true, results are stored to the default Apify dataset.",
            "default": true
          },
          "llmProvider": {
            "title": "LLM Provider",
            "enum": [
              "openai",
              "anthropic",
              "gemini",
              "none"
            ],
            "type": "string",
            "description": "Select LLM provider for analysis. 'none' = no AI analysis.",
            "default": "none"
          },
          "llmApiKey": {
            "title": "LLM API Key",
            "type": "string",
            "description": "API key for the selected provider"
          },
          "llmModel": {
            "title": "LLM Model (optional)",
            "type": "string",
            "description": "e.g. gpt-4o, claude-opus-4-5, gemini-1.5-pro. If empty, a default model is used."
          },
          "llmAnalysisDepth": {
            "title": "Analysis depth",
            "enum": [
              "quick",
              "standard",
              "deep"
            ],
            "type": "string",
            "description": "quick = only summary, standard = full analysis, deep = multi-LLM consensus",
            "default": "standard"
          },
          "secondaryLlmProvider": {
            "title": "Secondary LLM Provider (Multi-consensus)",
            "enum": [
              "openai",
              "anthropic",
              "gemini",
              "none"
            ],
            "type": "string",
            "description": "Used only when llmAnalysisDepth='deep'",
            "default": "none"
          },
          "secondaryLlmApiKey": {
            "title": "Secondary LLM API Key (optional)",
            "type": "string",
            "description": "Used only when llmAnalysisDepth='deep'"
          },
          "secondaryLlmModel": {
            "title": "Secondary LLM Model (optional)",
            "type": "string",
            "description": "e.g. claude-opus-4-5, gemini-1.5-pro. If empty, a default model is used."
          },
          "userContext": {
            "title": "Your context (for personalized analysis)",
            "type": "string",
            "description": "Describe yourself: technologies, budget, experience. Example: 'Solo developer, I know TypeScript and React, have $500 for marketing, looking for a SaaS project I can launch in 3 months.'"
          },
          "generatePdfReport": {
            "title": "Generate PDF report",
            "type": "boolean",
            "description": "Generate an HTML → PDF report with all insights",
            "default": false
          },
          "reportEmail": {
            "title": "Report email address",
            "type": "string",
            "description": "If provided, the PDF report will be sent to this email address"
          },
          "userProductIdea": {
            "title": "Your product idea (for competitor analysis)",
            "type": "string",
            "description": "Describe what you want to build. Example: 'A SaaS tool that automatically generates SEO copy from a product description.'"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}