Actions6
Overview
The node integrates with the Google Search Console API to manage sitemaps for verified websites. Specifically, the Submit Sitemap operation allows users to submit a sitemap URL to a selected verified site in their Google Search Console account. This is useful for notifying Google about new or updated sitemaps, which can help improve indexing and search visibility.
Common scenarios include:
- Automating sitemap submissions after website updates or deployments.
- Managing multiple verified sites and their sitemaps programmatically.
- Integrating sitemap submission into broader SEO workflows.
Example: After generating a new sitemap file at https://example.com/sitemap.xml, you can use this node to submit that sitemap to your verified site https://example.com/ in Google Search Console automatically.
Properties
| Name | Meaning |
|---|---|
| Site URL Mode | Choose how to specify the site URL: either pick from your verified sites or enter manually. |
| Site URL | The verified site URL selected from your Google Search Console properties (shown if mode is "Pick from My Verified Sites"). |
| Site URL (Manual) | Manually enter the verified site URL or domain property (e.g., https://example.com/ or sc-domain:example.com). |
| Sitemap URL | The full URL of the sitemap file you want to submit (e.g., https://example.com/sitemap.xml). |
Output
The output JSON object includes:
resource: Always"site"indicating the resource type.operation: Always"submitSitemap"indicating the performed operation.siteUrl: The site URL to which the sitemap was submitted.sitemapUrl: The submitted sitemap URL.success: A boolean flag (true) indicating successful submission.message: A confirmation string, e.g.,"Sitemap submitted successfully".
No binary data is output by this operation.
Example output JSON:
{
"resource": "site",
"operation": "submitSitemap",
"siteUrl": "https://example.com/",
"sitemapUrl": "https://example.com/sitemap.xml",
"success": true,
"message": "Sitemap submitted successfully"
}
Dependencies
- Requires valid authentication credentials for Google Search Console API access. This can be configured using either:
- An OAuth2 API credential.
- A Service Account credential with appropriate permissions.
- The node uses the Google Search Console REST API endpoint for sitemap submission.
- Network connectivity to Google's APIs is required.
Troubleshooting
- No site selected error: Occurs if the site URL is not provided or invalid. Ensure you select or enter a verified site URL.
- Sitemap URL is required error: Happens if the sitemap URL input is empty. Provide a valid sitemap URL.
- Authentication failed: Indicates issues with the configured credentials. Verify that the OAuth2 or Service Account credentials are correctly set up and have necessary scopes.
- API request failures: Could be due to network issues, permission problems, or invalid URLs. Check the error message details and ensure the site and sitemap URLs are correct and accessible.