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: CHANGELOG.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,29 @@
1
1
# google-indexing-script
2
2
3
+
## 0.2.0
4
+
5
+
### Minor Changes
6
+
7
+
-[#62](https://github.com/goenning/google-indexing-script/pull/62)[`93dd956`](https://github.com/goenning/google-indexing-script/commit/93dd956dca4065b97d6076db772560fba57aec50) Thanks [@hasanafzal8485](https://github.com/hasanafzal8485)! - Don't want the same URL use my API limit again until his previous cache limit is completed
8
+
9
+
## 0.1.0
10
+
11
+
### Minor Changes
12
+
13
+
-[#55](https://github.com/goenning/google-indexing-script/pull/55)[`908938a`](https://github.com/goenning/google-indexing-script/commit/908938a701d964b75331e322fbea8d77e6db976e) Thanks [@AntoineKM](https://github.com/AntoineKM)! - feat(get-publish-metadata): optional retries if rate limited
14
+
15
+
## 0.0.5
16
+
17
+
### Patch Changes
18
+
19
+
-[#44](https://github.com/goenning/google-indexing-script/pull/44)[`77b94ed`](https://github.com/goenning/google-indexing-script/commit/77b94edeef863721c07bd3e12d6d38052723f422) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Add site url checker
Copy file name to clipboardExpand all lines: README.md
+49-8Lines changed: 49 additions & 8 deletions
Display the source diff
Display the rich diff
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.
@@ -118,29 +120,68 @@ npm i google-indexing-script
118
120
```
119
121
120
122
```javascript
121
-
import { index } from'google-indexing-script'
122
-
importserviceAccountfrom'./service_account.json'
123
+
import { index } from"google-indexing-script";
124
+
importserviceAccountfrom"./service_account.json";
123
125
124
-
index('seogets.com', {
126
+
index("seogets.com", {
125
127
client_email:serviceAccount.client_email,
126
-
private_key:serviceAccount.private_key
128
+
private_key:serviceAccount.private_key,
127
129
})
128
130
.then(console.log)
129
-
.catch(console.error)
131
+
.catch(console.error);
130
132
```
131
133
132
134
Read the [API documentation](https://paka.dev/npm/google-indexing-script) for more details.
135
+
133
136
</details>
134
137
135
138
Here's an example of what you should expect:
136
139
137
140

138
141
139
142
> [!IMPORTANT]
143
+
>
140
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.
141
145
> - You can run the script as many times as you want. It will only index the pages that are not already indexed.
142
146
> - Sites with a large number of pages might take a while to index, be patient.
143
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
+
181
+
## 🔀 Alternative
182
+
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