Feature Endpoint
AutoBlog (larger, more complex / specialized content)
This endpoint enables you to craft a specialized compelling, factually accurate blog in markdown format with just one click.
/custom/api/generate/one/click/specialized/blog
If no response is received here due to the extended generation time required by this API, we suggest utilizing a local API platform such as Postman or directly accessing the API through your project.
Headers
Input the Authorization Bearer Token to authorize your API request.
Body
This input field requires the user to mention the topic they wish to write on. Example: “Lithium Ion discovery in India” OR “Bard: Google answer to ChatGPT”
This input field requires the user to elaborate on the topic they wish to write on. Example: “Showcase the future of manufacturing in India, following Lithium Ion discovery.”
This input field defines the type of blog you wish to generate.
Available blog_type are:
- 1. how_to: Create step-by-step instructions.
- 2. listicle: Share information in list format.
- 3. educational: Educate reader on a topic.
- 4. youtube_video: Create video script.
- 5. insurance_blog: Generate insurance-related blog.
- 6. investment_blog: Create investment-focused blog.
- 7. product_use_case: Elaborate on product use cases.
- 8. ebook: Craft compelling ebook content.
- 9. pillar: Generate comprehensive content.
- 10. comparison: Compare products or services.
- 11. product_review: Generate in-depth product reviews.
- 12. critical_essay: Craft critical analysis essay.
- 13. alternatives_to_product: List product alternatives.
- 14. marketing_case_study: Analyze marketing strategies.
- 15. brand_profile: Develop detailed brand profile.
- 16. brand_audit: Evaluate brand's current position.
- 17. thought_leadership_article: Craft insightful industry articles.
- 18. competitive_landscape_analysis: Analyze competitive environment.
- 19. market_research: Conduct in-depth market research.
- 20. checklist: Create organizational checklist.
- 21. report: Craft informative reports.
- 22. opinion_article: Write compelling opinion pieces.
- 23. business_plan: Develop comprehensive business plan.
- 24. best_products_in_category: List best products/services.
- 25. narrative_essay: Craft story-telling essay.
- 26. fantasy_story: Create fantasy adventure story.
- 27. descriptive_essay: Write vivid descriptive essay.
This field is used to decide the mode of the generation.
Modes are as follows:
- 1. serp
- 2. instruct
- 3. domain
This field is used to input the array of the domains you want to provide as a reference, while generating the content. This field needs to be passed if mode is “domain”.
Example: ["wikipedia.org", "medium.com"]
This field is used to input formality to your generated content.
Available formality are:
- 1. casual: A relaxed and informal tone.
- 2. neutral: Balanced without expressing any strong feelings or bias.
- 3. formal: Professional and follows strict conventions of grammar.
This field is used to input tone to your generated content.
Available tone are:
- 1. personable: Helps you relate to your users on a personal level.
- 2. confident: Assures users with a tone of certainty.
- 3. empathetic: Understand and express the feelings of users.
- 4. engaging: Keeps users interested and invested.
- 5. witty: Adds humor to make users smile.
- 6. direct: Gets straight to the point for users who prefer clarity.
Response
Indicates whether the call was successful. It prompts success if working, otherwise not.
The generated content in Markdown format.
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/one/click/specialized/blog'
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json'
--data-raw '{
"topic": "<Your Topic>",
"description": "<Your Description>",
"blog_type": "listicle",
"mode": "serp",
"domain_list": [],
"formality": "casual",
"tone": "witty"
}'
{
"copies": [
{
"content": "<Generated Blog>"
}
],
"status": "success",
"message": "Generated successfully",
"credits_used": "<Credits>"
}