Social Handle Scraper avatar
Social Handle Scraper
Try for free

No credit card required

View all Actors
Social Handle Scraper

Social Handle Scraper

Try for free

No credit card required

Scrape usernames for social networks like Instagram, Facebook, YouTube, Twitter, TikTok, LinkedIn and many others

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode




1from apify_client import ApifyClient
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
6# Prepare the Actor input
7run_input = { "targets": [{
8            "id": "S4mp1e1D",
9            "url": "",
10        }] }
12# Run the Actor and wait for it to finish
13run ="slash-scrape/social-handle-scraper").call(run_input=run_input)
15# Fetch and print Actor results from the run's dataset (if there are any)
16for item in client.dataset(run["defaultDatasetId"]).iterate_items():
17    print(item)
Community logoMaintained by Community
Actor metrics
  • 31 monthly users
  • 70.0% runs succeeded
  • 0.1 days response time
  • Created in Jan 2024
  • Modified about 2 months ago

You might also like these Actors