Content Filter API - Dart/Flutter Client

Content Filter checks URLs against a comprehensive blocklist of 200,000+ domains categorized as ads-malware, fake news, gambling, adult content, or social media. Returns the specific category for blocked domains, plus every category a domain appears in across a 1.7M-domain index.

pub package License: MIT

This is the Dart/Flutter client for the Content Filter API.

Installation

Add this to your pubspec.yaml:

dependencies:
  apiverve_contentfilter: ^1.2.3

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage

import 'package:apiverve_contentfilter/apiverve_contentfilter.dart';

void main() async {
  final client = ContentfilterClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'url': 'https://www.pornhub.com/video/123'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response

{
  "status": "ok",
  "error": null,
  "data": {
    "url": "https://www.pornhub.com/video/123",
    "domain": "www.pornhub.com",
    "isBlocked": true,
    "category": "porn",
    "matchedDomain": "pornhub.com",
    "safetyRating": "unsafe",
    "categories": [
      "porn"
    ]
  }
}

API Reference

Authentication

All requests require an API key. Get yours at apiverve.com.

License

MIT License - see LICENSE for details.


Built with Dart for APIVerve

Libraries

apiverve_contentfilter
Content Filter API client for Dart/Flutter