Our API

We provide an API that you as a customer can use to integrate boostcontent.com into your custom solution. For example if you have a big webshop with thousands of products and more coming every month, then you can use the API to automatically order content when needed and when then content is delivered you can automatically retrieve it and publish it within your system.

To get started you have to download our simple API php library here


include('MeritCrowdApi.php');

$api = new MeritCrowdApi(
    "{API_KEY}",
    "{API_SECRET}",
    "http://www.boostcontent.com/api/v2/"
);

// Fetch the available languages and prices.
$languages = $api->getRealms();

// Create a new order and name it, specifying which language and team to use.
$jobId = $api->createJob([
    'jobName' => 'Example Order',
    'realmId' => 69, // Language
    'teamId' => 11 // Team
]);

$api->createTask($jobId, [
    'Subject' => 'Write a text about the iPhone 6',
    'wordCountMin' => 300,
    'wordCountMax' => 350,
    'Keywords' => 'iPhone 6',
    'Links' => [
        [
            'Link URL' => 'http://example.com',
            'Link Text' => 'iPhone'
        ]
    ]
]);

In the example above we create a simple order with one task in it, then the order is created you specify which language and team to use. Note that different team-language pairs has different prices. In the next example I will show you how to fetch all the tasks you have and look at the status of them, for the finished texts I will download the content.


include('MeritCrowdApi.php');

$api = new MeritCrowdApi(
    "{API_KEY}",
    "{API_SECRET}",
    "http://www.boostcontent.com/api/v2/"
);

$jobs = $api->getJobs();

foreach ($jobs as $job) {
    $tasks = $api->getTasks($job->jobId);
    foreach ($tasks as $task) {
        if ($task->status == "finished") {
            var_dump($task->content);
        }
    }
}

The API is intended to be simple and reliable and if you have any questions about it or if you need help integrating it into your system please reach out to us in the live chat and you will be able to talk to a developer.