Yes, the API method getLogs() will return Recommend requests.
Here is a snippet of JavaScript code that will print Recommend requests from the last 10 API requests:
import algoliasearch from 'algoliasearch';
const client = algoliasearch('YOUR_APP_ID', 'YOUR_API_KEY');
client.getLogs({
length: 10,
}).then(({ logs }) => {
var print = [];
for (let i = 0; i< logs.length; i++) {
if (logs[i].url.includes("recommend")) {
print.push(logs[i])
}
}
console.log(print)
});
You will need to replace YOUR_APP_ID and YOUR_API_KEY with your app information.