Random Word API - Dart/Flutter Client
Random Word is a random word generator API that selects a random English word from the dictionary on each request. Paid plans add dictionary definitions and ARPABET phonetic pronunciation.
This is the Dart/Flutter client for the Random Word API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_randomwords: ^1.2.6
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage
import 'package:apiverve_randomwords/apiverve_randomwords.dart';
void main() async {
final client = RandomwordsClient('YOUR_API_KEY');
try {
final response = await client.execute();
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response
{
"status": "ok",
"error": null,
"data": {
"word": "persevering",
"definitions": [
"Characterized by perseverance; persistent. -- Per`se*ver\"ing*ly, adv."
],
"pronunciation": "P ER0 S AH0 V IH1 R IH0 NG"
}
}
API Reference
- API Home: Random Word API
- Documentation: docs.apiverve.com/ref/randomwords
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_randomwords
- Random Word API client for Dart/Flutter