Integrations

Find out whether SpamAPI works with your site

The WordPress plugin checks comments and forms made with Contact Form 7, Gravity Forms and WPForms, without any coding. Any other website or app can use the REST API. See what each one checks and which guide to follow.

Supported today

Supported today

Which comments and forms SpamAPI checks

Everything below works today. Find your form, see what happens to spam, then follow its setup guide.

  • WordPress plugin

    WordPress comments

    What's checked
    New comments from visitors, including signed-in users who can't moderate comments.
    What happens to spam
    It goes to the spam list under Comments, where you can still read it and mark it as not spam.
    Good to know
    Pingbacks, trackbacks and comments from users who can moderate comments aren't checked. A SpamAPI column in the comments list shows each result.
  • WordPress plugin

    Contact Form 7

    What's checked
    Every submission: the text of the form's multi-line fields as the message, plus the sender's name and email address.
    What happens to spam
    Contact Form 7 treats the submission as spam: it isn't emailed to you, and the visitor sees the form's error message.
    Good to know
    Other single-line fields aren't checked. A submission that another spam check already caught isn't sent to SpamAPI and doesn't use a check.
  • WordPress plugin

    Gravity Forms

    What's checked
    Every submission: the name and email fields and the text of single-line, paragraph and post body fields.
    What happens to spam
    Gravity Forms marks the entry as spam. You find it among the form's spam entries.
    Good to know
    An entry that another spam check already caught isn't sent to SpamAPI and doesn't use a check.
  • WordPress plugin

    WPForms

    What's checked
    Every submission: the name and email fields and the text of single-line and paragraph fields.
    What happens to spam
    WPForms refuses the submission and shows the visitor “Your submission has been flagged as spam.” The message doesn't reach you.
    Good to know
    There's no spam list to look through afterwards, so a visitor whose message was wrongly refused has to reach you another way.
  • REST API

    Your own website or app

    What's checked
    Whatever your code sends: the text, the sender's name, email address and website, and the visitor's IP address and user agent.
    What happens to spam
    Your code decides. Each answer says whether the submission is spam, gives a score from 0 to 1 and recommends allow, review or discard.
    Good to know
    Works from any programming language that can send HTTPS requests. The docs have examples in Go, JavaScript, PHP and Python.

Plugin or API

WordPress plugin or REST API: what's the difference?

Both use the same account, API keys and monthly checks. They differ in who connects your forms and who acts on each answer.

  • For WordPress sites

    WordPress plugin

    Who sets it up
    You do, in the WordPress admin. No coding.
    What's sent to SpamAPI
    Each comment or form submission from a visitor: the text, the name and email address they entered, their IP address and their browser's user agent.
    Your API key
    Create a key in your SpamAPI dashboard, paste it under Settings → SpamAPI and click Test Connection.
    Who acts on the answer
    The plugin, following your strictness setting: Lenient, Balanced or Strict. It applies to comments and forms alike.
    If SpamAPI can't answer
    The comment or submission goes through unchecked, and the error goes to your site's PHP error log. The same happens when your monthly checks are used up or the key no longer works.
    If a result is wrong
    Approve a wrongly caught comment from the spam list, or mark spam that got through as spam in WordPress, as usual.
  • For developers

    REST API

    Who sets it up
    A developer, in your website's or app's server code.
    What's sent to SpamAPI
    One JSON request per submission, with whatever your code includes. Only your site's address (blog) and the visitor's IP address (user_ip) are required.
    Your API key
    Create a key in the dashboard and send it in the X-API-Key header from your server, never from code that runs in the visitor's browser.
    Who acts on the answer
    Your code: publish, hold for review or reject, based on is_spam, the score or the recommendation.
    If SpamAPI can't answer
    The API returns 503 with detection_unavailable and no decision; your code decides whether to accept, hold or retry the submission. Once your monthly checks are used up, it returns 429.
    If a result is wrong
    Report it to /api/v1/submit-spam or /api/v1/submit-ham. Reports are counted in your dashboard's usage history.

Example: a contact form on your own site

Your server sends each new message with the visitor's details before it emails or stores it. Map the form's name, email and message fields to the request, then act on the answer.

More about the API
Checking a contact form message
curl https://api.staging.spamapi.de/api/v1/check \
  -H "X-API-Key: $SPAMAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "blog": "https://example.com",
    "user_ip": "203.0.113.10",
    "user_agent": "Mozilla/5.0 (X11; Linux x86_64)",
    "comment_type": "contact-form",
    "comment_author": "Jane Doe",
    "comment_author_email": "jane@example.com",
    "comment_content": "Hello, could you send me a quote for a new roof?"
  }'

Decision guide

Do you need an external spam filter?

Many sites start with the spam tools they already have. An external filter such as SpamAPI reads each message and judges it, which helps in some situations and has costs in others.

  • Your built-in tools may be enough if

    • you get little spam and don't mind approving comments by hand.
    • your spam repeats the same words or links, which the disallowed words list in WordPress's discussion settings can catch.
    • a hidden honeypot field or a CAPTCHA from your form plugin already stops the spam your forms receive.
  • SpamAPI can help if

    • spam gets past word lists because it's written to look like a real message.
    • sorting spam by hand takes more time than you want to spend.
    • you don't want every visitor to solve a CAPTCHA before they can write to you.
    • you run several sites and want the same protection on each, under one account.
  • Before you decide

    • Each comment or submission, with the visitor's IP address, is sent to SpamAPI to be checked. Mention this in your privacy policy.
    • Every check counts toward your plan's monthly checks. When they run out, messages arrive unchecked until the next month.
    • Some results will be wrong. Look through your spam from time to time; WPForms doesn't keep the submissions it refuses.
    • You can keep your current tools. Comments SpamAPI lets through still follow your WordPress discussion settings.

Availability

What's available, what isn't, what's planned

  • Available now

    • WordPress comments and Contact Form 7, Gravity Forms and WPForms forms, through the plugin
    • Any website or app, through the REST API
    • Three strictness levels for the plugin: Lenient, Balanced and Strict
    • Test mode for trying an API integration before visitors reach it
    • Reports of missed spam and wrongly flagged messages, through the API
    • Usage and per-site statistics in your dashboard
  • Not supported

    • Pingbacks and trackbacks.
    • Other form plugins, and forms built into themes or page builders. A developer can connect them through the API instead.
    • WordPress registration and login forms.
    • Different strictness levels per form: one setting applies to the whole site.
    • Your email inbox. SpamAPI checks messages when visitors submit them on your site, not email you receive.
  • Planned

    Learning from your corrections

    Today, reports of missed spam and wrongly flagged messages are counted in your usage history but don't change how SpamAPI classifies. A shared spam model that learns from the moderation decisions of participating sites is in development. It isn't available to customers yet and has no release date.

Pick your setup and start free

Create a free account and an API key, then follow the WordPress setup guide or the getting started guide for the API.