HELP CENTER

Can I set the number of subtopics to generate?

DataForSEO Content Generation – Generate Subtopics API provides you with ten subtopics in a row based on the specified topic and creativity_index.

You can find more information about creativity_index in this help center article.

There are no other parameters you could use in the POST request except a tag to identify the task and match it with the result.

It means that you will get a fixed number of ten subtopics in each API response. If you need more, just repeat the request as many times as you want. The API generates a new list of subtopics every time.

Note: you can send up to 2000 API calls per minute.

Example request:

[
  {
    "topic": "Steve Jobs",
    "creativity_index": 0.9
  }
]

{
  "version": "0.1.20221214",
  "status_code": 20000,
  "status_message": "Ok.",
  "time": "2.1631 sec.",
  "cost": 0.0001,
  "tasks_count": 1,
  "tasks_error": 0,
  "tasks": [
    {
      "id": "03211243-4426-0543-0000-031e70c0470f",
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "2.1105 sec.",
      "cost": 0.0001,
      "result_count": 1,
      "path": [
        "v3",
        "content_generation",
        "generate_sub_topics",
        "live"
      ],
      "data": {
        "api": "content_generation",
        "function": "generate_sub_topics",
        "topic": "Steve Jobs",
        "creativity_index": 0.9
      },
      "result": [
        {
          "input_tokens": 19,
          "output_tokens": 73,
          "new_tokens": 73,
          "sub_topics": [
            "Steve Jobs: The Man Behind the Macintosh",
            "A Passion for Technology and Design",
            "An Unparalleled Vision",
            "Apple's Culture of Innovation",
            "The Product Cycle",
            "The iPod Shuffle",
            "The iPhone",
            "The iPad",
            "The Computer-Human Interaction",
            "The End of an Era?"
          ]
        }
      ]
    }
  ]
}

Embed DataForSeo widget on your website


Embed code:
Preview: