from Hacker News

Show HN: Open-source script to get your site indexed on Google

by goenning on 1/24/24, 11:49 AM with 61 comments

  • by xnx on 1/24/24, 3:05 PM

    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.

  • by adaboese on 1/24/24, 4:07 PM

    The annoying thing about this is that it will ruin this feature for everyone else. I, and many others, use this for requesting to index time sensitive content.
  • by AznHisoka on 1/24/24, 5:35 PM

    Another easy way is to just tweet it, which works for me - they usually get indexed < 1 hour later. Google has access to tweets and the URLs in those tweets.
  • by gasparto on 1/24/24, 3:32 PM

    What happend to the good'ol sitemap.xml?

    You'll probably find an npm package with lots of dependencies that'll generate that sitemap for you if that's what you need...

  • by mortallywounded on 1/24/24, 2:41 PM

    Is this any different from logging into the Google search console and submitting your sitemap/index request?
  • by dakiol on 1/24/24, 5:23 PM

    Is there something for the opposite? I don't want google (or any other scrapper) to index my website. Afaik, robots.txt is not authoritative.
  • by ahmedfromtunis on 1/24/24, 3:12 PM

    From Indexing API documentation:

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

    So this might come with the risk of seeing the site you want to boost rather penalized by Google.

  • by mvkel on 1/24/24, 4:55 PM

    I recently launched a mini project and was shocked at how difficult and long it took to get any of its pages properly indexed on Google.

    It's almost as if Google is actively trying -not- to index anything as a way to reduce spam, by forcing the people who really care to jump through 100 hoops.

    A great way for the dark web remains dark.

  • by leros on 1/24/24, 6:13 PM

    I just submit a sitemap URL to Google Search Console Tools. Is this any different?
  • by ninefoxgambit on 1/26/24, 1:51 AM

    I’ve seen a lot of indie startups lately that are basically selling faster google indexing then you can get for free using google search console. I guess they are probably using this feature under the hood.
  • by dewey on 1/24/24, 4:11 PM

    I've seen some people even wrapping and re-selling this as SaaS.
  • by nhggfu on 1/24/24, 6:01 PM

    "to get your site indexed" => a nonsense claim

    + this technique might make engines aware of your content, but doesn't guarantee indexation whatsoever.

  • by cranberryturkey on 1/27/24, 7:59 AM

    or just submit a sitemap.xml via google console.
  • by ChrisArchitect on 1/24/24, 4:54 PM

    ? "what I've noticed"...Google only indexing if a site has backlinks or is submitted by owner. Uh..yeah, how else would google know about a new URL? C'mon. This just seems like the usual SEO obsession/grift with some 'secret' way to get things done. It's straightfwd these days. Are you saying none of the pages you're queuing up are linked to each other? Most cases they would be in some way right? So the spider will start indexing them all based on a top url submission or a few key urls. Do event/job board sites really need all of their pages to be indexed immediately?
  • by navigate8310 on 1/24/24, 3:03 PM

    So, Google stopped automating indexation because spam, humanity finds new way to resume automation to again propagate spam. It seems Google is trapped in its toxic game of search engine optimization.