I have developed a PHP class to call the API from blocklist.de.
Reports can be created and sent in PHP.
$log = $blocklist->create_http_log($ip, $date);
$log .= "\n\n".$blocklist->create_comment('Spam-Comment', $comment, $mail);
$report = $blocklist->send_report($ip, 'badbots', $log);
The last entries are very easy to query:
$last_added = $blocklist->get_last_added('-60s');
$last_added = $blocklist->get_last_added('-1m', 'badbots');
The php-class is available in my git.