AI Content, Meta Tags & 7W1H Generation API

Quickstart

cURL
curl --location 'https://keywordresearch.api.kwrds.ai/ai/content' \
--header 'X-API-KEY: YOUR_API_KEY_GOES_HERE' \
--header 'Content-Type: application/json' \
--data '{
"search_question": "digital marketing",
"search_country": "en-US",
"prompt": "Get_Meta_Titles_Descriptions"
}'

To increase your API limits, please choose your plan right from our pricing page.

Introduction

The AI Content Generation API helps you create SEO-optimized meta tags, content structures, and meta descriptions. Whether you need to generate meta tags for SEO, create content outlines, or develop comprehensive content questions, our API provides three powerful options:

  1. Get_Meta_Titles_Descriptions: Generate SEO meta tags and descriptions
  2. Get_SEO_Outline: Create content outlines with metadata
  3. Get_7W_1H_Keywords: Generate content questions and metadata

Endpoint

POST /ai/content

Headers

  • X-API-KEY: (Required) Your API key for authentication.
  • Content-Type: (Required) The content type of the request, which should be application/json.

Content Generation Options

1. Meta Titles & Descriptions Generation

Generate SEO-optimized meta titles and descriptions for your content.

Request Example

cURL
curl --location 'https://keywordresearch.api.kwrds.ai/ai/content' \
--header 'X-API-KEY: YOUR_API_KEY_GOES_HERE' \
--header 'Content-Type: application/json' \
--data '{
"search_question": "digital marketing",
"search_country": "en-US",
"prompt": "Get_Meta_Titles_Descriptions"
}'

Response Example

JSON
{
"meta_pairs": [
{
"title": "Digital Marketing Guide: Expert Strategies for Success",
"description": "Learn proven digital marketing strategies to grow your business. Discover SEO, social media, content marketing, and PPC techniques that drive results."
},
{
"title": "Digital Marketing in 2024: Complete Beginner's Guide",
"description": "Master digital marketing from scratch with our comprehensive guide. Explore key concepts, tools, and tactics used by successful marketers."
}
]
}

2. SEO Content Outline Generation

Generate comprehensive SEO-optimized content outlines with headings, subheadings, and key points.

Request Example

cURL
curl --location 'https://keywordresearch.api.kwrds.ai/ai/content' \
--header 'X-API-KEY: YOUR_API_KEY_GOES_HERE' \
--header 'Content-Type: application/json' \
--data '{
"search_question": "digital marketing",
"search_country": "en-US",
"prompt": "Get_SEO_Outline",
"title": "Digital Marketing Explained",
"description": "Learn about the different types and benefits of digital marketing to grow your business."
}'

Response Example

JSON
{
"meta_description": "Learn about the different types and benefits of digital marketing to grow your business.",
"outline": [
{
"heading": "Introduction to Digital Marketing",
"subheadings": [
{
"key_points": [
"Definition and importance of digital marketing"
],
"subheading": "What is Digital Marketing?"
},
{
"key_points": [
"Importance of data analytics in digital marketing",
"Popular tools for analyzing digital marketing metrics"
],
"subheading": "Digital Marketing Analytics"
}
]
},
{
"heading": "Key Strategies in Digital Marketing",
"subheadings": [
{
"key_points": [
"Overview of effective digital marketing strategies",
"Tactics for successful online campaigns"
],
"subheading": "Digital Marketing Strategies"
},
{
"key_points": [
"Creative content ideas for engaging the target audience"
],
"subheading": "Content Marketing Ideas"
},
{
"key_points": [
"Benefits of influencer partnerships",
"Tips for successful influencer collaborations"
],
"subheading": "Influencer Marketing Tips"
}
]
},
{
"heading": "Optimizing for Search Engines",
"subheadings": [
{
"key_points": [
"Understanding SEO basics",
"Effective SEO practices for digital marketers"
],
"subheading": "SEO for Digital Marketers"
},
{
"key_points": [
"Adapting to the rise of voice search technology"
],
"subheading": "Voice Search Optimization"
},
{
"key_points": [
"Strategies for improving local search visibility"
],
"subheading": "Local SEO Techniques"
}
]
},
{
"heading": "Driving Website Traffic",
"subheadings": [
{
"key_points": [
"Ways to increase website traffic",
"Effective traffic generation tactics"
],
"subheading": "Website Traffic Generation"
},
{
"key_points": [
"Pay-per-click advertising strategies for driving traffic"
],
"subheading": "PPC Advertising Methods"
},
{
"key_points": [
"Effective online advertising methods"
],
"subheading": "Online Advertising Tactics"
}
]
},
{
"heading": "Conclusion",
"subheadings": [
{
"key_points": [
"Recap of key digital marketing concepts",
"Impact on business growth"
],
"subheading": "Summary"
},
{
"key_points": [
"Encouraging readers to apply digital marketing strategies for their business"
],
"subheading": "Call to Action"
}
]
}
],
"title": "Digital Marketing Explained"
}

3. Content Questions Generation (7W1H)

Generate comprehensive questions using the Who, What, When, Where, Which, Why, Will, and How framework.

Request Example

cURL
curl --location 'https://keywordresearch.api.kwrds.ai/ai/content' \
--header 'X-API-KEY: YOUR_API_KEY_GOES_HERE' \
--header 'Content-Type: application/json' \
--data '{
"search_question": "digital marketing",
"search_country": "en-US",
"prompt": "Get_7W_1H_Keywords"
}'

Response Example

JSON
{
"How": [
"How does SEO improve website ranking?",
"How to create an effective content marketing strategy?",
"How to measure the success of digital advertising campaigns?",
"How to optimize for mobile marketing platforms?",
"How to conduct web analytics for actionable insights?",
"How to enhance online branding for better visibility?"
],
"What": [
"What is digital marketing and its importance?",
"What are the benefits of email marketing?",
"What is search engine optimization (SEO)?",
"What are the components of online marketing?",
"What is conversion rate optimization (CRO)?",
"What is digital advertising and its impact?"
],
"When": [
"When should businesses invest in content marketing?",
"When is the best time to start a mobile marketing campaign?",
"When should companies focus on PPC advertising?",
"When does website optimization become crucial?",
"When to review web analytics data?",
"When to revise the digital strategy?"
],
"Where": [
"Where can businesses find reliable SEO services?",
"Where to implement successful digital advertising campaigns?",
"Where to conduct keyword research for SEO?",
"Where to optimize for online branding?",
"Where does content marketing perform well?",
"Where to focus on SEM tactics for better results?"
],
"Which": [
"Which digital marketing strategies work best for small businesses?",
"Which social media platforms are ideal for marketing?",
"Which web analytics tools are recommended?",
"Which online branding strategies to implement?",
"Which email marketing techniques drive engagement?",
"Which mobile marketing tactics yield higher conversions?"
],
"Who": [
"Who are the key players in the digital marketing industry?",
"Who can benefit from social media marketing?",
"Who provides SEO services?",
"Who is a reliable SEO consultant?",
"Who implements content marketing strategies?",
"Who uses inbound marketing techniques?"
],
"Why": [
"Why is keyword research important for SEO?",
"Why choose digital marketing over traditional marketing?",
"Why invest in content marketing for brand growth?",
"Why prioritize SEO for online visibility?",
"Why is web analytics crucial for performance measurement?",
"Why focus on conversion rate optimization for better ROI?"
],
"Will": [
"Will digital marketing continue to evolve in the future?",
"Will social media marketing remain relevant?",
"Will email marketing be effective for lead generation?",
"Will SEO services become more advanced?",
"Will content marketing dominate the industry?",
"Will online branding strategies change in the future?"
]
}

Request Parameters

All requests require these base parameters:

  • search_question: (Required) The main keyword or topic for content generation
  • search_country: (Required) The country code (e.g., en-US) for localization
  • prompt: (Required) One of: Get_Meta_Titles_Descriptions, Get_SEO_Outline, or Get_7W_1H_Keywords

Additional parameters for SEO Outline:

  • title: (Optional) Custom title for the content outline
  • description: (Optional) Custom meta description

Error Handling

The API returns standard HTTP status codes:

  • 200 OK: Request successful
  • 400 Bad Request: Invalid parameters
  • 401 Unauthorized: Invalid API key
  • 403 Forbidden: Plan limitations
  • 429 Too Many Requests: Rate limit reached

Use Cases

Our AI Content Generation API is perfect for:

  1. SEO Content Planning

    • Create optimization tutorials
    • Develop beginner guides
    • Plan local SEO strategies
    • Structure step-by-step guides
  2. Content Outlines

    • Generate sample outlines
    • Create presentation outlines
    • Develop tutorial structures
    • Build optimization checklists
  3. SEO Strategy Development

    • Plan optimization strategies
    • Create SEO internal linking structures
    • Develop voice search optimization plans
    • Build local SEO tips

Next Steps

Now that you're familiar with the AI Keyword Generation API, you can start integrating it into your projects to enhance your keyword research and content planning processes.

For further questions or support, please contact hello@kwrds.ai.