Flutter Profanity Filter

Screen user input in a Flutter app by calling your own backend moderation endpoint.

Quick start in Flutter

import 'dart:convert';
import 'package:http/http.dart' as http;

Future<bool> checkText(String text) async {
  final res = await http.post(
    Uri.parse('https://yourapp.com/api/moderate'),
    headers: {'Content-Type': 'application/json'},
    body: jsonEncode({'text': text}),
  );
  return jsonDecode(res.body)['flagged'] as bool;
}

Note: Never embed your API key in the app bundle — route the call through your server.

Why context-aware matters

A plain word list flags "this game is sick" or medical text full of anatomical terms. The Profanity API runs a five-layer pipeline that scores intent, so "die" in a gaming taunt and "die" in a real threat are handled differently. Pick a context and the engine adjusts strictness automatically.


Other integrations

Ready to ship moderation?

Get an API key and 300 free requests a month. No credit card required.

Get started free →