Soenneker.Google.SearchIndex
11.0.2624
Prefix Reserved
dotnet add package Soenneker.Google.SearchIndex --version 11.0.2624
NuGet\Install-Package Soenneker.Google.SearchIndex -Version 11.0.2624
<PackageReference Include="Soenneker.Google.SearchIndex" Version="11.0.2624" />
<PackageVersion Include="Soenneker.Google.SearchIndex" Version="11.0.2624" />
<PackageReference Include="Soenneker.Google.SearchIndex" />
paket add Soenneker.Google.SearchIndex --version 11.0.2624
#r "nuget: Soenneker.Google.SearchIndex, 11.0.2624"
#:package Soenneker.Google.SearchIndex@11.0.2624
#addin nuget:?package=Soenneker.Google.SearchIndex&version=11.0.2624
#tool nuget:?package=Soenneker.Google.SearchIndex&version=11.0.2624
Soenneker.Google.SearchIndex
Scoped URL-notification operations over a shared Google Indexing API client provider.
Install
dotnet add package Soenneker.Google.SearchIndex
Credential file
Place a Google service-account JSON file beneath LocalResources in the application output. The service account must be authorized for the target site.
<Content Include="LocalResources\google-indexing.json"
CopyToOutputDirectory="PreserveNewest" />
Register
using Soenneker.Google.SearchIndex.Registrars;
using Microsoft.Extensions.DependencyInjection;
services.AddGoogleSearchIndexUtilAsScoped();
This intentionally registers IGoogleSearchIndexUtil as scoped and IGoogleIndexingServiceUtil as singleton. Disposing a scope destroys the short-lived utility while the cached authenticated client remains available to later scopes.
AddGoogleSearchIndexUtilAsSingleton() is also available when the operation wrapper itself should be application-wide.
Publish and inspect a notification
PublishUrlNotificationResponse response = await searchIndex.AddUpdateIndex(
"https://example.com/jobs/software-engineer",
"URL_UPDATED",
"google-indexing.json",
cancellationToken);
UrlNotificationMetadata? metadata = await searchIndex.GetIndexStatus(
"https://example.com/jobs/software-engineer",
"google-indexing.json",
cancellationToken);
GetIndexStatus() returns notification metadata, not a general Google Search crawl or ranking status. This package does not decide whether a URL is eligible for the Indexing API.
API at a glance
| API | What it does | Result / important behavior |
|---|---|---|
AddUpdateIndex(jobUrl, action, fileName) |
Publishes a URL notification using the named service account. | Returns Google's publish response. |
GetIndexStatus(jobUrl, fileName) |
Retrieves the latest notification metadata for a URL. | Returns null only when Google responds that no metadata was found. |
Authentication, authorization, quota, transport, and other API failures propagate to the caller. Cancellation is not converted into a missing-status result.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Google.IndexingService (>= 11.0.2441)
- Soenneker.Utils.Method (>= 11.0.477)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.2624 | 92 | 11/11/2026 |
| 11.0.2623 | 80 | 11/11/2026 |
| 11.0.2622 | 82 | 11/11/2026 |
| 11.0.2621 | 75 | 11/11/2026 |
| 11.0.2620 | 71 | 11/11/2026 |
| 11.0.2619 | 72 | 11/11/2026 |
| 11.0.2618 | 82 | 11/11/2026 |
| 11.0.2617 | 86 | 11/11/2026 |
| 11.0.2616 | 85 | 11/10/2026 |
| 11.0.2615 | 165 | 11/4/2026 |
| 11.0.2614 | 91 | 11/3/2026 |
| 11.0.2613 | 90 | 11/3/2026 |
| 11.0.2612 | 88 | 11/3/2026 |
| 11.0.2611 | 90 | 11/3/2026 |
| 11.0.2610 | 114 | 10/30/2026 |
| 11.0.2609 | 98 | 10/29/2026 |
| 11.0.2608 | 116 | 10/27/2026 |
| 11.0.2607 | 94 | 10/27/2026 |
| 11.0.2606 | 96 | 10/27/2026 |
| 11.0.2605 | 105 | 10/27/2026 |
Updated Soenneker.Google.IndexingService to 11.0.2441