When I go to the search console site and go to Crawl -> Sitemaps https://www.google.com/webmasters/tools/sitemap-list?hl=en&authuser=0&siteUrl=myURL.comI see the table with 1 entry /sitemap.xml and 45 submitted, no data about indexed and the indexed column says Pending.However a call against the webmasters v3 api for this sitemap returns 45 submitted, 0 indexed and pending = false.That last bit is giving me a lot of trouble in our automated error reporting since the sitemap is clearly not done processing (indexed is normally between 43 and 45) but the cron job that looks at the API flags an alert with 0 indexed.Has anyone encountered this issue and can help out?EDIT:I should mention that at some point the search console UI switches from pending to giving the actual number of indexed pages. The problem is the API always returning false for the is_pending property.
Google webmasters v3 API reporting incorrect status for sitemap whereas Search Console correctly shows it as pending
google search console;google api