All Social Media Posts Extractor (by Hashtag and Username)

All Social Media Posts Extractor (by Hashtag and Username)

by caprolok

Effortlessly extract posts from Instagram, TikTok, YouTube, LinkedIn, and Twitter. Search by specific keywords and locations to quickly get structured...

1,887 runs
170 users
Try This Actor

Opens on Apify.com

About All Social Media Posts Extractor (by Hashtag and Username)

Effortlessly extract posts from Instagram, TikTok, YouTube, LinkedIn, and Twitter. Search by specific keywords and locations to quickly get structured results, including usernames, captions, engagement stats, and direct post links. Ideal for marketers, creators, and researchers.

What does this actor do?

All Social Media Posts Extractor (by Hashtag and Username) is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

All Social Media Posts Extractor (by Hashtag and Username) # All Social Media Posts Extractor (by Hashtag and Username) All Social Media Posts Extractor makes social data mining a breeze. Just drop in profile URLs, usernames, or hashtags from Instagram, TikTok, LinkedIn, or Twitter (X) and let the actor return neatly structured posts ready for analysis. Whether you track brand sentiment, scout influencers, or need fresh content inspiration, this versatile actor puts crossโ€‘platform insights at your fingertips no coding wizardry required. ## ๐Ÿ“„ What Can You Extract? - Caption: Main text or description of the post - Content Type: Post type (tweet, reel, tiktok, article, etc.) - Name: Display name of the profile or page - Platform: Source platform (instagram, tiktok, linkedin, twitter) - Post Id: Unique identifier of the post on its platform - Post Link: Direct url to the post - Timestamp: Date the post was published (yyyy-mm-dd) - User Link: Direct url to the author's profile - Username: Handle or profile slug of the author - Replies: Number of replies / comments (where available) - Search Input: Original search term or url that produced this result ## ๐Ÿ“˜ How to Use Getting started is quick and painless even if you've never scraped data before: 1. Create a free Apify account. All you need is an email address. 2. Open the All Social Media Posts Extractor on the Apify platform. 3. Add your input parameters (e.g., Profile Links, User Names or Hashtags. โ€“ customize as needed). 4. Click "Start". The actor will rapidly fetch posts. 5. Download your dataset in JSON, CSV, Excel, or HTML, or pipe it straight into your integrations via the API. ## โœจ Key Features - Multi-platform support: Instagram, TikTok, LinkedIn, Twitter (X) - Fetch by hashtag or username/profile link - Flexible limits (max_posts, location) - Location-based filtering to target specific geographic regions - Deduplication to avoid repeated records across runs - REST API & webhooks for seamless automation ## โŒจ๏ธ Input Parameters | Field | Type | Description | Required | | ------------- | ---------------- | ------------------------------------------------------- | ---------------- | | Search inputs | array \<string> | List of profile URLs, usernames, or hashtags to scrape | โœ” | | Platform | string | One of INSTAGRAM, TIKTOK, LINKEDIN, TWITTER | โœ” | | Max posts | integer | Maximum number of posts to fetch per input | โœ– (default = 50) | | Location | string | Geographic filter to target posts from specific regions | โœ– (optional) | ### Sample Input json { "search_inputs": [ "https://www.instagram.com/google/", "apple", "#marketing" ], "platform": "INSTAGRAM", "location": "US", "max_posts": 10 } ## ๐Ÿ“Š Output The actor returns a structured dataset with the following fields for each record. ### Sample Output (JSON) json [ { "caption": "This oneโ€™s for the vibe coders โœจ Show us your creations below ๐Ÿ”ฝ", "contentType": "Tweet", "name": "Google", "platform": "TWITTER", "post_id": "191**************", "post_link": "https://x.com/Google/status/191**************", "timestamp": "2025-05-06", "user_link": "https://x.com/Google", "username": "Google", "replies": 32574278, "search_input": "Google" } ] ## ๐ŸŽฏ Use Cases - Build targeted influencer lists for brand collaborations - Track competitor campaigns and engagement across platforms - Monitor hashtags to spot trending topics in real time - Target posts by geography with location-based filtering for localized marketing insights - Feed social proof and testimonials into landing pages automatically - Enrich CRM records with the latest customer posts and bios - Collect user-generated content for market research or sentiment analysis - Automate weekly social media performance reports for clients - Train AI/ML models with fresh, labeled social content ## ๐Ÿ“Œ Usage Tips - Combine multiple hashtags and profile URLs in one run to save credits. - Set maxPosts to focus on fresh posts and speed up execution. - Turn on Apify residential proxies when dealing with strict regions or high volumes. ## ๐Ÿ”Œ Integrations All Social Media Posts Extractor fits seamlessly into your data pipeline. Thanks to built-in integrations on the Apify platform, you can connect this actor with virtually any cloud service or web app. ### Popular integrations - Make (Integromat) โ€“ automate multi-step workflows. - Zapier โ€“ send data to 5,000+ apps. - Airbyte โ€“ sync datasets into your data warehouse. - Slack โ€“ push instant notifications. - Google Sheets & Drive โ€“ store results in spreadsheets or cloud. - GitHub โ€“ commit datasets directly to your repositories. - AWS S3 / Azure Blob Storage โ€“ archive large exports securely. ### Webhooks Set up webhooks to trigger actions when the actor completes or fails, e.g., send email or Slack alerts. ## ๐Ÿ› ๏ธ API Access Prefer to automate with code? The Apify REST API lets you manage, schedule, and run this actor programmatically. - Run & Schedule Actors - Access Datasets - Monitor Runs - Version Control ### Client libraries | Language | Package | Install | | -------- | -------------- | -------------------------- | | Node.js | apify-client | npm install apify-client | | Python | apify-client | pip install apify-client | --- For complete API examples and detailed usage, visit the API documentation. js from apify_client import ApifyClient # Initialize the ApifyClient with your Apify API token # Replace '<YOUR_API_TOKEN>' with your token. client = ApifyClient("<YOUR_API_TOKEN>") # Prepare the Actor input run_input = { "search_inputs": [ "https://www.instagram.com/google/", "apple", "#marketing", ] } # Run the Actor and wait for it to finish run = client.actor("caprolok/all-social-media-posts-extractor-by-hashtag-and-username").call(run_input=run_input) # Fetch and print Actor results from the run's dataset (if there are any) print("๐Ÿ’พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"]) for item in client.dataset(run["defaultDatasetId"]).iterate_items(): print(item) ### MCP Quickstart You can use the Apify MCP Server in two ways: 1. Standard Input/Output (stdio): - Set MCP client server command to npx @apify/actors-mcp-server and environment variable APIFY_TOKEN to your Apify API token. 2. HTTPS Endpoint mcp.apify.com: - Connect your MCP client by including Authorization: Bearer <APIFY_TOKEN> header in your requests. For more details, see the MCP API documentation. ## ๐Ÿ’ฌ Support If you encounter any issues, have suggestions, or need assistance, please use the Issues tab. Our team actively monitors this section and will respond promptly. ## ๐Ÿ”— Related Scrapers

๐Ÿ“ง All Social Media Emails Extractor

Quickly generate targeted email leads from Instagram, TikTok, YouTube, LinkedIn, and Twitter. Effortlessly search by keywords and locations, obtaining structured contact details and direct links. Perfect for marketers, recruiters, and sales professionals.

๐Ÿ‘ค All Social Media Profile Details Extractor

Extract rich profile details from Instagram, TikTok, YouTube, LinkedIn, and Twitter using usernames, URLs, or keywords. Get name, bio, followers, location, verified status, contact info, and moreโ€”perfect for research, outreach, and social intelligence.

๐Ÿ“ฑ All Social Media Phone Numbers Extractor

Extract phone numbers from websites and social media profilesโ€”like TikTok and Twitter. Works with URLs, usernames, or keyword searches. Perfect for lead generation, data scraping, and enrichment workflows.

๐Ÿ“ฑ All Social Media Posts Extractor (by Hashtag and Username)

Effortlessly extract posts from Instagram, TikTok, YouTube, LinkedIn, and Twitter. Search by specific keywords and locations to quickly get structured results, including usernames, captions, engagement stats, and direct post links. Ideal for marketers, creators, and researchers.

๐Ÿ‘ค All Social Media Influencer Finder

Find influencers by follower count, country, and platform. Perfect for campaigns, outreach, and research across Instagram, TikTok, YouTube, and more. Fast, customizable, and scalable.

๐ŸŽต TikTok Leads Generator

Extract TikTok user profiles and content for lead generation and influencer discovery. Perfect for finding trending creators and viral content.

๐Ÿ’ผ LinkedIn Leads Generator

Extract LinkedIn profiles and company information for B2B lead generation. Ideal for sales prospecting, recruiting, and business development.

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try All Social Media Posts Extractor (by Hashtag and Username) now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
caprolok
Pricing
Paid
Total Runs
1,887
Active Users
170
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support