AI Social Media Post Content Generator API
API Endpoint Specifications
- Endpoint Path: /api/3/social-media-post-generator
- Type of Data: JSON & 2/minute
- Data Source: BUYFROMLO
- Request Limit: 100,000 tokens/month (Approximate 73,000 English words)
- Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
AI Social Media Post Content Generator API Endpoint Basic Info
API Endpoint Path
required
AI Social Post Content Generator
api/3/social-media-post-generator
Call Method
Required
POST
Type of Data Return
JSON
Output structured JSON data on AI social media post content
Available API Arguments & Parameters
token
required
BUYFROMLO API token. Free and paid subscription API are available: /api/3/social-media-post-generator, and accessible to on-site APP on /app/3/social-media-post-generator as well
content_materials
required
Submit the original content that is used to generate the social media
role
required
Who writes this social post, such as social marketing manger, Instagram influencer, etc
channel
required
A specific social channel. Current available channels: Facebook, TikTok, Youtube, Instagram, Twitter, Pinterest, Discord
language
required
FALSE
context_materials
Optional
Input the language iso-code, Currently API provides 4 language, which are en, ja, zh-cn, zh-tw. The default language is en
llmversion
Optional
Current avalable model are OpenAI GPT, Palm, Gemini, Llama & Claude
apiKey
Optional
Free trial API is required to input a LLM api key. Current available model is OpenAI GPT.
AI Social Post Content Generator
api/3/social-media-post-generator
Code Integration and Response
Python Code Sample
import requests
apiendpoint = "https://api.buyfromlo.com/api/3/social-media-post-generator"
## Required Arguments & Parameters ##
token = "your buyfromlo token"
content_briefing = "briefing of the social content script"
role = "a specific type of email sender, such as email marketing specialist, HR, influencer marketing expert, etc"
channel = "a specific channel, such as Youtube, Tiktok, Instagram, Facebook"
language = "post language"
llmversion = "For paid users, select a LLM version. Current available options: openai, palm, Gemini, Llama, claude"
## optional arguments and parameters ##
context_materials="the context regarding the email campaign"
apiKey = "For free trial users, plug in the OpenAI api keys"
headers={"Authorization": "Bearer " + token}
## Call the api ##
response = requests.post(
apiendpoint,
json={
"content_briefing":content_briefing,
"role": role,
"channel": channel,
"language":language,
"llmversion": llmversion,
"context_materials":context_materials,
"apiKey":apiKey
}, headers=headers
)
print(response.status_code)
print(response.json())
JSON Response Sample
{
"social post content response",
"token spent"
}