Today we’re launching the new Google Search Console URL Inspection API, which gives programmatic access
to URL-level data for properties you manage in Search Console.
Source: Google Webmaster Central Blog
Link: Welcoming the new Search Console URL Inspection API