{
  "openapi": "3.0.1",
  "info": {
    "title": "GitHub Developer Lead Finder & Email Enricher",
    "description": "Find developers on GitHub and enrich each one with verified email, company, location, skills, and social links for recruiting and B2B outreach.",
    "version": "0.1",
    "x-build-id": "kKIPdT6OncyDcfMbi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fayoussef~github-developer-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fayoussef-github-developer-leads",
        "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/fayoussef~github-developer-leads/runs": {
      "post": {
        "operationId": "runs-sync-fayoussef-github-developer-leads",
        "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/fayoussef~github-developer-leads/run-sync": {
      "post": {
        "operationId": "run-sync-fayoussef-github-developer-leads",
        "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": [
          "searchType"
        ],
        "properties": {
          "searchType": {
            "title": "Search type",
            "enum": [
              "users",
              "repositories",
              "stargazers",
              "contributors",
              "organization"
            ],
            "type": "string",
            "description": "How to find developers:\n- **User search** – GitHub's user search (use the query field, e.g. `language:Go location:Berlin followers:>100`).\n- **Repository search** – find repos by query, then collect their contributors.\n- **Stargazers** – everyone who starred the given repositories.\n- **Contributors** – everyone who committed to the given repositories.\n- **Organization members** – public members of the given organizations.",
            "default": "users"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "GitHub search query. Used for the **User search** and **Repository search** types. Supports full GitHub search syntax. Examples: `language:Python location:\"San Francisco\" followers:>500`, `machine learning stars:>1000`."
          },
          "repositories": {
            "title": "Repositories",
            "type": "array",
            "description": "List of repositories as `owner/name` (or full GitHub URLs). Used for the **Stargazers** and **Contributors** search types.",
            "items": {
              "type": "string"
            }
          },
          "organizations": {
            "title": "Organizations",
            "type": "array",
            "description": "List of GitHub organization logins (or full URLs). Used for the **Organization members** search type. Note: only publicly visible members are returned.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum leads",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of developer profiles to return. Keep this sensible to control cost — GitHub search is capped at 1,000 results per query.",
            "default": 200
          },
          "extractEmails": {
            "title": "Extract emails",
            "type": "boolean",
            "description": "Try to find each developer's email. Uses the public profile email first, then mines recent public commit history (where most real emails actually live).",
            "default": true
          },
          "deepEmailSearch": {
            "title": "Deep email search",
            "type": "boolean",
            "description": "If no email is found from public events, also scan commits inside the developer's own repositories. More thorough but uses extra API calls (slower).",
            "default": false
          },
          "includeNoreplyEmails": {
            "title": "Include GitHub noreply emails",
            "type": "boolean",
            "description": "Include anonymized `@users.noreply.github.com` addresses. These are not contactable, so they are excluded by default.",
            "default": false
          },
          "enrichStats": {
            "title": "Enrich skills & stats",
            "type": "boolean",
            "description": "Add inferred top programming languages, total stars earned, and pinned-repo signals by scanning the developer's repositories. Uses extra API calls.",
            "default": true
          },
          "onlyWithEmail": {
            "title": "Only leads with an email",
            "type": "boolean",
            "description": "Skip developers for whom no contactable email was found.",
            "default": false
          },
          "onlyHireable": {
            "title": "Only hireable developers",
            "type": "boolean",
            "description": "Keep only developers who set the \"available for hire\" flag on their GitHub profile. Great for technical recruiting.",
            "default": false
          },
          "minFollowers": {
            "title": "Minimum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip developers with fewer than this many followers.",
            "default": 0
          },
          "githubToken": {
            "title": "GitHub token (recommended)",
            "type": "string",
            "description": "A GitHub Personal Access Token (classic or fine-grained, no scopes required for public data). **Without a token you are limited to GitHub's unauthenticated rate of 60 requests/hour, which caps a run at roughly 20 leads per hour.** Strongly recommended: a token raises your rate limit from 60 to 5,000 requests/hour, so larger runs finish reliably. Create one at https://github.com/settings/tokens"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}