Stay Under 2,000/day Quota with URL Inspection API for Developers
Google's URL Inspection API gives you Search Console's index diagnostics programmatically, but only 2,000 URLs a day per property. Here is the call, the quota maths, the errors that break most scripts, and when checking by hand is faster.