{
  "openapi": "3.0.1",
  "info": {
    "title": "Github Tech Intelligence",
    "description": "GitHub Trending highlights what’s popular today. This surfaces what’s about to take off tomorrow—and shows which repos are healthy, safe to adopt, and truly gaining traction.",
    "version": "0.1",
    "x-build-id": "hzBJl7kPGlDmnLNnJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/credible_sandal~github-tech-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-credible_sandal-github-tech-intelligence",
        "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/credible_sandal~github-tech-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-credible_sandal-github-tech-intelligence",
        "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/credible_sandal~github-tech-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-credible_sandal-github-tech-intelligence",
        "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",
              "repo_analysis",
              "org_intelligence",
              "competitor_track"
            ],
            "type": "string",
            "description": "What to analyze",
            "default": "trending"
          },
          "ecosystems": {
            "title": "Ecosystems",
            "type": "array",
            "description": "Pick one or more ecosystems to search. The actor automatically expands each into all relevant GitHub topics.",
            "items": {
              "type": "string",
              "enum": [
                "ai-llm",
                "rust",
                "go",
                "java-spring",
                "python",
                "typescript-frontend",
                "mobile",
                "devops-cloud",
                "databases",
                "dotnet"
              ],
              "enumTitles": [
                "AI / LLM",
                "Rust",
                "Go / Infrastructure",
                "Java / Spring",
                "Python",
                "TypeScript / Frontend",
                "Mobile",
                "DevOps / Cloud",
                "Databases",
                ".NET / C#"
              ]
            },
            "default": [
              "ai-llm"
            ]
          },
          "topics": {
            "title": "Custom Topics (optional)",
            "type": "array",
            "description": "Advanced: add specific GitHub topic tags not covered by the ecosystem dropdown (e.g. elixir, zig, htmx). Leave empty if using ecosystems.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "organizationsOnly": {
            "title": "Organizations Only",
            "type": "boolean",
            "description": "When enabled, only repos owned by GitHub organizations or companies are included. Individual contributor repos (personal accounts) are excluded.",
            "default": false
          },
          "deduplicateRepos": {
            "title": "Deduplicate Repos",
            "type": "boolean",
            "description": "When enabled (default), each repo appears once in the results even if it matched multiple topics. Disable to get one record per topic match — useful to see exactly which topics a repo is relevant to.",
            "default": true
          },
          "repos": {
            "title": "Specific Repos",
            "type": "array",
            "description": "owner/repo pairs to analyze (e.g. vercel/next.js). Used in repo_analysis and competitor_track modes.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "orgs": {
            "title": "GitHub Orgs / Companies",
            "type": "array",
            "description": "GitHub org names to map (e.g. stripe, vercel, openai). Used in org_intelligence mode.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "companyNames": {
            "title": "Company Names (plain English)",
            "type": "array",
            "description": "Enter company names in plain English (e.g. Google, Microsoft, Hugging Face). The actor automatically resolves them to the correct GitHub org names — no need to know the exact org handle.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "trendingDays": {
            "title": "Trending Window (days)",
            "minimum": 7,
            "maximum": 90,
            "type": "integer",
            "description": "Look for repos created or spiking in the last N days (recommended: 7, 14, 30, or 90)",
            "default": 20
          },
          "minStars": {
            "title": "Minimum Stars",
            "type": "integer",
            "description": "Only include repos with at least this many stars",
            "default": 100
          },
          "maxResults": {
            "title": "Max Results (total)",
            "minimum": 5,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of repos to return in total across all topics, after deduplication and sorting by viral score. This is what you'll see in your dataset.",
            "default": 20
          },
          "maxResultsPerTopic": {
            "title": "Max Results per Topic (advanced)",
            "minimum": 5,
            "maximum": 100,
            "type": "integer",
            "description": "How many repos to fetch from GitHub per topic tag before deduplication. Lower = faster and cheaper. Higher = broader coverage. Default 20 is good for most runs.",
            "default": 10
          },
          "enableDeltaTracking": {
            "title": "Enable Delta Tracking",
            "type": "boolean",
            "description": "Track changes between runs. When enabled, each repo shows stars_delta, viral_score_delta, rank_delta, and is_new_this_run compared to the previous run. Most useful when the actor runs on a schedule (daily or weekly).",
            "default": false
          },
          "includeFounderIntelligence": {
            "title": "Include Founder Intelligence",
            "type": "boolean",
            "description": "Fetch the GitHub profile of each repo's owner — followers, company, account age, credibility score. Adds 1 API call per repo. Recommended for repo_analysis mode.",
            "default": false
          },
          "githubToken": {
            "title": "GitHub Personal Access Token",
            "type": "string",
            "description": "Strongly recommended — raises rate limit from 60 to 5,000 req/hour. Create at github.com/settings/tokens (no scopes needed)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}