apiverve_botdetector 1.2.3
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.
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 #
- API Home: Bot Detector API
- Documentation: docs.apiverve.com/ref/botdetector
Authentication #
All requests require an API key. Get yours at apiverve.com.
License #
MIT License - see LICENSE for details.
Built with Dart for APIVerve