Skip to main content

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

Bot Detector analyzes user agent strings to identify bots, crawlers, and automated software. It matches against a database of known bots and adds heuristics that catch automated clients not in the dat [...]

Bot Detector API - Dart/Flutter Client #

Bot Detector analyzes user agent strings to identify bots, crawlers, and automated software. It matches against a database of known bots and adds heuristics that catch automated clients not in the database, returning the bot's category, reputation and a composite risk score. Useful for security, analytics, and access control.

pub package License: MIT

This is the Dart/Flutter client for the Bot Detector API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_botdetector: ^1.2.3

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_botdetector/apiverve_botdetector.dart';

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

  try {
    final response = await client.execute({
      'ua': 'Googlebot/2.1 (+http://www.google.com/bot.html)',
      'ip': '66.249.66.1'
    });

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

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "userAgent": "Googlebot/2.1 (+http://www.google.com/bot.html)",
    "isBot": true,
    "bot": {
      "name": "Googlebot",
      "category": "search_engine",
      "url": "http://www.google.com/bot.html",
      "reputation": "trusted",
      "shouldBlock": false
    },
    "isAutomated": true,
    "verified": true,
    "riskScore": 0,
    "riskLevel": "low"
  }
}

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
120
points
121
downloads

Documentation

API reference

Publisher

verified publisherapiverve.com

Weekly Downloads

Bot Detector analyzes user agent strings to identify bots, crawlers, and automated software. It matches against a database of known bots and adds heuristics that catch automated clients not in the database, returning the bot's category, reputation and a composite risk score. Useful for security, analytics, and access control.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_botdetector