Perspective API alternative
Switch from Perspective API by changing one URL
Perspective API shuts down on December 31, 2026. Spamgone is a drop-in alternative: it accepts the same comments:analyze request and returns the same response shape, so you switch by changing the base URL and the API key. It also detects spam and scams, takes context about the author into account, and stores data in the EU.
Switching from Perspective? Use code PERSPECTIVE50 at checkout for 50% off Pro or Scale for your first 3 months, until January 31, 2027.
Migration
Switch in three steps
Keep your request code, your response parsing and your score thresholds.
01Create a free Spamgone key
Sign in, and copy an API key from the dashboard. The Free plan includes 2,000 checks a month.
02Change the URL and the key
Your request body stays exactly as it is.
Endpoint - https://commentanalyzer.googleapis.com/v1alpha1/comments:analyze?key=YOUR_GOOGLE_API_KEY + https://spamgone.dev/v1alpha1/comments:analyze?key=YOUR_SPAMGONE_API_KEYRequest body, unchanged { "comment": { "text": "Nobody wants you here, just leave" }, "requestedAttributes": { "TOXICITY": {}, "INSULT": {}, "SPAM": {} }, "doNotStore": true }03Check your thresholds
Scores are probabilities from 0 to 1, like Perspective's, but they come from a different model. Run a sample of your own comments through both and adjust your cut-offs before you move all traffic.
Compatibility
Which Perspective attributes work
The compatible endpoint answers the production toxicity attributes, SEXUALLY_EXPLICIT and SPAM, in Perspective's response shape.
| Perspective attribute | In Spamgone |
|---|---|
| TOXICITY | Supported |
| SEVERE_TOXICITY | Supported |
| IDENTITY_ATTACK | Supported |
| INSULT | Supported |
| PROFANITY | Supported |
| THREAT | Supported |
| SEXUALLY_EXPLICIT | Supported, from Spamgone's sexual-content check |
| SPAM | Supported, using Spamgone's main spam score in every language |
| Other experimental and New York Times attributes | Not supported. The request fails with Perspective's 400 error, naming the attribute |
Comparison
Spamgone and Perspective API, side by side
Facts about Perspective come from its own documentation, with a link and the date we checked.
| Topic | Spamgone | Perspective API |
|---|---|---|
| Availability | Available, with a Perspective-compatible endpoint | Shuts down on December 31, 2026. No new quota requests since February 2026, and access can't be extended.Source, checked |
| What it detects | Spam (scams, phishing, promotion, adult content and malware), plus toxicity, self-harm, sexual content and personal details when you ask for them | Toxicity: toxicity, severe toxicity, identity attacks, insults, profanity and threatsSource, checked |
| Spam | The main check, with a category and plain-language reasons | Only an experimental SPAM attribute, in English, trained on New York Times commentsSource, checked |
| Context | Author account age, verification and role, the recipient, the content type, your community description, and signals from your recent traffic | Accepts context entries, but its docs say the API does not use themSource, checked |
| Languages | Not limited to English. Tested so far in 20 languages, including Arabic, Chinese, Hindi, Japanese and Korean | Toxicity in 17 languages. The other production attributes in 7: German, English, Spanish, French, Italian, Portuguese and RussianSource, checked |
| Images | Coming as a beta | Text onlySource, checked |
| AI agents | A hosted MCP server for Claude, Cursor and other MCP clients | Two REST methods (AnalyzeComment and SuggestCommentScore)Source, checked |
| Price | Free for 2,000 checks a month. Pro $20 a month, Scale $90 a month | FreeSource, checked |
| Throughput | A per-second limit set by your plan, and batches of up to 100 messages | 1 query per second by defaultSource, checked |
| Text size | Up to 10,000 characters per message | Up to 20 KB per requestSource, checked |
| Data handling | Stored in the EU (Ireland). Message text is kept only in your check history, for the retention you choose, down to zero days. doNotStore is honored | Comments may be stored and used for research unless the request sets doNotStoreSource, checked |
Beyond Perspective
What you get on top
Spam and scams, not only toxicity
Scams, phishing, promotion, adult content and malware links, each with a category.
Context about the author
Account age, verification and role, and who receives the message.
Reasons for every verdict
Short, plain-language reasons your moderators can act on.
Your own rules
Allow and block lists for domains, phrases and authors, applied first.
EU data storage
Stored in Ireland, kept only as long as you choose, and doNotStore honored.
An MCP server for AI agents
Claude, Cursor and other MCP clients can check and moderate for you.
FAQ
Questions about leaving Perspective API
When does Perspective API shut down?
Perspective API stays active until December 31, 2026. It stopped taking new quota requests in February 2026, and access can't be extended past the shutdown.
What can I use instead of Perspective API?
Spamgone accepts the same comments:analyze request and returns the same response shape, so most integrations switch by changing the base URL and the API key. It adds spam and scam detection, context about the author, and EU data storage.
Do I need to change my code?
For the supported attributes, no. Change the base URL and the API key. Requests, the response shape, clientToken and doNotStore work as before.
Will the scores match Perspective's?
No. Spamgone's scores are probabilities from 0 to 1, like Perspective's, but they come from a different model. Check a sample of your own comments and adjust your thresholds before moving all traffic.
Is there a free plan like Perspective?
Yes. The Free plan includes 2,000 checks a month. Paid plans add volume and longer history.
Does Spamgone store the comments I send?
Only in your check history, for the retention you choose, down to zero days. When a request sets doNotStore, the text is never stored.
Switch before December 31, 2026
Create a free key and point one request at Spamgone today.