AI SEO Metatag & URL Slug Generator API
API Endpoint Specifications
- Endpoint Path: /api/3/seo-metatag
- Type of Data: JSON & 2/minute
- Data Source: BUYFROMLO, Gemini, Llama, Palm, Claude, OpenAI
- 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 SEO Metatag & URL Slug Generator API Endpoint Basic Info
API Endpoint Path
required
AI SEO Metatag & Slug Generator API
api/3/seo-metatag
Call Method
Required
POST
Type of Data Return
JSON
Output structured JSON data on AI SEO metatag & slug
Available API Arguments & Parameters
token
required
BUYFROMLO API token. Free and paid subscription API are available: /api/3/seo-metatag, and accessible to on-site APP on /app/3/seo-metatag as well
referenceContent
required
Enter the raw content for AI writing. Max.English character is up to 8000
brandname
required
Enter the brand name or product name that needs to be used in the meta tag
type
required
Input type of metatag. Current available options: general search, eCommerce (Specifically for Google Shopping)
titlecharacter
required
Metatag title character
descharacter
required
Metatag description character
h1character
required
H1 character
role
required
Who writes these metatag. For example, Google SEO expert, Bing SEO expert etc.
language
Optional
Input the language iso-code, Currently API provides 4 language, which are en, ja, zh-cn, zh-tw. The default language is en
apiKey
Optional
Current avalable model for subscription users are OpenAI GPT, Palm, Gemini, Llama & Claude
llmversion
Optional
Free trial API is required to input a LLM api key. Current available model for free trial account is OpenAI.
context
Optional
Submit the context materials, which max.English characters is up to 8000
AI SEO Metatag & Slug Generator API
api/3/seo-metatag
Code Integration and Response
Python Code Sample
import requests
apiendpoint = "https://api.buyfromlo.com/api/3/seo-metatag"
## Required Arguments & Parameters ##
originalContent = "raw content materials or context for reference"
referenceContent = "reference content and context briefling"
brandname = "your brand name"
type = "Select a type of search engine metatag."
titlecharacter = "total character of title metatag"
descharacter = "total character of descriptino metatag"
h1character = "total character of H1 tag"
role = "who creates these metatags"
## Optional ##
llmversion = "Default is gemini. Options are openai, palm, claude, llama"
language = "Default is en"
context = "Raw materials or keywords to fine-tune the content generation"
apikey = "For free trials, please submit related LLM apikey"
headers={"Authorization": "Bearer " + token}
## Call the api ##
response = requests.post(
apiendpoint,
json={
"referenceContent":referenceContent,
"brandname": brandname,
"type": type,
"titlecharacter": titlecharacter,
"descharacter": descharacter,
"h1character": h1character,
"role": role
}, headers=headers)
print(response.status_code)
print(response.json())
JSON Response Sample
## General Search ##
{
"SEO meta title": " " (string),
"SEO meta description": " " (string),
"SEO Slug": " " (string)
}
## Google Shopping ##
{
"SEO meta title": " " (string),
"SEO meta description": " " (string),
"SEO H1": " " (string),
"SEO Slug": " " (string)
}