[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73503":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},73503,"google-indexing-script","goenning\u002Fgoogle-indexing-script","goenning","Script to get your site indexed on Google in less than 48 hours","https:\u002F\u002Fseogets.com",null,"TypeScript",7654,547,27,15,0,3,5,23,9,39.22,"MIT License",false,"main",[26,27,28],"google","indexing","seo","2026-06-12 02:03:14","# Google Indexing Script\n\nUse this script to get your entire site indexed on Google in less than 48 hours. No tricks, no hacks, just a simple script and a Google API.\n\n> [!IMPORTANT]\n>\n> 1. This script uses [Google Indexing API](https:\u002F\u002Fdevelopers.google.com\u002Fsearch\u002Fapis\u002Findexing-api\u002Fv3\u002Fquickstart) and it only works on pages with either `JobPosting` or `BroadcastEvent` structured data.\n> 2. Indexing != Ranking. This will not help your page rank on Google, it'll just let Google know about the existence of your pages.\n\n## Requirements\n\n- Install [Node.js](https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload)\n- An account on [Google Search Console](https:\u002F\u002Fsearch.google.com\u002Fsearch-console\u002Fabout) with the verified sites you want to index\n- An account on [Google Cloud](https:\u002F\u002Fconsole.cloud.google.com\u002F)\n\n## Preparation\n\n1. Follow this [guide](https:\u002F\u002Fdevelopers.google.com\u002Fsearch\u002Fapis\u002Findexing-api\u002Fv3\u002Fprereqs) from Google. By the end of it, you should have a project on Google Cloud with the Indexing API enabled, a service account with the `Owner` permission on your sites.\n2. Make sure you enable both [`Google Search Console API`](https:\u002F\u002Fconsole.cloud.google.com\u002Fapis\u002Fapi\u002Fsearchconsole.googleapis.com) and [`Web Search Indexing API`](https:\u002F\u002Fconsole.cloud.google.com\u002Fapis\u002Fapi\u002Findexing.googleapis.com) on your [Google Project ➤ API Services ➤ Enabled API & Services](https:\u002F\u002Fconsole.cloud.google.com\u002Fapis\u002Fdashboard).\n3. [Download the JSON](https:\u002F\u002Fgithub.com\u002Fgoenning\u002Fgoogle-indexing-script\u002Fissues\u002F2) file with the credentials of your service account and save it in the same folder as the script. The file should be named `service_account.json`\n\n## Installation\n\n### Using CLI\n\nInstall the cli globally on your machine.\n\n```bash\nnpm i -g google-indexing-script\n```\n\n### Using the repository\n\nClone the repository to your machine.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fgoenning\u002Fgoogle-indexing-script.git\ncd google-indexing-script\n```\n\nInstall and build the project.\n\n```bash\nnpm install\nnpm run build\nnpm i -g .\n```\n\n> [!NOTE]\n> Ensure you are using an up-to-date Node.js version, with a preference for v20 or later. Check your current version with `node -v`.\n\n## Usage\n\n\u003Cdetails open>\n\u003Csummary>With \u003Ccode>service_account.json\u003C\u002Fcode> \u003Ci>(recommended)\u003C\u002Fi>\u003C\u002Fsummary>\n\nCreate a `.gis` directory in your home folder and move the `service_account.json` file there.\n\n```bash\nmkdir ~\u002F.gis\nmv service_account.json ~\u002F.gis\n```\n\nRun the script with the domain or url you want to index.\n\n```bash\ngis \u003Cdomain or url>\n# example\ngis seogets.com\n```\n\nHere are some other ways to run the script:\n\n```bash\n# custom path to service_account.json\ngis seogets.com --path \u002Fpath\u002Fto\u002Fservice_account.json\n# long version command\ngoogle-indexing-script seogets.com\n# cloned repository\nnpm run index seogets.com\n```\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>With environment variables\u003C\u002Fsummary>\n\nOpen `service_account.json` and copy the `client_email` and `private_key` values.\n\nRun the script with the domain or url you want to index.\n\n```bash\nGIS_CLIENT_EMAIL=your-client-email GIS_PRIVATE_KEY=your-private-key gis seogets.com\n```\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>With arguments \u003Ci>(not recommended)\u003C\u002Fi>\u003C\u002Fsummary>\n\nOpen `service_account.json` and copy the `client_email` and `private_key` values.\n\nOnce you have the values, run the script with the domain or url you want to index, the client email and the private key.\n\n```bash\ngis seogets.com --client-email your-client-email --private-key your-private-key\n```\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>As a npm module\u003C\u002Fsummary>\n\nYou can also use the script as a [npm module](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fgoogle-indexing-script) in your own project.\n\n```bash\nnpm i google-indexing-script\n```\n\n```javascript\nimport { index } from \"google-indexing-script\";\nimport serviceAccount from \".\u002Fservice_account.json\";\n\nindex(\"seogets.com\", {\n  client_email: serviceAccount.client_email,\n  private_key: serviceAccount.private_key,\n})\n  .then(console.log)\n  .catch(console.error);\n```\n\nRead the [API documentation](https:\u002F\u002Fjsdocs.io\u002Fpackage\u002Fgoogle-indexing-script) for more details.\n\n\u003C\u002Fdetails>\n\nHere's an example of what you should expect:\n\n![](.\u002Foutput.png)\n\n> [!IMPORTANT]\n>\n> - Your site must have 1 or more sitemaps submitted to Google Search Console. Otherwise, the script will not be able to find the pages to index.\n> - You can run the script as many times as you want. It will only index the pages that are not already indexed.\n> - Sites with a large number of pages might take a while to index, be patient.\n\n## Quota\n\nDepending on your account several quotas are configured for the API (see [docs](https:\u002F\u002Fdevelopers.google.com\u002Fsearch\u002Fapis\u002Findexing-api\u002Fv3\u002Fquota-pricing#quota)). By default the script exits as soon as the rate limit is exceeded. You can configure a retry mechanism for the read requests that apply on a per minute time frame.\n\n\u003Cdetails>\n\u003Csummary>With environment variables\u003C\u002Fsummary>\n\n```bash\nexport GIS_QUOTA_RPM_RETRY=true\n```\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>As a npm module\u003C\u002Fsummary>\n\n```javascript\nimport { index } from 'google-indexing-script'\nimport serviceAccount from '.\u002Fservice_account.json'\n\nindex('seogets.com', {\n  client_email: serviceAccount.client_email,\n  private_key: serviceAccount.private_key\n  quota: {\n    rpmRetry: true\n  }\n})\n  .then(console.log)\n  .catch(console.error)\n```\n\n\u003C\u002Fdetails>\n\n## 📄 License\n\nMIT License\n\n## 💖 Sponsor\n\nThis project is sponsored by [SEO Gets](https:\u002F\u002Fseogets.com)\n\n![](https:\u002F\u002Fseogets.com\u002Fog.png)\n","该项目是一个用于在48小时内让您的网站被Google索引的脚本。它基于TypeScript编写，利用了Google Indexing API来加速网页索引过程，特别适用于含有`JobPosting`或`BroadcastEvent`结构化数据的页面。此脚本不会直接影响网站在搜索结果中的排名，但能确保Google快速发现新发布的网页内容。适合于SEO优化人员、网站管理员以及希望提高自身网站可见度的开发者使用。用户需要具备Node.js环境，并通过Google Search Console和Google Cloud创建必要的API服务账号以启用相关API权限。",2,"2026-06-11 03:45:53","high_star"]