{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Repository & Developer Scraper — Stars, Tech Stacks &",
    "description": "Scrape GitHub repositories, developers, stargazers, forks, topics, licenses, and commit activity. Advanced search by stars, programming language, topic tags, and activity dates.",
    "version": "0.1",
    "x-build-id": "X6fbxV3BmT8vX8aFj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/spotless_studios~github-repos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-spotless_studios-github-repos-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/spotless_studios~github-repos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-spotless_studios-github-repos-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/spotless_studios~github-repos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-spotless_studios-github-repos-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",
        "properties": {
          "searchQuery": {
            "title": "Search query / keywords",
            "type": "string",
            "description": "Keywords or GitHub search qualifiers (e.g. 'ai agent', 'mcp server', 'fastapi microservices').",
            "default": "ai agent"
          },
          "searchQueries": {
            "title": "Multiple search queries",
            "type": "array",
            "description": "Optional list of multiple search queries to run sequentially in a single job.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Programming language",
            "type": "string",
            "description": "Filter by primary language (e.g. 'typescript', 'python', 'rust', 'go')."
          },
          "topic": {
            "title": "Topic tag",
            "type": "string",
            "description": "Filter repositories tagged with a specific topic (e.g. 'llm', 'automation', 'developer-tools')."
          },
          "owner": {
            "title": "Owner / Organization",
            "type": "string",
            "description": "Filter repositories owned by a specific GitHub user or organization (e.g. 'vercel', 'microsoft', 'anthropics')."
          },
          "license": {
            "title": "License key",
            "type": "string",
            "description": "Filter by SPDX license key (e.g. 'mit', 'apache-2.0', 'gpl-3.0', 'bsd-3-clause')."
          },
          "minStars": {
            "title": "Minimum stars",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of stars (e.g. 50, 500, 1000)."
          },
          "maxStars": {
            "title": "Maximum stars",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of stars (useful for finding emerging repos)."
          },
          "minForks": {
            "title": "Minimum forks",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of forks."
          },
          "maxForks": {
            "title": "Maximum forks",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of forks."
          },
          "createdAfter": {
            "title": "Created after",
            "type": "string",
            "description": "Only return repos created after this date (YYYY-MM-DD, ISO, or relative like '30 days' / '6 months')."
          },
          "pushedAfter": {
            "title": "Pushed / updated after",
            "type": "string",
            "description": "Only return repos with commits after this date (YYYY-MM-DD, ISO, or relative like '14 days')."
          },
          "includeForks": {
            "title": "Include forked repositories",
            "type": "boolean",
            "description": "Include forked repositories in results.",
            "default": false
          },
          "includeArchived": {
            "title": "Include archived repositories",
            "type": "boolean",
            "description": "Keep archived / read-only repositories.",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "stars",
              "forks",
              "updated",
              "help-wanted-issues"
            ],
            "type": "string",
            "description": "Sort field for repository discovery.",
            "default": "stars"
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Descending or ascending order.",
            "default": "desc"
          },
          "repoNames": {
            "title": "Direct repository names or URLs",
            "type": "array",
            "description": "Scrape specific repositories directly in 'owner/repo' format or full GitHub URLs (e.g. 'facebook/react', 'https://github.com/vercel/next.js').",
            "items": {
              "type": "string"
            }
          },
          "includeOwnerDetails": {
            "title": "Include owner / organization contact details",
            "type": "boolean",
            "description": "Fetch each repository owner's profile to enrich records with ownerName, ownerEmail, ownerCompany, ownerBlog, ownerLocation, ownerBio, ownerTwitter, and ownerFollowers.",
            "default": false
          },
          "githubToken": {
            "title": "Optional GitHub Personal Access Token",
            "type": "string",
            "description": "Optional GitHub PAT to increase API rate limits from 60 req/hr to 5,000 req/hr."
          },
          "includeKeywords": {
            "title": "Include keywords",
            "type": "array",
            "description": "Keep only repositories matching these keywords or /regex/ in name, description, topics, or owner.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Skip repositories matching any of these keywords or /regex/.",
            "items": {
              "type": "string"
            }
          },
          "keywordMatch": {
            "title": "Include keyword logic",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Require any or all includeKeywords to match.",
            "default": "any"
          },
          "onlyNewItems": {
            "title": "Only new repositories (monitoring mode)",
            "type": "boolean",
            "description": "Remember seen repository IDs across runs and emit only newly discovered repositories.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor state name",
            "type": "string",
            "description": "Separate state key per saved search or schedule.",
            "default": "default"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of repositories to save.",
            "default": 100
          },
          "outputPreset": {
            "title": "Data preset",
            "enum": [
              "full",
              "lean",
              "contacts"
            ],
            "type": "string",
            "description": "Choose full record, lean summary, or contacts & links only.",
            "default": "full"
          },
          "outputFields": {
            "title": "Output fields",
            "type": "array",
            "description": "Keep only these specific fields in each saved record.",
            "items": {
              "type": "string"
            }
          },
          "excludeFields": {
            "title": "Exclude fields",
            "type": "array",
            "description": "Remove specific fields from each saved record.",
            "items": {
              "type": "string"
            }
          },
          "includeEmptyFields": {
            "title": "Keep empty / null fields",
            "type": "boolean",
            "description": "When disabled, strips null and empty values from each saved record.",
            "default": true
          },
          "requiredFields": {
            "title": "Required non-empty fields",
            "type": "array",
            "description": "Only save records where every listed field has a non-empty value (e.g. homepage, ownerEmail).",
            "items": {
              "type": "string"
            }
          },
          "maxPages": {
            "title": "Max search pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum search pages per query (100 repos per page, GitHub search returns up to 10 pages per query).",
            "default": 10
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Parallel requests when fetching direct repositories.",
            "default": 4
          },
          "maxRequestRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries per failed or rate-limited HTTP request.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout per HTTP request.",
            "default": 30
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy settings. Direct works first; auto-escalates on rate limits.",
            "default": {
              "useApifyProxy": false
            }
          },
          "proxyEscalation": {
            "title": "Auto-escalate proxies when rate-limited",
            "type": "boolean",
            "description": "Automatically step up from direct to Apify datacenter/residential proxies if GitHub rate-limits the IP.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}