Skip to content

Free API Keys

Free API Keys are available at no cost, offering limited access to the AntiSpam API.

Conditions for Free API Keys:

Free vs. Paid Access

Upgrading to paid API Keys unlocks additional features like API Analytics and Logs, allowing you to monitor API usage for your websites and applications.

FeatureFreePaid
Request limit50 requests/dayBased on purchased volume
Referrer restrictionsOne referrer per keyAdjustable
API analyticsNoYes
API request logsNoYes
Attribution requiredYesNo

Generating a Free API Key

Free API Keys are tied to a specific domain name and only function on websites hosted on the provided domain name.

Generate a Free API Key
If you're using a non-standard port number, enter the domain name and port in this format: example.com:3000.

The server will generate a new Free API Key and a secret:

{
"hostname": "example.com",
"apiKey": "ckey_49960de...",
"secret": "csec_55de16dde79f94...",
"license": "...",
"verification": {
"DNS": {
"name": "@",
"type": "TXT",
"value": "altcha-verification=..."
}
}
}

The secret csec_... is used for payload verification (as HMAC secret) and must remain confidential, never exposed publicly.

Refer to the documentation to learn how to generate a new API Key using the API.

Domain Verification

While optional, domain verification is strongly recommended. Verifying the ownership of your domain name via the DNS TXT record configured with the provided altcha-verification=... value adds an extra layer of security.

Domain verification ensures that your API Key is appropriately associated with the domain name it is intended to work with.

To verify your domain name, follow these steps:

  1. Access your DNS records management panel.
  2. Add a TXT record with the following details:
    • Record Type: TXT
    • Host/Name: @ (or your domain name)
    • Value/Text: altcha-verification=abc... (replace abc... with your unique verification token obtained when you generated the API Key)
  3. Save the changes.

Once the DNS record is successfully added and propagated, the domain ownership will be verified. This ensures the secure usage of your API Key with the specified domain name.

Attribution for Free API Keys

When using the Free API Key, you MUST display “Protected by ALTCHA” along with the logo in the widget (i.e., do not use hidelogo or hidefooter). If you’re not using the widget, you MUST include an attribution in the footer of your website, at least on the homepage:

<a href="https://altcha.org">Protected by ALTCHA</a>

You may translate or modify the text, but it must convey a similar meaning to “Protected by ALTCHA”. The link must direct to https://altcha.org and should not include rel="nofollow".

Free API Key attribution

Don’t hide logo and footer with Free API Keys