Skip to main content

4 posts tagged with "API"

View All Tags

Automating Instagram Reels for Exponential Growth

· 2 min read
XenonFlare Team
Content Creators

Instagram Reels have become a primary discovery mechanism for new audiences. For creators and businesses, the pressure to produce and post "daily Reels" can lead to burnout.

Fortunately, the Instagram Content Publishing API allows you to automate the posting of Reels, giving you back hours of your week.

How the Instagram Reels API Works

The API allows professional accounts (Business or Creator) to:

  • Upload Video Container: Provide a URL to a video file.
  • Check Status: Wait for Instagram to process the video.
  • Publish: Finalize the post with a caption and hashtags.

The XenonFlare Advantage

Instagram requires the video to be hosted on a public URL for them to "fetch" it. XenonFlare is the perfect partner for this, providing stable, high-performance URLs that Instagram can reliably access.

Step 1: Upload to XenonFlare

curl -X POST https://api.xenonflare.com/upload \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@/path/to/reels-video.mp4"

Step 2: Create a Media Container on Instagram

Submit the XenonFlare URL to the Instagram API:

import requests

ig_user_id = "YOUR_IG_USER_ID"
access_token = "YOUR_ACCESS_TOKEN"
video_url = "https://cdn.xenonflare.com/v/your-video.mp4"

url = f"https://graph.facebook.com/v18.0/{ig_user_id}/media"
payload = {
'media_type': 'REELS',
'video_url': video_url,
'caption': 'Check out our latest Reel! #automation #growth',
'access_token': access_token
}

response = requests.post(url, data=payload)
container_id = response.json().get('id')

Step 3: Publish the Reel

After a few seconds of processing, publish it:

publish_url = f"https://graph.facebook.com/v18.0/{ig_user_id}/media_publish"
publish_payload = {
'creation_id': container_id,
'access_token': access_token
}
requests.post(publish_url, data=publish_payload)

Scaling Your Strategy

With this setup, you can:

  • Batch Content: Schedule a month's worth of Reels in minutes.
  • Cross-Post: Automatically mirror your TikTok videos to Instagram Reels.
  • Data-Driven: Use automation to test different hashtags and posting times.

Conclusion

Automating Instagram Reels is no longer a luxury—it’s a necessity for staying competitive. By leveraging XenonFlare for hosting and the Instagram API for publishing, you can scale your reach while focusing on what matters: the content itself.

Ready to grow your Instagram? Check out our Pricing to find the perfect automation plan, or Register for free today!

Automating LinkedIn Video Content for Thought Leadership

· 2 min read
XenonFlare Team
Content Creators

LinkedIn is the premier platform for professional networking and B2B marketing. While text posts are common, video content on LinkedIn generates significantly higher engagement and "stickiness."

In this guide, we'll show you how to automate your LinkedIn video strategy using the LinkedIn Marketing Developer Platform and XenonFlare.

Why LinkedIn Video?

B2B buyers are 5x more likely to engage with video than any other type of content on LinkedIn. Automation allows you to:

  • Maintain a consistent presence without daily manual effort.
  • Share tutorials, product updates, and thought leadership at scale.
  • Integrate with your existing CRM or content management system.

The Automation Workflow

1. Centralize Assets in XenonFlare

Start by uploading your professional videos to XenonFlare. Our API makes it easy to manage your library and retrieve direct URLs for sharing.

# Get your video URL from XenonFlare
curl -H "Authorization: Bearer YOUR_API_KEY" https://api.xenonflare.com/videos/your-id

2. Register Media on LinkedIn

LinkedIn requires a multi-step process for video:

  1. Register Upload: Inform LinkedIn you're about to upload a video.
  2. Upload Part: Send the video file (from XenonFlare) to the provided upload URL.
  3. Create Post: Once processed, create the actual share/post referencing the mediaAsset.

3. Orchestrating with n8n

Using n8n, you can create a workflow that:

  • Triggers when a new video is ready (e.g., in a Google Drive folder or XenonFlare).
  • Handles the LinkedIn API handshake.
  • Posts the video with a tailored professional caption.

Best Practices for LinkedIn Automation

  • Quality over Quantity: Ensure your automated videos provide real value.
  • Engagement: Automation handles the posting, but make sure to manually reply to comments to build relationships.
  • Analytics: Use the LinkedIn API to pull engagement metrics back into your dashboard.

Conclusion

Automated LinkedIn video posting is a powerful way to build brand authority without the overhead of manual management. XenonFlare ensures your videos are served reliably every time.

Want to level up your B2B marketing? View our Pricing to find the right plan for your team, or Register now to start building!

Scaling TikTok Content Posting via API

· 2 min read
XenonFlare Team
Content Creators

TikTok has revolutionized the way we consume short-form video. For brands and creators, staying relevant means posting consistently. However, manual posting across multiple accounts is a bottleneck.

In this post, we’ll explore how to use the TikTok Content Posting API alongside XenonFlare to automate your TikTok presence.

The TikTok API Landscape

TikTok's Content Posting API allows authorized applications to share video content directly to TikTok profiles. This is a game-changer for automated workflows.

Key Features:

  • Direct Video Upload: Post MP4 videos programmatically.
  • Privacy Controls: Set videos as public, private, or friends-only.
  • Commercial Disclosure: Automatically flag branded content for compliance.

How to Automate TikTok with XenonFlare

1. Host with XenonFlare

Before you can post to TikTok, your video needs to be accessible online. XenonFlare provides high-speed, reliable hosting optimized for social media APIs.

# Upload your video to XenonFlare
curl -X POST https://api.xenonflare.com/upload \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@/path/to/tiktok-video.mp4"

2. Authenticate with TikTok

You'll need a TikTok Developer account and an app with the video.upload scope enabled. Once authenticated, you'll receive an access_token.

3. The Posting Flow

Using an automation tool like n8n or a Python script, you can send the XenonFlare video URL to TikTok:

import requests

# TikTok API endpoint
url = "https://open-api.tiktok.com/share/video/upload/"

query_params = {
"open_id": "USER_OPEN_ID",
"access_token": "USER_ACCESS_TOKEN"
}

# The video URL from XenonFlare
video_url = "https://cdn.xenonflare.com/v/your-video-id.mp4"

files = {'video': requests.get(video_url).content}

response = requests.post(url, params=query_params, files=files)
print(response.json())

Optimizing for the Algorithm

Automation isn't just about speed; it's about strategy. Use your scripts to:

  • Dynamic Captions: Include trending hashtags programmatically.
  • Optimal Timing: Schedule posts when your audience is most active.
  • Compliance: Always use the commercial_content_disclosure flag if required.

Conclusion

TikTok automation allows you to maintain a high-frequency posting schedule without the manual grind. By combining the power of the TikTok API with XenonFlare’s hosting, you can build a scalable content engine.

Ready to dominate TikTok? Check out our Pricing to find a plan that fits your volume, or Register for free to get started!

Mastering Pinterest Data API for Marketing

· 2 min read
XenonFlare Team
Content Creators

Pinterest is a visual discovery engine, not just a social network. For marketers, this means unique opportunities for driving traffic and sales. However, manually pinning content, tracking performance, and responding to trends can be inefficient.

This guide explores how to leverage the Pinterest API and XenonFlare to automate your Pinterest marketing strategy.

Key Concepts

Pinterest's API allows developers to programmatically:

  • Create Pins: Upload images or videos directly to boards.
  • Manage Boards: Organize content dynamically.
  • Retrieve Analytics: Get detailed metrics on impressions, clicks, and saves.

Automating Pin Creation

Using Python and the Pinterest API, you can automate Pin creation from your existing content catalog.

import requests

access_token = 'YOUR_PINTEREST_ACCESS_TOKEN'
board_id = 'YOUR_BOARD_ID'
image_url = 'https://example.com/image.jpg'
link = 'https://example.com/product'
title = 'Amazing Product'
description = 'Check out this amazing product!'

url = 'https://api.pinterest.com/v5/pins'
headers = {
'Authorization': f'Bearer {access_token}',
'Content-Type': 'application/json'
}
data = {
'board_id': board_id,
'media_source': {
'source_type': 'image_url',
'url': image_url
},
'link': link,
'title': title,
'description': description
}

response = requests.post(url, headers=headers, json=data)
print(response.json())

Scheduling with XenonFlare

While the API handles the mechanics, XenonFlare provides the reliability.

  1. Host your assets: Upload your high-res images and videos to XenonFlare.
  2. Trigger Automation: Use a scheduled job (cron) to fetch new assets from XenonFlare.
  3. Publish: Push the content to Pinterest via the API script above.

Conclusion

Automating your Pinterest strategy ensures your brand maintains a consistent presence without constant manual intervention. By integrating the Pinterest API with XenonFlare's robust hosting, you can focus on creating inspiring content while the bots handle the distribution.

Ready to scale your Pinterest marketing? View our Pricing to get started, or Register for free to explore our platform.