SEO Content Machine

NEXT API

API Docs for NEXT version of SCM.

If you still using the older 'classic' version please check the classic api docs.

The default port for NEXT is 8008

GET /test

Send a get to the url above to see if the api server is ready and available. 


JSON result
{ "success": true, "message": null, "result": null }


POST /spin

Post a JSON with the following parameters to spin content using the soft spinner.

{"text": "hello world","csvprotectedwords": ""}


JSON fail result

{"success": false,"message": 'You must post an application/json eg {"text": "hello world", "csvprotectedwords": ""}',"result": null}


JSON ok result

{"success": true, "message": null, "result": "{hi|hellow} world"}


POST /aboutme

Generate an aboutme. Post a JSON with the following parameters.

{"keyword": "dog training"}


JSON fail result

{"success": false,"message": 'You must post an application/json eg {"keyword": "dog training"}',"result": null}


JSON ok result

{"success": true,"message": null,"result": "#your about me#"}


GET /projects

Retrieve a list of article creator projects together with the keywords that have content available for retrieval.


JSON result
{"success":true,"message":null,"result":[{"keywords":["body wash"],"group":"wash group","name":"natural body wash article","type":"Article Creator","id":"5e3bf43a32cf7c6a583e1085"}]}


GET /project/:id/:keyword

You must send a get with the project id and the keyword you want to retrieve content for.

Use the '/projects' call above to retrieve both the id and a list of available keywords with content.

The :keyword section is optional, if you leave it out it will just return content for the first available keyword.


Will return all the content located in the keyword/cache folder.


JSON fail result

{"success": false,"message": 'Unable to find any content for keyword in project with id ' + id,"result": null}


JSON result

{"success":true,"message":null,"result":{"keywords":["natural body wash"],"sentences":["...etc..."]}}


GET /project/delete/:id

Delete an the article creator task with the :id specified in the url.

Will always return true even if the task doesn't exist anymore.


JSON result

{"success": true, "message": null, "result": null}


GET /project/data/:id

Returns the configuration data used by NEXT when a task is run.

Download the data JSON, then edit it and make a POST to the same URL to upload your changes and have the task re run.


JSON fail result

{"success": false, "message": 'Was unable to find task of id 007', "result": null}


JSON result

{"success": true, "message": null, "result": {"jobName":"example job"[...etc]}}


POST /project/data/:id

Upload the modified json data object you got from the above GET call to completely customize the data used by the task.

Your task data is updated and scheduled to run immediately.


JSON fail result

{"success": false, "message": 'Was unable to find task of id 007', "result": null}


JSON result

{"success": true, "message": null, "result": null}


POST /duplicate

Duplicates an existing article creator task with the keywords you specify.

You must send a JSON object:

{"keywords":["cat","dog","orange"],"id":"5e3be477b073d23028908031c"}


If the call succeeded it will return the id of the newly created project.


JSON fail result

{"success": false, "message": 'Was unable to find task of id 007', "result": null}


JSON ok result

{"success": true, "message": null, "result":"39390dsfv9021121x"}


Sample Javascript Code


The following javascript code shows you how to make a simple get request.

const request = require('request');
request({
method: 'get',
url: 'http://127.0.0.1:8008/test',
json: true,
}, function (error, response, body) {
//Print the Response
console.log(body);
});


The following javascript code shows how you can make a json post to the API server.

const request = require('request');
request({
method: 'post',
url: 'http://127.0.0.1:8008/aboutme',
headers: {"content-type": "application/json",},
json: {keyword: 'cat'},
},function (error, response, body) {
//Print the Response
console.log(body);
});

Get A Free Trial

No Payment Details Required

Cyber Weekend 30% OFF All Plans