Feature Endpoint
Generate Product Copies
This endpoint enables you to generate compelling product descriptions or reviews. It can utilize SERP data to enhance the generated content based on the latest online content.
/custom/api/generate/product/copies
Headers
Input the Authorization Bearer Token to authorize your API request.
Body
A brief description or tagline of the product. Example: “LongShot is an automatic content creation platform.”
The name or title of the product. Example: “LongShot”
Defines the type of content you wish to generate. You can choose between:
- 1. product_review: A review of the product.
- 2. product_description: A detailed description of the product.
- 1. English-US: English (United States)
- 2. English-UK: English (United Kingdom)
- 3. Spanish: Spanish / Español
- 4. French: French / Français
- 5. Italian: Italian / Italiano
- 6. Dutch: Dutch / Nederlands
- 7. Portuguese: Portuguese / Português
- 8. German: German / Deutsch
- 9. Polish: Polish / Polski
If set to true, the API will search for product details from Google and generate descriptions using web data.
This field is used to decide the mode of the generation.
Response
Indicates whether the call was successful. It prompts success if working, otherwise not.
The generated product content.
This information is attached to the call and offers meaningful details when errors occur.
This field informs you about the credits consumed for this particular request. It varies on the generated content.
curl --location --request POST 'https://api-az.longshot.ai/custom/api/generate/product/copies'
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json'
--data-raw '{
"description": "LongShot is an automatic content creation platform",
"product": "Longshot",
"feature_type": "product_description",
"language": "en",
"serp": true,
"phrases_to_exclude": ["Introducing", "Step into"]
}'
{
"copies": [
{
"content": "<Generated Product Content>"
}
],
"status": "success",
"message": "Generated successfully",
"credits_used": "<Credits>"
}