Hacker News new | ask | show | jobs
by xnx 883 days ago
This script abuses the Indexing API which is intended for job posting and other specific purposes. https://developers.google.com/search/apis/indexing-api/v3/qu...

Use at your own risk.

2 comments

Might simply not work for your website:

> Currently, the Indexing API can only be used to crawl pages with either JobPosting or BroadcastEvent embedded in a VideoObject.

I wanted to highlight (in addition to your statement) that JobPosting is a specific type of structured data.

If the target site doesn't have these elements, it may or may not work... or it may work for now, but not once they realized it's being used incorrectly

JobPosting structured data: https://developers.google.com/search/docs/appearance/structu...

> If you dont have content that falls into those categories, the API won't help you there.

https://www.youtube.com/watch?v=kvYb2bdtT7A&t=422s

IME it will silently drop and ignore anything that is not relevant.