{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Repo, Maintainer & Company Signal Extractor",
    "description": "Extract public GitHub repository, maintainer, and commercialization signals from organizations, repository lists, topics, and search queries.",
    "version": "1.0",
    "x-build-id": "IEBUJTAfZFJVP53sz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/w3crawler~github-repo-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-w3crawler-github-repo-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/w3crawler~github-repo-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-w3crawler-github-repo-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/w3crawler~github-repo-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-w3crawler-github-repo-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",
        "properties": {
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Single search query sent to GitHub repository search (for example: javascript, web scraping, playwright)."
          },
          "searchQueries": {
            "title": "Search Queries",
            "type": "string",
            "description": "Optional newline-separated list of GitHub repository search queries.",
            "default": ""
          },
          "repositories": {
            "title": "Repository URLs / full names",
            "type": "string",
            "description": "Optional newline-separated repository URLs or owner/repo values to enrich, e.g. `https://github.com/example-org/example-repository`.",
            "default": ""
          },
          "githubToken": {
            "title": "GitHub Personal Access Token",
            "type": "string",
            "description": "Optional token to increase rate limits. Keep read-only, no `repo` scopes required for public data."
          },
          "searchSort": {
            "title": "Search sort",
            "enum": [
              "stars",
              "forks",
              "updated",
              "help-wanted-issues",
              "best-match"
            ],
            "type": "string",
            "description": "GitHub API sort mode for search results.",
            "default": "stars"
          },
          "searchOrder": {
            "title": "Search order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Sort order for search results.",
            "default": "desc"
          },
          "maxResults": {
            "title": "Maximum repositories",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Hard cap across all queries and direct repository entries.",
            "default": 10
          },
          "maxPages": {
            "title": "Max pages per search query",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Pagination cap for each search query.",
            "default": 2
          },
          "perPage": {
            "title": "Results per search page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "GitHub search page size (bounded by endpoint limits).",
            "default": 30
          },
          "maxConcurrency": {
            "title": "Maximum concurrent repository enrichments",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Upper bound of concurrent repository detail requests.",
            "default": 3
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Delay between GitHub API calls to reduce throttling risk.",
            "default": 350
          },
          "requestTimeoutMs": {
            "title": "Request timeout (ms)",
            "minimum": 1000,
            "maximum": 120000,
            "type": "integer",
            "description": "Maximum time to wait for each public GitHub response.",
            "default": 20000
          },
          "maxRetries": {
            "title": "Maximum retries per request",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Number of attempts for a public GitHub request, including the first attempt.",
            "default": 3
          },
          "includeReleases": {
            "title": "Include recent releases",
            "type": "boolean",
            "description": "Fetch the latest public releases from the repository releases endpoint.",
            "default": true
          },
          "maxReleases": {
            "title": "Recent releases per repository",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of recent public release records attached to each repository.",
            "default": 5
          },
          "includeReadme": {
            "title": "Include README metadata",
            "type": "boolean",
            "description": "Download and include README metadata for repositories where available.",
            "default": true
          },
          "includeLanguages": {
            "title": "Include language breakdown",
            "type": "boolean",
            "description": "Enrich repository records with top language byte allocations.",
            "default": true
          },
          "includeTopics": {
            "title": "Include repository topics",
            "type": "boolean",
            "description": "Enrich repository records with detected topics.",
            "default": true
          },
          "includeMaintainer": {
            "title": "Include maintainer profile",
            "type": "boolean",
            "description": "Fetch the public owner or organization profile for each repository.",
            "default": true
          },
          "includeContributors": {
            "title": "Include public contributors",
            "type": "boolean",
            "description": "Fetch a bounded list of public contributor accounts for maintainer context.",
            "default": true
          },
          "maxContributors": {
            "title": "Maximum contributors",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum public contributor records attached to each repository.",
            "default": 5
          },
          "includeCommercializationSignals": {
            "title": "Include company signals",
            "type": "boolean",
            "description": "Derive transparent rule-based commercialization indicators from public repository and maintainer fields.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}