Select Page

AI Blog Post Ideas API

Description

Content publishing is an extremely effective strategy for your business' SEO success. Our Blog Post Idea generation API will help out discover topics that you can write about that are relevant to your niche.

Endpoint Cost

2 token/credit per request

Endpoint

> POST https://api.jsonrepo.com/v1/content/ai_blog_post_ideas

Headers

Field Description
X-API-Key Required Your API Key

Parameters

Field Type Description
input String Required the concept description or keyword for which you want the suggestions to be about
Format: English alphanumeric string
Length: 10 <= length <= 120
limit Integer Optional The number of maximum recommendations to be generated by our AI
Default: 10.
Range: 1 <= limit <= 20

Response

A successful request will result in a populated payload field with the expected output.

Response Time:

As you are probably well aware, AI output is bound by the efficiency of the model and the prompt enabling it. The bigger your limit is, the longer the request will take to process. Please be patient as processing the information could sometimes take between 1 and 12 seconds.

Example

Request Example
// Generate a list of 5 blog post ideas for the keyword `stripe invoice generator`

curl -X POST https://api.jsonrepo.com/v1/content/ai_blog_post_ideas \
-H "X-API-Key: {YOUR_API_KEY_HERE}" \
--data-urlencode "description=stripe invoice generator" \
--data-urlencode "limit=5"
// Server Response

{
    "http_code": 200,
    "http_message": "Ok",
    "timestamp": 1730174609,
    "message": "Successful execution.",
    "payload": {
        "titles": {
            "input": {
                "input": "stripe invoice generator"
            },
            "output": [
                "10 Creative Ways to Use a Stripe Invoice Generator for Your Business",
                "How to Automate Your Invoicing Process with a Stripe Invoice Generator",
                "The Ultimate Guide to Customizing Invoices Using a Stripe Invoice Generator",
                "Streamline Your Billing: The Benefits of a Stripe Invoice Generator",
                "Top Tips for Integrating a Stripe Invoice Generator into Your Workflow"
            ]
        }
    }
}

Errors

A failed request will result in an error output as detailed in Error Rules. If the endpoint validation fails due to missing, badly formatted or invalid parameters, the endpoint will return HTTP code 400 along with a message detailing the error.

Error Response
// Request without `input` parameter

{
    "http_code": 400,
    "http_message": "Bad Request",
    "timestamp": 1730174652,
    "message": "'input' parameter must be provided as an alphanumeric string of length 10 to 120.",
    "payload": []
}