Skip to main content

apiverve_contentfilter 1.2.3 copy "apiverve_contentfilter: ^1.2.3" to clipboard
apiverve_contentfilter: ^1.2.3 copied to clipboard

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 bloc [...]

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

0
likes
130
points
108
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_contentfilter