{
  "openapi": "3.0.1",
  "info": {
    "title": "Linktree Scraper - Bio Links, Emails, Phones & Socials",
    "description": "Scrape Linktree and other link-in-bio pages (Stan, Komi, Bio Sites, Taplink, link.me, Carrd): name, bio, every link, social profiles and the emails, phones and WhatsApp numbers the page publishes. URLs, usernames, Linktree's directory, related profiles, monitor mode. $0.90 per 1,000 pages.",
    "version": "0.1",
    "x-build-id": "Tc7kI1Vu4lBheIwhN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~linktree-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-linktree-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/topapi~linktree-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-linktree-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/topapi~linktree-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-linktree-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": {
          "startUrls": {
            "title": "🔗 Page URLs",
            "type": "array",
            "description": "Link-in-bio pages, one per line, any service mixed: https://linktr.ee/<name>, https://stan.store/<name>, https://<name>.komi.io, https://bio.site/<name>, https://taplink.cc/<name>, https://link.me/<name>, https://<name>.carrd.co, any other link page. A bare name is read on the service below.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "👤 Usernames",
            "type": "array",
            "description": "Usernames (with or without @) read on the service chosen below, e.g. selenagomez, @garyvee. One per line.",
            "items": {
              "type": "string"
            }
          },
          "platform": {
            "title": "Service for usernames",
            "enum": [
              "linktree",
              "beacons",
              "stan",
              "komi",
              "biolink",
              "lnkbio",
              "linkme",
              "taplink",
              "solo",
              "biosites",
              "allmylinks",
              "pillar",
              "hoobe",
              "later",
              "campsite",
              "directme",
              "milkshake"
            ],
            "type": "string",
            "description": "Where bare usernames live. Full URLs are always read on their own service.",
            "default": "linktree"
          },
          "urlsFromFile": {
            "title": "📄 URLs or usernames from a file",
            "type": "array",
            "description": "Optional: upload a text or CSV file, or link a remote list (Google Sheet as CSV, a URL list), with page URLs or usernames in the first column. Merged with the lists above.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "directoryCategories": {
            "title": "📚 Linktree directory categories",
            "type": "array",
            "description": "Read Linktree's own public profile directory (linktr.ee/discover/profile-directory): ~18 profiles a page, pages in the directory's order. Pick categories or subcategories, e.g. Real Estate, Music, Fitness (Nutrition), Marketing Advertising.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "business",
                "creative",
                "education",
                "entertainment",
                "fashion-beauty",
                "food-beverage",
                "government-politics",
                "health-wellness",
                "non-profit",
                "other",
                "tech",
                "travel-tourism",
                "activism",
                "actor",
                "affiliate-marketing",
                "agency-consulting",
                "alcohol",
                "attractions",
                "automobiles",
                "bars-restaurants",
                "campus-organizations",
                "cannabis",
                "chef",
                "climate",
                "clothing-accessories",
                "coffee-tea",
                "comedy",
                "community-organization",
                "contests-giveaways",
                "cosplay",
                "countries-municipalities",
                "crafts",
                "crowdfunding",
                "dance-theatre",
                "designer",
                "desserts",
                "digital-creator",
                "disaster-relief",
                "diversity-inclusion",
                "e-learning",
                "edutech",
                "electronic-press-kit",
                "emergency-services",
                "fan-club",
                "film-tv",
                "financial-services",
                "fintech",
                "fragrances",
                "gaming-esports",
                "groceries",
                "hair-care",
                "hardware",
                "healthcare",
                "home-cooking",
                "home-improvement-maintenance",
                "hotels-lodging",
                "hr-recruiting",
                "influencer",
                "jewelry",
                "judiciary",
                "law-enforcement",
                "legal-services",
                "library",
                "life-coaching",
                "live-events",
                "makeup-skincare",
                "marketing-advertising",
                "memes",
                "military-veterans",
                "mobile-app",
                "model",
                "museums",
                "music",
                "nail-care",
                "not-listed",
                "nutrition",
                "performance-art",
                "personal",
                "pets",
                "policy",
                "politicians-campaigns",
                "portfolio",
                "public-figure",
                "public-relations",
                "public-services",
                "radio-podcasts",
                "real-estate",
                "recreation",
                "religion",
                "saas",
                "schools-universities",
                "shoes",
                "shopping-retail",
                "social-media",
                "spirituality",
                "sports",
                "startup",
                "talent-agency",
                "talent-management",
                "tattoos-piercings",
                "teacher",
                "transportation",
                "venture-capital",
                "visual-arts",
                "weddings",
                "wildlife",
                "writer"
              ],
              "enumTitles": [
                "Category: All profiles",
                "Category: Business",
                "Category: Creative",
                "Category: Education",
                "Category: Entertainment",
                "Category: Fashion Beauty",
                "Category: Food Beverage",
                "Category: Government Politics",
                "Category: Health Wellness",
                "Category: Non Profit",
                "Category: Other",
                "Category: Tech",
                "Category: Travel Tourism",
                "Activism",
                "Actor",
                "Affiliate Marketing",
                "Agency Consulting",
                "Alcohol",
                "Attractions",
                "Automobiles",
                "Bars Restaurants",
                "Campus Organizations",
                "Cannabis",
                "Chef",
                "Climate",
                "Clothing Accessories",
                "Coffee Tea",
                "Comedy",
                "Community Organization",
                "Contests Giveaways",
                "Cosplay",
                "Countries Municipalities",
                "Crafts",
                "Crowdfunding",
                "Dance Theatre",
                "Designer",
                "Desserts",
                "Digital Creator",
                "Disaster Relief",
                "Diversity Inclusion",
                "E-learning",
                "Edutech",
                "Electronic Press Kit",
                "Emergency Services",
                "Fan Club",
                "Film TV",
                "Financial Services",
                "Fintech",
                "Fragrances",
                "Gaming Esports",
                "Groceries",
                "Hair Care",
                "Hardware",
                "Healthcare",
                "Home Cooking",
                "Home Improvement Maintenance",
                "Hotels Lodging",
                "HR Recruiting",
                "Influencer",
                "Jewelry",
                "Judiciary",
                "Law Enforcement",
                "Legal Services",
                "Library",
                "Life Coaching",
                "Live Events",
                "Makeup Skincare",
                "Marketing Advertising",
                "Memes",
                "Military Veterans",
                "Mobile App",
                "Model",
                "Museums",
                "Music",
                "Nail Care",
                "Not Listed",
                "Nutrition",
                "Performance Art",
                "Personal",
                "Pets",
                "Policy",
                "Politicians Campaigns",
                "Portfolio",
                "Public Figure",
                "Public Relations",
                "Public Services",
                "Radio Podcasts",
                "Real Estate",
                "Recreation",
                "Religion",
                "SaaS",
                "Schools Universities",
                "Shoes",
                "Shopping Retail",
                "Social Media",
                "Spirituality",
                "Sports",
                "Startup",
                "Talent Agency",
                "Talent Management",
                "Tattoos Piercings",
                "Teacher",
                "Transportation",
                "Venture Capital",
                "Visual Arts",
                "Weddings",
                "Wildlife",
                "Writer"
              ]
            }
          },
          "directoryStartPage": {
            "title": "Directory: first page",
            "minimum": 1,
            "type": "integer",
            "description": "Directory page to start at (1 = the first). Use it to continue where an earlier run stopped.",
            "default": 1
          },
          "maxDirectoryPages": {
            "title": "Directory: pages per category",
            "minimum": 1,
            "type": "integer",
            "description": "Directory pages read per category (~18 profiles each). \"All profiles\" has over 21,000 pages; Max results stops the run first.",
            "default": 5
          },
          "discoverRelatedProfiles": {
            "title": "Also scrape related Linktree profiles",
            "type": "boolean",
            "description": "Every Linktree page lists 10 trusted and ~45 related profiles. On: they are scraped too (snowball discovery), up to Max results.",
            "default": false
          },
          "discoveryDepth": {
            "title": "Discovery depth",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many hops related-profile discovery and linked-page following go from your pages: 1 = their related profiles only, 2 = theirs too.",
            "default": 1
          },
          "includeRelatedProfiles": {
            "title": "List related Linktree profiles",
            "type": "boolean",
            "description": "Add the usernames of the related profiles each Linktree page lists (relatedProfiles) and Linktree's noindex flag, without scraping them. Always on with discovery. Off by default: pages are then read only up to what the row needs (half the bytes).",
            "default": false
          },
          "followLinkedBioPages": {
            "title": "Follow linked bio-link pages",
            "type": "boolean",
            "description": "When a page links to another link-in-bio page (a Linktree button to a Stan store, a Komi page to a Linktree), scrape that page too.",
            "default": false
          },
          "hasEmailOnly": {
            "title": "Only pages with an email",
            "type": "boolean",
            "description": "Deliver (and charge) only pages that publish at least one email address.",
            "default": false
          },
          "hasContactOnly": {
            "title": "Only pages with a contact",
            "type": "boolean",
            "description": "Deliver only pages that publish an email, a phone number or a WhatsApp number.",
            "default": false
          },
          "verifiedOnly": {
            "title": "Only verified pages",
            "type": "boolean",
            "description": "Deliver only pages with the service's verified badge (Linktree).",
            "default": false
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Deliver only pages whose account country is one of these ISO codes, e.g. US, GB, BR (Linktree pages carry a country).",
            "items": {
              "type": "string"
            }
          },
          "minLinks": {
            "title": "Minimum links",
            "minimum": 0,
            "type": "integer",
            "description": "Deliver only pages with at least this many links. 0 = any.",
            "default": 0
          },
          "keywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "Deliver only pages whose name, username, bio or link titles contain one of these words, e.g. coach, realtor, podcast.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Leave out pages whose name, username, bio or link titles contain one of these words.",
            "items": {
              "type": "string"
            }
          },
          "excludeSensitive": {
            "title": "Leave out sensitive-content pages",
            "type": "boolean",
            "description": "Leave out pages the service marks as sensitive (Linktree's 18+ warning).",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Most pages delivered (and charged) in the run. 0 = no limit.",
            "default": 100
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "profiles",
              "links"
            ],
            "type": "string",
            "description": "One row per page (links nested), or one row per link with the page's name and contacts on each (one charge per page either way).",
            "default": "profiles"
          },
          "includeProducts": {
            "title": "Include products",
            "type": "boolean",
            "description": "Products and offers shown on the page (Linktree shop items, Stan products and memberships, Komi products) with prices.",
            "default": true
          },
          "includeTheme": {
            "title": "Include theme",
            "type": "boolean",
            "description": "Page theme (colours, style) and banner image.",
            "default": false
          },
          "includeRawData": {
            "title": "Include raw data",
            "type": "boolean",
            "description": "Attach the service's own page data (Linktree's page JSON, Komi's profile JSON ...) to each row as rawData. Large rows.",
            "default": false
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Core fields only (name, bio, emails, phones, socials, links, website): small rows for AI agents, MCP clients and CRMs.",
            "default": false
          },
          "includeUnavailable": {
            "title": "Include unavailable pages",
            "type": "boolean",
            "description": "Also write a free status row for every page that was not found, had no profile on it or was refused (status + reason), so the output lines up with your list.",
            "default": false
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Remember every page delivered (in the store named below) and on the next run deliver only pages that are new or changed (links added or removed, bio, name, contacts), with what changed. Pairs with a schedule.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor memory name",
            "type": "string",
            "description": "Name of the key-value store that remembers the pages. Give each list its own name. Letters, digits and hyphens.",
            "default": "linktree-monitor"
          },
          "monitorDeliver": {
            "title": "Deliver",
            "enum": [
              "newAndChanged",
              "new",
              "all"
            ],
            "type": "string",
            "description": "New and changed pages (default), only pages never seen before (known pages are not even read - the cheapest way to watch a directory category), or every page with its change type.",
            "default": "newAndChanged"
          },
          "monitorRecheckHours": {
            "title": "Re-check known pages after (hours)",
            "minimum": 0,
            "type": "integer",
            "description": "New and changed modes: a page checked less than this many hours ago is not read again, so a run scheduled every hour re-reads each page once a day. 0 = read every page on every run.",
            "default": 24
          },
          "resetMonitor": {
            "title": "Reset the monitor memory",
            "type": "boolean",
            "description": "Forget every page remembered in the store above before this run.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Default: the run's own connection, then an Apify datacenter proxy, then a residential one, each only if a site refuses the one before. Pick a group or your own proxies to use only those.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Parallel pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Pages read at once. 20 is a safe default at 256 MB; above 30, give the run 512 MB (the most it allows). Linktree pages are paced at about 150 a minute whatever this is set to.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}