Akismet API client for node.js
npm install akismet
You need to sign up for an Akismet API key to use the API. Once you sign up, it would be a good idea to verify your key.
var akismet = require'akismet'client blog: '' apiKey: 'myakismetapikey123' ;akismetverifyKeyif verifiedconsole.log'API key successfully verified.';elseconsole.log'Unable to verify API key.';;
You can now use Akismet to moderate your comments.
akismetcheckSpamuser_ip: '126.96.36.199'permalink: ''comment_author: 'spammer'comment_content: 'spamming your comments'ifspamconsole.log'Spam caught.';elseconsole.log'Not spam';;
You can also send feedback to Akismet with
submitHam. Their usage is the same as
akismetsubmitSpamuser_ip: '188.8.131.52'permalink: ''comment_author: 'spammer'comment_content: 'that was spam but you failed to catch me'console.log'Spam reported to Akismet.';;
See the Akismet API documentation for more information.