You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+45-6Lines changed: 45 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@ Use this script to get your entire site indexed on Google in less than 48 hours.
4
4
5
5
You can read more about the motivation behind it and how it works in this blog post https://seogets.com/blog/google-indexing-script
6
6
7
-
> [!IMPORTANT]
7
+
> [!IMPORTANT]
8
+
>
8
9
> 1. Indexing != Ranking. This will not help your page rank on Google, it'll just let Google know about the existence of your pages.
9
10
> 2. This script uses [Google Indexing API](https://developers.google.com/search/apis/indexing-api/v3/quickstart). We do not recommend using this script on spam/low-quality content.
@@ -116,29 +120,64 @@ npm i google-indexing-script
116
120
```
117
121
118
122
```javascript
119
-
import { index } from'google-indexing-script'
120
-
importserviceAccountfrom'./service_account.json'
123
+
import { index } from"google-indexing-script";
124
+
importserviceAccountfrom"./service_account.json";
121
125
122
-
index('seogets.com', {
126
+
index("seogets.com", {
123
127
client_email:serviceAccount.client_email,
124
-
private_key:serviceAccount.private_key
128
+
private_key:serviceAccount.private_key,
125
129
})
126
130
.then(console.log)
127
-
.catch(console.error)
131
+
.catch(console.error);
128
132
```
129
133
130
134
Read the [API documentation](https://paka.dev/npm/google-indexing-script) for more details.
135
+
131
136
</details>
132
137
133
138
Here's an example of what you should expect:
134
139
135
140

136
141
137
142
> [!IMPORTANT]
143
+
>
138
144
> - 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.
139
145
> - You can run the script as many times as you want. It will only index the pages that are not already indexed.
140
146
> - Sites with a large number of pages might take a while to index, be patient.
141
147
148
+
## Quota
149
+
150
+
Depending on your account several quotas are configured for the API (see [docs](https://developers.google.com/search/apis/indexing-api/v3/quota-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.
151
+
152
+
<details>
153
+
<summary>With environment variables</summary>
154
+
155
+
```bash
156
+
export GIS_QUOTA_RPM_RETRY=true
157
+
```
158
+
159
+
</details>
160
+
161
+
<details>
162
+
<summary>As a npm module</summary>
163
+
164
+
```javascript
165
+
import { index } from'google-indexing-script'
166
+
importserviceAccountfrom'./service_account.json'
167
+
168
+
index('seogets.com', {
169
+
client_email:serviceAccount.client_email,
170
+
private_key:serviceAccount.private_key
171
+
quota: {
172
+
rpmRetry:true
173
+
}
174
+
})
175
+
.then(console.log)
176
+
.catch(console.error)
177
+
```
178
+
179
+
</details>
180
+
142
181
## 🔀 Alternative
143
182
144
183
If you prefer a hands-free, and less technical solution, you can use a SaaS platform like [TagParrot](https://tagparrot.com/?via=goenning).
0 commit comments