Gender Detector API - Dart/Flutter Client
Gender Detector is a gender prediction API that estimates the likely gender of a person from their name. Pass a first name and get back the predicted gender as JSON, ready for salutations, profile defaults, or audience analysis.
This is the Dart/Flutter client for the Gender Detector API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_genderdetector: ^1.2.4
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage
import 'package:apiverve_genderdetector/apiverve_genderdetector.dart';
void main() async {
final client = GenderdetectorClient('YOUR_API_KEY');
try {
final response = await client.execute({
'name': 'John Mcdonald',
'country': 'us'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response
{
"status": "ok",
"error": null,
"data": {
"name": "John Mcdonald",
"country": "US",
"detected": true,
"gender": "male"
}
}
API Reference
- API Home: Gender Detector API
- Documentation: docs.apiverve.com/ref/genderdetector
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_genderdetector
- Gender Detector API client for Dart/Flutter