guillebajo → created an issue.
Before you install bat_api, you have to install the module services manually. This is because drupal services is on beta phase and it is not installed by default:
Firstly -> $ composer require 'drupal/services:^5.0@beta'
And then -> $ composer require 'drupal/bat_api:^3.1.0'