Introduction
In today's digital landscape, social media plays a crucial role in connecting brands with their audiences. However, managing social media presence effectively can be challenging without the right tools. This is where the Social Media Analytics APIs from Zyla API Hub come into play. These APIs provide developers with powerful capabilities to enhance social media strategies, streamline content creation, and analyze audience engagement. In this blog post, we will guide you through the process of testing the Social Media Analytics API using Postman, a popular tool for API testing.
Step-by-Step Guide to Testing the Social Media Analytics API
1. Go to the Social Media Analytics API Page on Zyla API Hub
Start by navigating to the Zyla API Hub website and locating the Social Media Analytics API page. Here, you will find detailed information about the various APIs available, including:
- Social Media Posts Composer API: Craft engaging social media posts effortlessly.
- Social Contact Search API: Streamline contact information and showcase social profiles.
- Social Media Tag Engine API: Generate trending hashtags to enhance content visibility.
- Social Media Profile Searcher API: Extract key data from any website.
- Contact and Social Media Scraper API: Extract contact details and social media profiles.
- Social Media Links Scrapper API: Automatically extract links from social media platforms.
- Twitter Profile API: Manage user profiles with ease.
- Social Media Followers Count API: Get real-time follower counts for artists.
2. Click Start Free Trial or Subscribe
Once you have selected the API you wish to test, click on the "Start Free Trial" or "Subscribe" button to gain access to the API features.
3. Click Run in Postman and Download the Postman Collection
After subscribing, you will see an option to "Run in Postman." Click this button to download the Postman collection, which contains pre-configured requests for the API endpoints.
4. Open Your Postman Workspace
Launch Postman on your computer. If you do not have Postman installed, you can download it from the official website.
5. Import the Downloaded Postman Collection
In Postman, click on the "Import" button located in the top left corner. Select the downloaded Postman collection file and import it into your workspace.
6. Confirm that the Zyla API Hub Collection has been Imported
Once the collection is imported, you should see the Zyla API Hub collection in your workspace. Ensure that your access key is included in the collection settings, allowing you to authenticate your requests.
Sending Requests and Testing the API
With the collection set up, you can now send requests to the Social Media Analytics API and test its functionalities immediately. Below, we will explore some of the key APIs and their features.
Social Media Posts Composer API
The Social Media Posts Composer API allows developers to create engaging social media posts effortlessly. This API is essential for businesses looking to enhance their content marketing strategies.
Key Features and Capabilities
Feature: Get Posts
This feature generates a post based on a specified topic and social media platform. It is valuable for automating content creation, saving time, and ensuring consistency across posts.
Use Case: A marketing team can use this feature to generate posts for various campaigns, ensuring that the content aligns with current trends and audience preferences.
Example Request:
{
"topic": "Football",
"platform": "Twitter"
}
Example Response:
["\ud83d\udce2 Calling all Boca Juniors fans! \ud83d\ude4c\u26bd\ufe0f Don't miss a beat with the latest updates, news, and highlights from your favorite football club. \ud83c\udf1f\ud83d\udd25 Follow us on Twitter and be part of the electric Boca Juniors community. \ud83d\udcf2\ud83d\udc99\ud83d\udc9b\ud83d\udda4 #BocaJuniors #FootballNation #PassionUnleashed #VamosBoca"]
Social Contact Search API
The Social Contact Search API streamlines the process of displaying and updating contact information, making it easier for businesses to connect with their audiences.
Key Features and Capabilities
Feature: Contacts Associated to a Domain
This feature allows users to pass a URL and retrieve all social links associated with that domain. It is valuable for enhancing user engagement by providing easy access to social profiles.
Use Case: A company can use this feature to display its social media links on its contact page, making it easier for visitors to connect.
Example Request:
{
"domain_url": "https://www.cbsnews.com"
}
Example Response:
{
"domain": {
"domain_url": "https://www.cbsnews.com",
"social_media": {
"facebook_url": "https://www.facebook.com/CBSNews",
"twitter_url": "https://twitter.com/CBSNews",
"instagram_url": "https://instagram.com/cbsnews",
"youtube_url": "http://www.youtube.com/user/CBSNewsOnline"
},
"updated_at": "2023-01-20T14:53:44.000000Z"
},
"success": true,
"ZylaLabs": {
"log": 2607,
"log2": 997393
}
}
Social Media Tag Engine API
The Social Media Tag Engine API enhances content visibility by dynamically generating trending hashtags, optimizing engagement for creators, influencers, and marketers.
Key Features and Capabilities
Feature: Tag or Hashtag Generator
This feature generates relevant hashtags based on a specified keyword. It is valuable for increasing the discoverability of content on social media platforms.
Use Case: A social media manager can use this feature to generate hashtags for a new product launch, ensuring maximum reach and engagement.
Example Request:
{
"keyword": "car"
}
Example Response:
[
{"keyword": "#car"},
{"keyword": "#cardio"},
{"keyword": "#cars"},
{"keyword": "#carporn"},
{"keyword": "#cartoon"},
{"keyword": "#carsofinstagram"}
]
Social Media Profile Searcher API
The Social Media Profile Searcher API extracts key data from any website, including social media profiles, phone numbers, and emails, simply by entering its URL as a parameter.
Key Features and Capabilities
Feature: Get Social Links
This feature retrieves social profile links based on a search query or keywords. It is particularly useful for businesses looking to enhance their online presence.
Use Case: A recruiter can use this feature to find potential candidates' social media profiles based on their LinkedIn information.
Example Request:
{
"search_query": "Tesla",
"platform": "linkedin"
}
Example Response:
{
"status": "OK",
"request_id": "8dc14072-a4fa-4c1a-a07f-5db7147935a3",
"data": {
"linkedin": [
"https://www.linkedin.com/company/tesla-motors",
"https://www.linkedin.com/company/teslagov"
]
}
}
Contact and Social Media Scraper API
The Contact and Social Media Scraper API is a powerful tool that extracts contact details and social media profiles with precision, enhancing user engagement and network expansion.
Key Features and Capabilities
Feature: Get Contacts
This feature allows users to pass a URL and receive contact emails, phone numbers, and social media links. It is essential for businesses looking to gather leads and enhance customer relationships.
Use Case: A marketing team can use this feature to collect contact information from competitor websites for outreach campaigns.
Example Request:
{
"url": "https://zylalabs.com"
}
Example Response:
{
"status": true,
"code": 200,
"data": {
"domain": "https://zylalabs.com",
"query": "https://zylalabs.com",
"emails": [
{"value": "hello[@]zylalabs.com", "sources": ["https://zylalabs.com/login?path="]}
],
"phone_numbers": []
}
}
Social Media Links Scrapper API
The Social Media Links Scrapper API automatically extracts links from social media platforms, enabling users to gather data for sentiment analysis, marketing campaigns, and more.
Key Features and Capabilities
Feature: Get Social Media
This feature retrieves all social links located on a specified page. It is valuable for businesses looking to analyze their social media presence.
Use Case: A brand can use this feature to gather all social media links from its website for better visibility and engagement tracking.
Example Request:
{
"url": "https://www.instagram.com/wacontent/"
}
Example Response:
{
"domain": {
"domain_url": "https://www.instagram.com/wacontent/",
"social_media": {
"facebook_url": "https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.mozilla.org%2Ffirefox%2Fnew%2F",
"twitter_url": null,
"instagram_url": null
},
"updated_at": "2024-10-10T20:41:31.000000Z"
},
"success": true
}
Twitter Profile API
The Twitter Profile API optimizes user profiles by providing essential data such as unique identifiers, customizable avatars, and privacy controls.
Key Features and Capabilities
Feature: User Data
This feature retrieves user profile data based on a specified username. It is crucial for applications that require user profile management.
Use Case: A social media management tool can use this feature to display user profiles and their engagement metrics.
Example Request:
{
"username": "johnjohn"
}
Example Response:
{
"value": 63,
"red_flags": ["No media", "No banner"],
"user": {
"profile": "johnjohn",
"rest_id": "878521",
"avatar": "https://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png",
"desc": "",
"name": "john clark",
"protected": null,
"friends": 0,
"sub_count": 90
}
}
Social Media Followers Count API
The Social Media Followers Count API provides real-time follower counts for multiple artists across various social media platforms, making it ideal for tracking online popularity.
Key Features and Capabilities
Feature: Get Data
This feature allows users to pass an artist's name and receive their follower counts across different platforms. It is valuable for marketers and fans tracking artist popularity.
Use Case: A music analytics platform can use this feature to display real-time follower counts for trending artists.
Example Request:
{
"artist": "duki"
}
Example Response:
{
"status": 200,
"success": true,
"artist": "duki",
"monthly_listeners_change": "21,833,117",
"social_media": {
"facebook": "2.6M followers",
"twitter": "37.2K followers",
"instagram": "13.4M followers",
"youtube": "7.3M subscribers",
"spotify": "10.2M followers",
"tiktok": "3.2M followers"
}
}
Conclusion
Testing the Social Media Analytics API from Zyla API Hub using Postman is a straightforward process that allows developers to harness the power of social media data. By following the steps outlined in this guide, you can quickly set up your environment and start testing various API features. Each API offers unique capabilities that can significantly enhance your social media strategies, streamline content creation, and improve audience engagement. For more information, visit the Zyla API Hub and explore the full range of APIs available.