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

Pricing

Pay per event

Go to Store
All Social Media Posts Extractor (by Hashtag and Username)

All Social Media Posts Extractor (by Hashtag and Username)

Developed by

Caprolok

Caprolok

Maintained by Community

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.

0.0 (0)

Pricing

Pay per event

0

Total users

8

Monthly users

8

Runs succeeded

>99%

Last modified

3 days ago

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

FieldTypeDescriptionRequired
Search inputsarray <string>List of profile URLs, usernames, or hashtags to scrape
PlatformstringOne of INSTAGRAM, TIKTOK, LINKEDIN, TWITTER
Max postsintegerMaximum number of posts to fetch per input✖ (default = 50)
LocationstringGeographic filter to target posts from specific regions✖ (optional)

Sample Input

{
"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)

[
{
"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.

  • 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

LanguagePackageInstall
Node.jsapify-clientnpm install apify-client
Pythonapify-clientpip install apify-client

For complete API examples and detailed usage, visit the API documentation.

// Example: Trigger a run with Node.js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const input = {/* ... */};
const run = await client.actor("caprolok/caprolok/all-social-media-posts-extractor-by-hashtag-and-username").call(input);
console.log('Results:', await client.dataset(run.defaultDatasetId).listItems());

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.

🎵 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.