Twitter Get Friendships Show
by twitterapi
Instantly check the follow relationship between any two Twitter accounts using the official API. Get clean, structured JSON data for automation, research, or social media audits.
Opens on Apify.com
About Twitter Get Friendships Show
Need to check if two Twitter accounts follow each other? This actor taps directly into Twitter's own Friendships Show API to give you a clean, programmatic answer. It's the same reliable data you'd get from the platform, but delivered in a structured JSON format you can plug right into your scripts or dashboards. I use it to verify connections between profiles, audit follower relationships for research, or automate checks within larger social media monitoring workflows. You just feed it two usernames, and it returns the detailed follow status—whether user A follows user B, if user B follows user A, and if there are any blocking or muting flags in place. It saves you the hassle of manual checking or building your own API integration from scratch. Perfect for developers, researchers, or marketers who need to validate Twitter connections at scale without getting rate-limited or bogged down in data parsing.
What does this actor do?
Twitter Get Friendships Show 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
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
Twitter Get Friendships Show
This Apify actor retrieves and returns detailed friendship information between two specified Twitter/X users. It determines the relationship status—whether users follow each other, have pending follow requests, or have blocked one another.
Key Features
- Direct API Integration: Uses Twitter's internal API endpoints for reliable data fetching
- Structured Output: Returns consistent, well-formatted JSON data
- Apify SDK: Built on Apify's toolkit for Actors
- Dataset Storage: Automatically stores results in Apify datasets for easy access and export
- Input Validation: Uses Apify's input schema to validate parameters before execution
How to Use
Input Parameters
Provide the following in JSON format:
{
"userId1": "123456789",
"userId2": "987654321",
"screenName1": "username1",
"screenName2": "username2"
}
Note: You can use either user IDs (userId1/userId2) or screen names (screenName1/screenName2). Using both for a user provides redundancy.
Output Format
The actor returns an object containing:
{
"user1": {
"id": "123456789",
"screen_name": "username1",
"following": true,
"followed_by": false,
"blocking": false,
"blocked_by": false,
"muting": false,
"marked_spam": false
},
"user2": {
"id": "987654321",
"screen_name": "username2",
"following": false,
"followed_by": true,
"blocking": false,
"blocked_by": false,
"muting": false,
"marked_spam": false
},
"relationship": {
"source_follows_target": true,
"target_follows_source": false,
"source_blocked_target": false,
"target_blocked_source": false
}
}
Execution Methods
Via Apify Console:
1. Navigate to the actor page
2. Configure input parameters
3. Click "Run"
Via API:
curl "https://api.apify.com/v2/acts/ACTOR_ID/runs?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"userId1": "123456789", "userId2": "987654321"}'
Via Apify CLI:
apify call ACTOR_ID -p input.json
Local Development
To modify or extend this actor locally:
- Install Apify CLI:
npm -g install apify-cli
- Pull the actor:
apify pull <ActorId>
- Install dependencies and run locally:
cd actor-directory
npm install
apify run
Resources
- Apify SDK for JavaScript documentation
- Apify Platform documentation
- Twitter API documentation
- Join our developer community on Discord
Notes
- This actor requires valid Twitter authentication credentials configured in Apify
- Rate limits and Twitter API restrictions apply
- Results are stored in Apify datasets and can be exported as JSON, CSV, or other formats
Categories
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 Twitter Get Friendships Show now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- twitterapi
- Pricing
- Paid
- Total Runs
- 1,634
- Active Users
- 18
Related Actors
Video Transcript Scraper: Youtube, X, Facebook, Tiktok, etc.
by invideoiq
Linkedin Profile Details Scraper + EMAIL (No Cookies Required)
by apimaestro
Twitter (X.com) Scraper Unlimited: No Limits
by apidojo
Content Checker
by jakubbalada
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support