API:Financials
API Endpoint Path
required
B2C & D2C eCommerce Product Profit Margin Estimator
/api/1/ecommercePL
Call Method
Required
POST
Type of Data Return
JSON
Output structured JSON data on AI email content
token
required
BUYFROMLO API token. Free and paid subscription APIs are available: /api/3/email-content-generator, and accessible to on-site APP on /app/3/email-content-generator as well
purpose
required
Input a keyword in English
role
required
Role of whom is writhing this email
typ2
required
Type of Email marketing campaign. Current available options: influencer_recruitment, affiliate_recruitment, link_build, outbound_leads
receiver
required
Receiver email address
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 are OpenAI GPT, Palm, Gemini, Llama & Claude
modelVersion
Optional
Free trial API is required to input a LLM api key. Current available model is OpenAI GPT.
B2C & D2C eCommerce Product Profit Margin Estimator
/api/1/ecommercePL
Python Code Sample
import requests
apiendpoint = "https://api.buyfromlo.com/api/3/email-content-generator"
## Required Arguments & Parameters ##
token = "your buyfromlo token"
purpose = "the object of the email, such as influencer recruitment, generate outbound leads, etc"
role = "a specific type of email sender, such as email marketing specialist, HR, influencer marketing expert, etc"
typ2 = "type of email purpose, such as influencer recruitment, affiliate recruitment, outbound leads, etc"
language = "the email content language"
receiver = "email receiver name"
sender = "email sender name"
brandname = "the entity name, such as brand, company"
characters = "length of the email"
contact = "the contact of sender"
website = "website address from the sender"
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 key"
headers={"Authorization": "Bearer " + token}
## Call the api ##
response = requests.post(
apiendpoint,
json={
"purpose":purpose,
"role": role, "typ2": typ2,
"language": language,
"receiver":receiver,
"sender": sender,
"brandname": brandname,
"characters": characters,
"contact": contact,
"website": website,
"llmversion": llmversion,
"contact": contact,
"website": website,
"llmversion": llmversion,
"context_materials":context_materials,
"apiKey":apiKey
}, headers= headers
)
print(response.status_code)
print(response.json())
JSON Response Sample
{
"AI prompt"
}
The BUYFROMLO Shopify Product scraper API allows you to scrape product information from any webshop built using the Shopify platform.
You can scrape up to 500 SKUs per request.
The scraped results include 15+ product data metrics, such as pricing, date_created, product name, and more.
Yes, the API supports scraping both top domain and subdomain Shopify webshop domains.
Yes, the API is intended for personal use only.
You can find more information regarding API usage obligation and liability in the Legal Terms of Service and Condition.
The endpoint path for the API is \/api\/1\/shopifyTracker.
The API supports JSON and 20\/minute data formats.
The data source for the API is Shopify.
Yes, there is a limit of 500 requests per month.