Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olegkorol/get-indexed
A Deno-based tool for submitting URLs to Google's Indexing API and checking their indexing status.
https://github.com/olegkorol/get-indexed
deno gcp google-cloud-platform google-search-api seo
Last synced: 14 days ago
JSON representation
A Deno-based tool for submitting URLs to Google's Indexing API and checking their indexing status.
- Host: GitHub
- URL: https://github.com/olegkorol/get-indexed
- Owner: olegkorol
- Created: 2024-11-01T11:42:52.000Z (14 days ago)
- Default Branch: main
- Last Pushed: 2024-11-01T11:51:04.000Z (14 days ago)
- Last Synced: 2024-11-01T12:26:50.628Z (14 days ago)
- Topics: deno, gcp, google-cloud-platform, google-search-api, seo
- Language: TypeScript
- Homepage: https://www.koiztech.com
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Get Indexed
A Deno-based tool for submitting URLs to Google's Indexing API and checking their indexing status.
## Features
- Parse XML sitemaps (including sitemap index files) to extract URLs
- Submit URLs to Google's Indexing API for indexing/updating
- Check indexing status of submitted URLs
- Support for both single sitemaps and sitemap index files## Prerequisites
- [Deno](https://deno.land/) installed
- Google Search Console API access
- Service account credentials with Indexing API permissions## Setup
1. Create a service account in Google Cloud Console
2. The Indexing API is enabled by default – no need to attach any policies to the service account
3. Download the service account credentials JSON file
4. Place the credentials file as `service-account.json` in the project root
5. Head over to the Google Search Console and add the email of the service account as a user (with "Owner" access)## Usage
1. Update the `sitemapUrls` array in `main.ts` with your sitemap URL(s):
```typescript
// main.tsconst sitemapUrls = [
'https://example.org/sitemap.xml',
]// Sitemap index files are supported as well:
const sitemapUrls = [
'https://example.org/sitemap-index.xml',
]
```2. Run the script:
```bash
deno run start
```## To-do
- Add support for more Search Engines