{
  "openapi": "3.0.1",
  "info": {
    "title": "Linktree Advanced Lead Scraper (Category & Subcategory)",
    "description": "Advanced Linktree scraper that extracts profiles from category and subcategory directories, collects emails, social links, bio data, and profile metadata. Supports pagination, proxy rotation, and large-scale lead extraction from Linktree discovery pages.",
    "version": "1.0",
    "x-build-id": "Dc64BS5zSbHYs9Qph"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahmed_jasarevic~linktree-advanced-lead-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahmed_jasarevic-linktree-advanced-lead-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/ahmed_jasarevic~linktree-advanced-lead-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ahmed_jasarevic-linktree-advanced-lead-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/ahmed_jasarevic~linktree-advanced-lead-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ahmed_jasarevic-linktree-advanced-lead-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": {
          "categories": {
            "title": "🏢 Main Categories (Linktree)",
            "type": "array",
            "description": "Select one or more main categories.",
            "items": {
              "type": "string",
              "enum": [
                "business",
                "creative",
                "education",
                "entertainment",
                "fashion-beauty",
                "food-beverage",
                "government-politics",
                "health-wellness",
                "non-profit",
                "other",
                "tech",
                "travel-tourism"
              ],
              "enumTitles": [
                "🏢 Business",
                "🎨 Creative",
                "📚 Education",
                "🤩 Entertainment",
                "👗 Fashion & Beauty",
                "🍕 Food & Beverage",
                "⚖️ Government & Politics",
                "🍎 Health & Wellness",
                "💗 Non-Profit",
                "😎 Other",
                "🖥 Tech",
                "✈️ Travel & Tourism"
              ]
            },
            "default": [
              "business"
            ]
          },
          "subCategories": {
            "title": "🔍 Sub-categories",
            "type": "array",
            "description": "Select specific sub-categories.",
            "items": {
              "type": "string",
              "enum": [
                "automobiles",
                "startup",
                "venture-capital",
                "real-estate",
                "public-relations",
                "weddings",
                "shopping-retail",
                "home-improvement-maintenance",
                "hr-recruiting",
                "marketing-advertising",
                "legal-services",
                "agency-consulting",
                "recreation",
                "financial-services",
                "digital-creator",
                "designer",
                "cosplay",
                "model",
                "visual-arts",
                "writer",
                "crafts",
                "influencer",
                "campus-organizations",
                "teacher",
                "schools-universities",
                "e-learning",
                "radio-podcasts",
                "actor",
                "dance-theatre",
                "sports",
                "music",
                "talent-management",
                "performance-art",
                "talent-agency",
                "comedy",
                "live-events",
                "gaming-esports",
                "film-tv",
                "tattoos-piercings",
                "nail-care",
                "jewelry",
                "shoes",
                "hair-care",
                "makeup-skincare",
                "clothing-accessories",
                "fragrances",
                "desserts",
                "bars-restaurants",
                "coffee-tea",
                "chef",
                "alcohol",
                "home-cooking",
                "groceries",
                "policy",
                "activism",
                "library",
                "countries-municipalities",
                "judiciary",
                "public-services",
                "emergency-services",
                "politicians-campaigns",
                "military-veterans",
                "law-enforcement",
                "spirituality",
                "nutrition",
                "cannabis",
                "healthcare",
                "life-coaching",
                "disaster-relief",
                "community-organization",
                "museums",
                "wildlife",
                "diversity-inclusion",
                "climate",
                "public-figure",
                "crowdfunding",
                "not-listed",
                "affiliate-marketing",
                "fan-club",
                "electronic-press-kit",
                "memes",
                "contests-giveaways",
                "portfolio",
                "religion",
                "pets",
                "personal",
                "edutech",
                "social-media",
                "hardware",
                "fintech",
                "saas",
                "mobile-app",
                "transportation",
                "attractions",
                "hotels-lodging"
              ],
              "enumTitles": [
                "🚗 Automobiles",
                "🚀 Startup",
                "💰 Venture Capital",
                "🏠 Real Estate",
                "📢 Public Relations",
                "💍 Weddings",
                "🛍️ Shopping & Retail",
                "🛠️ Home Improvement & Maintenance",
                "👥 HR & Recruiting",
                "📈 Marketing & Advertising",
                "⚖️ Legal Services",
                "🏢 Agency & Consulting",
                "🎮 Recreation",
                "💳 Financial Services",
                "🎥 Digital Creator",
                "🎨 Designer",
                "🎭 Cosplay",
                "📸 Model",
                "🖼 Visual Arts",
                "✍️ Writer",
                "🧵 Crafts",
                "📣 Influencer",
                "🎓 Campus Organizations",
                "👩‍🏫 Teacher",
                "🏫 Schools & Universities",
                "💻 E-learning",
                "📻 Radio & Podcasts",
                "🎬 Actor",
                "💃 Dance & Theatre",
                "🏆 Sports",
                "🎵 Music",
                "🎯 Talent Management",
                "🎭 Performance Art",
                "🏢 Talent Agency",
                "😂 Comedy",
                "🎤 Live Events",
                "🎮 Gaming & Esports",
                "🎬 Film & TV",
                "💉 Tattoos & Piercings",
                "💅 Nail Care",
                "💍 Jewelry",
                "👟 Shoes",
                "💇 Hair Care",
                "💄 Makeup & Skincare",
                "👗 Clothing & Accessories",
                "🌸 Fragrances",
                "🍰 Desserts",
                "🍽 Bars & Restaurants",
                "☕ Coffee & Tea",
                "👨‍🍳 Chef",
                "🍺 Alcohol",
                "🍳 Home Cooking",
                "🛒 Groceries",
                "📜 Policy",
                "✊ Activism",
                "📚 Library",
                "🌍 Countries & Municipalities",
                "⚖️ Judiciary",
                "🏛 Public Services",
                "🚨 Emergency Services",
                "🗳 Politicians & Campaigns",
                "🪖 Military & Veterans",
                "🚓 Law Enforcement",
                "🧘 Spirituality",
                "🥗 Nutrition",
                "🌿 Cannabis",
                "🏥 Healthcare",
                "🧠 Life Coaching",
                "🚑 Disaster Relief",
                "🤝 Community Organization",
                "🏛 Museums",
                "🐾 Wildlife",
                "🌈 Diversity & Inclusion",
                "🌍 Climate",
                "👤 Public Figure",
                "💸 Crowdfunding",
                "📦 Not Listed",
                "🤝 Affiliate Marketing",
                "🎉 Fan Club",
                "📰 Electronic Press Kit",
                "😂 Memes",
                "🎁 Contests & Giveaways",
                "📁 Portfolio",
                "🕌 Religion",
                "🐶 Pets",
                "🧍 Personal",
                "🧠 Edutech",
                "📱 Social Media",
                "🖥 Hardware",
                "🏦 Fintech",
                "☁️ SaaS",
                "📲 Mobile App",
                "🚕 Transportation",
                "🎡 Attractions",
                "🏨 Hotels & Lodging"
              ]
            },
            "default": []
          },
          "maxPagesPerCategory": {
            "title": "📄 Max pages per category",
            "minimum": 1,
            "type": "integer",
            "description": "How deep the scraper will go inside each category/sub-category (1 page ~ 24 profiles).",
            "default": 5
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "type": "integer",
            "description": "Maximum number of pages processed simultaneously.",
            "default": 10
          },
          "debugLog": {
            "title": "🐞 Enable Debug Logs",
            "type": "boolean",
            "description": "Turn on to see detailed logs and raw network payloads in the console.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "It is highly recommended to use Apify Proxy to avoid getting rate-limited by Linktree.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}