Can the Java – Google Webmaster tool API be used to automatically repair web page not found errors?
If I use the Google Webmaster tool and click health – > grab errors, I find that our website has about 1045 undetected errors
Each error can be manually fixed by:
>Filter through the list to find the specified error that needs to be fixed, and then click it. > In the results dialog box, click the "get as Google" link, > click "get" > finally, click Submit index (provided there is enough extraction), and then mark it as fixed
Since there are about 1000 errors to fix, it seems a little impossible to do this manually (Note: I have no relationship, but i migrated the website before the content that caused the error.)
I know it's possible to retrieve a list of site errors, but it's really only half the battle I checked the API and didn't really find a way to use the webmaster tool API to mark the error as fixed
Solution
It is entirely possible to mark an error as fixed using this API call:
https://developers.google.com/webmaster-tools/search-console-api-original/v3/urlcrawlerrorssamples/markAsFixed
Therefore, you can easily automate execution by
>Get grab error examples (up to 1000) > check given URL > mark working URL for API repair
Please remember: grab the error information and update it once a day Therefore, if there are more than 1000 errors and half of them are marked as fixed, new data not previously included in the sample may scroll after a day