craft-seomatic icon indicating copy to clipboard operation
craft-seomatic copied to clipboard

[FR] Google Indexing API

Open internetztube opened this issue 6 years ago • 4 comments

Are there any plans for adding support for the Google Search Indexing API?

https://developers.google.com/search/apis/indexing-api/v3/quickstart

internetztube avatar Dec 10 '19 17:12 internetztube

I've actually looked into it. The thing is, it's only relevant in the very, very specific cases mentioned:

Currently, the Indexing API can only be used to crawl pages with either JobPosting or BroadcastEvent embedded in a VideoObject. For websites with many short-lived pages like job postings or livestream videos, the Indexing API keeps content fresh in search results because it allows updates to be pushed individually.

Given that narrow scope, I wasn't sure how many people would actually be interested in it?

khalwat avatar Dec 11 '19 18:12 khalwat

@internetztube I recently implemented this in a Craft project. As it's quite limited to certain schema (most common is JobPosting), you could code a quick module that listens on the saving or enabling/disabling of entries within specific section(s) to achieve this, then fire the appropriate API call to add, update or remove from Google based on the entry.

Some examples of the events you'd need are here:

https://docs.craftcms.com/v3/extend/updating-plugins.html#events

jamesmacwhite avatar Feb 10 '20 22:02 jamesmacwhite

Going to keep this open because it's still potentially something I may implement.

khalwat avatar Jul 18 '21 22:07 khalwat

Hands up for this feature 🙌

karensg avatar May 30 '23 08:05 karensg