You can now programmatically access the data you’d request from the URL Inspection Tool within Google Search Console.
Please visit Search Engine Land for the full article.
Source: Search Engine Land
Link: Google releases URL Inspection Tool API