1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Content API

This API allows you to evaluate content.

This API gives you access to content evaluation systems.

The content API type is for premium members and responds to POST requests via HTTPS. The API results are JSON formatted.

Endpoint

https://api.digitalpoint.com/v1/content/{action}.json

Actions

Valid actions for this API type:

duplicate

Used to detect plagiarism. Pass content (for example an article) and you will get a sample of URLs where that content exists at. If no URLs are returned, then no duplicate content was detected (that would not necessarily mean there absolutely is no plagiarism, only that we were unable to find any programmatically).

Required parameters: content
quality

Obtain a writing quality score for certain content (for example an article). The quality score can range between 0 and 100 (with 100 being the highest possible score).

Required parameters: content

Example

If you wanted to check for plagiarism in an article that was contained within the $article variable, this is how you could do it... ($accessId and $secretKey come from your account API settings)

PHP example

$expires = time() + 300;
$signature = base64_encode(hash_hmac('sha1', $accessId . '-' . $expires, $secretKey, true));
$ch = curl_init('https://api.digitalpoint.com/v1/content/duplicate.json');
curl_setopt_array($ch, array(
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => array('content' => $article),
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => array(
        "Auth-Access-Id: $accessId",
        "Auth-Signature: $signature",
        "Auth-Expires: $expires"
    )
));
$results = json_decode(curl_exec($ch));
curl_close($ch);