Get rid of spam in your application.

Use our API to access Akismet’s powerful spam detection. One request in, one verdict out.

POST https://rest.akismet.com/1.1/comment-check

Request
curl https://rest.akismet.com/1.1/comment-check \
  -d api_key=YOUR_API_KEY \
  -d blog=https://example.com \
  -d user_ip=203.0.113.7 \
  -d comment_type=comment \
  -d comment_content="Cheap watches, click here"
Response 200 OK
X-akismet-pro-tip: discard
Content-Type: text/plain

true

Spam, and safe to discard True means spam. The pro tip says it’s so blatant you can drop it without a second look.

Four calls cover the whole loop.

Verify your key once, check each submission, then report anything Akismet got wrong so it keeps learning.

  • Full reference
  • Full reference
  • Full reference
  • Full reference

Not sure where to start?

Read our getting started guide for an overview of the Akismet API: what to send, what comes back, and how to handle each answer.

Read the guide
  1. Get an API key and verify it

    Every call carries your key and the site it’s for. Check both once with verify-key.

  2. Check every submission

    Send the content, the visitor’s IP address and a little context to comment-check. It answers true for spam, false for real.

  3. Report what Akismet missed

    When a moderator disagrees, send it back with submit-spam or submit-ham, so the network learns from it.

Skip the plumbing.

Building with AI?

Works in apps built with Lovable, Base44, Bolt, Replit, v0, Cursor, Claude Code, Windsurf, and more. There’s nothing to install there: your app calls the Akismet API, and our prompt tells your AI how.

Get started with your AI
  • Lovable
  • Base44
  • Bolt
  • Replit
  • v0
  • Cursor
  • Claude Code
  • Windsurf

Connect your AI

  1. Copy our prompt for your AI

    Copy it, then paste it into your AI.

  2. Paste it into your AI

    Open ChatGPT, Claude, or the tool you build with, paste the prompt, and send it.

    • Claude
    • ChatGPT
    • Gemini
    • Cursor
    • Lovable
    • Base44
    • Bolt
    • Replit
    • v0
    • Windsurf
    • GitHub Copilot
    • + many more
  3. Your AI adds Akismet

    It installs the plugin or calls the API, and asks for your Akismet API key.

Prefer to set it up yourself? Read the docs

Open, and meant to be built on.

The Akismet API is open, and alternative uses of it are encouraged. The WordPress plugin is GPL and fine to use as a reference.

openapi: 3.0.3
info:
  title: Akismet API
  version: 1.1.0
servers:
  - url: https://rest.akismet.com
paths:
  /1.1/verify-key: …
  /1.1/comment-check: …
  /1.1/submit-spam: …
  /1.1/submit-ham: …
  /1.2/key-sites: …
  /1.2/usage-limit: …

Explore the endpoints, or generate code to work with the API.