API for getting plugin core compatibility?

This should get you what you are looking for:

WordPress.org API for Plugins

Here’s the full documentation:

WordPress.org API Doc