Cron Expression Parser API - Dart/Flutter Client
Cron Expression Parser decodes 5-field and 6-field cron expressions into human-readable schedules. Pass any cron string to verify syntax, read plain-language timing explanations, and get the next five execution timestamps.
This is the Dart/Flutter client for the Cron Expression Parser API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_cronparser: ^1.2.3
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage
import 'package:apiverve_cronparser/apiverve_cronparser.dart';
void main() async {
final client = CronparserClient('YOUR_API_KEY');
try {
final response = await client.execute({
'expression': '0 9 * * 1-5'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response
{
"status": "ok",
"error": null,
"data": {
"expression": "0 9 * * 1-5",
"isValid": true,
"format": "5-field",
"fields": {
"second": {
"expression": "0",
"description": "At 0",
"values": [
0
]
},
"minute": {
"expression": "0",
"description": "At 0",
"values": [
0
]
},
"hour": {
"expression": "9",
"description": "At 9",
"values": [
9
]
},
"dayOfMonth": {
"expression": "*",
"description": "Every",
"values": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31
]
},
"month": {
"expression": "*",
"description": "Every",
"values": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
]
},
"dayOfWeek": {
"expression": "1-5",
"description": "From 1 to 5",
"values": [
1,
2,
3,
4,
5
]
}
},
"description": "At 9:00 AM on Monday, Tuesday, Wednesday, Thursday, Friday",
"frequency": {
"type": "Daily",
"interval": "day"
},
"nextRuns": [
"2026-02-19T09:00:00.000Z",
"2026-02-20T09:00:00.000Z",
"2026-02-21T09:00:00.000Z",
"2026-02-24T09:00:00.000Z",
"2026-02-25T09:00:00.000Z"
]
}
}
API Reference
- API Home: Cron Expression Parser API
- Documentation: docs.apiverve.com/ref/cronparser
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_cronparser
- Cron Expression Parser API client for Dart/Flutter