apiverve_websitereadability 1.2.6
apiverve_websitereadability: ^1.2.6 copied to clipboard
Website Readability analyzes live web pages to score their reading difficulty and educational grade level. It returns Flesch Reading Ease, Flesch-Kincaid grade level, word count, sentence count, and e [...]
Website Readability API - Dart/Flutter Client #
Website Readability analyzes live web pages to score their reading difficulty and educational grade level. It returns Flesch Reading Ease, Flesch-Kincaid grade level, word count, sentence count, and estimated reading time.
This is the Dart/Flutter client for the Website Readability API.
Installation #
Add this to your pubspec.yaml:
dependencies:
apiverve_websitereadability: ^1.2.6
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage #
import 'package:apiverve_websitereadability/apiverve_websitereadability.dart';
void main() async {
final client = WebsitereadabilityClient('YOUR_API_KEY');
try {
final response = await client.execute({
'url': 'https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response #
{
"status": "ok",
"error": null,
"data": {
"fleschReadingEase": 24.34,
"fleschReadingEaseText": "Very Confusing",
"fleschKincaidGrade": 19.3,
"gunningFog": 19.62,
"colemanLiauIndex": 13.12,
"smogIndex": 14.37,
"automatedReadabilityIndex": 22.6,
"daleChallReadabilityScore": 17,
"daleChallReadabilityScoreText": "average 13th to 15th-grade (college) student",
"wordCount": 634,
"sentenceCount": 29,
"readingTimeMinutes": 3,
"averageGradeLevel": 17.8,
"targetAudience": "post-graduate",
"url": "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts"
}
}
API Reference #
- API Home: Website Readability API
- Documentation: docs.apiverve.com/ref/websitereadability
Authentication #
All requests require an API key. Get yours at apiverve.com.
License #
MIT License - see LICENSE for details.
Built with Dart for APIVerve