SEO Content Brief API

Samuel Schmitt

Looking for a Content Brief API?

With the thruuu API, you can:

If you’re looking to scale your content production, you’re in the right place.

With thruuu, you have:

Let’s dive into getting started with the thruuu Content Brief API.

Getting Started with the thruuu Content Brief API

This guide covers how to access the Content Brief API endpoints, make API calls, and work with the returned data.

Note: If you don’t yet have an account and API key, please read this page first.

Request Builder

In the API dashboard, you’ll find the Request Builder—a helpful tool for structuring your API requests correctly.

We recommend using it as you familiarize yourself with the API to ensure proper setup.

Making Your First Call to the Content Brief API

This endpoint allows you to create content briefs in bulk based on provided keywords and parameters. It analyzes the SERPs for the given keywords and generates content briefs using a specified template.

To call the endpoint, make the following HTTP request:

POST https://api.thruuu.com/api/v2/briefs

Request Headers:

{
    "Content-Type": "application/json",
    "Authorization": "Bearer YOUR_API_TOKEN"
}

Request Body:

{
    "keywords": [
        "what is a content brief",
        "seo tools"
    ],
    "parameters": {
        "search_engine": "google.com",
        "location": null,
        "country": "US",
        "language": "en",
        "device": "desktop",
        "search_volume": true,
        "num": 20,
        "analyze_content": true,
        "analyze_headings": true
    },
    "template_id": "<ID>",
    "outline_prompt_id": "<ID>",
    "reference": "<REF>"
}

Explanation of Key Parameters:

API Response

Upon successfully initiating a bulk request, you’ll receive the following response:

{
   "message": "Bulk API initiated successfully",
   "success": true,
   "id": "670a7acabcfc2555366172ea",
   "credits": {
       "free": 5,
       "paid": 0,
       "sub": 500
   }
}

Since the process can take longer than 30 seconds, the thruuu API will notify your webhook endpoint with a JSON object containing the results.

Setting Up a Webhook Endpoint

Below is an example in NodeJS to configure an HTTP POST endpoint to receive data from the thruuu API.

const express = require('express');
const app = express();
 
// Match the raw body to content type application/json
// If you are using Express v4 - v4.16 you need to use body-parser, not express, to retrieve the request body

app.post('/test-webhook', express.json({ type: 'application/json', limit: '50MB' }), async (req, res) => {
 console.log('request from thruuu is coming');
 if (req.body !== undefined && req.body.data !== undefined) {
   console.log(`event type:${req.body.data.eventType}`);
   console.log(`data: ${req.body.data}`);
 }
 // Return a response to acknowledge receipt of the event
 res.json({ received: true });
});
 
app.listen(8000, () => console.log('Running on port 8000'));

Results

Once your webhook receives a notification, you’ll get a response with the data in the following format:

{
  "eventType": "bulk-brief",
  "id": "670a9411a237576baf4a7135",
  "briefs": [
    {
      "id": "670a9426f5a0ccf086712534",
      "label": "brief example",
      "keyword": "brief example",
      "status": "Draft",
      "relatedSERP": "<SERP ID>",
      "contentBlock": [/* Array data here */],
      "creationDate": "2024-10-12T15:22:14.360Z",
      "modificationDate": "2024-10-12T15:22:14.360Z"
    }
  ]
}

Key Elements

Detailed Content Block Data Object

The contentBlock array contains elements from the brief template, such as Writer Directive, Article Summary, and Outline. Each element includes detailed information.

To learn more about the Content Block Object and inner objects, read this document.

The Content Brief API offers additional endpoints to retrieve all the content brief, template and outline.

Get List of Content Briefs

Endpoint

Description

Returns a paginated list of content briefs created by the user. Each brief includes summary information such as its unique ID and label.

Query Parameters

Example Request

GET /api/v2/briefs?page=1&itemsPerPage=20

Get a Single Content Brief by ID

Endpoint

Description

Retrieves detailed information for a single content brief by its unique ID.

Path Parameter

Example Request:

GET /api/v2/briefs/<brief_id>

Get List of Brief Templates

Endpoint

Description

Retrieves a list of available brief templates, including each template’s unique ID and label.


Get List of Outline Formats

Endpoint

Description

Retrieves a list of available outline formats, including each format’s unique ID and name.

Get started with the thruuu Content Brief API 

With thruuu, you will save a lot of time analyzing the SERP and get better SEO results by crafting the perfect content.
Don’t miss this opportunity.