Soenneker.Google.SearchIndex
4.0.2596
Prefix Reserved
dotnet add package Soenneker.Google.SearchIndex --version 4.0.2596
NuGet\Install-Package Soenneker.Google.SearchIndex -Version 4.0.2596
<PackageReference Include="Soenneker.Google.SearchIndex" Version="4.0.2596" />
<PackageVersion Include="Soenneker.Google.SearchIndex" Version="4.0.2596" />
<PackageReference Include="Soenneker.Google.SearchIndex" />
paket add Soenneker.Google.SearchIndex --version 4.0.2596
#r "nuget: Soenneker.Google.SearchIndex, 4.0.2596"
#:package Soenneker.Google.SearchIndex@4.0.2596
#addin nuget:?package=Soenneker.Google.SearchIndex&version=4.0.2596
#tool nuget:?package=Soenneker.Google.SearchIndex&version=4.0.2596
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 | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Google.IndexingService (>= 4.0.2413)
- Soenneker.Utils.Method (>= 4.0.473)
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 |
|---|---|---|
| 4.0.2596 | 129 | 10/15/2026 |
| 4.0.2595 | 82 | 10/15/2026 |
| 4.0.2594 | 84 | 10/15/2026 |
| 4.0.2593 | 93 | 10/14/2026 |
| 4.0.2592 | 86 | 10/14/2026 |
| 4.0.2590 | 94 | 10/14/2026 |
| 4.0.2589 | 86 | 10/14/2026 |
| 4.0.2582 | 81 | 10/13/2026 |
| 4.0.2581 | 94 | 10/12/2026 |
| 4.0.2579 | 89 | 10/12/2026 |
| 4.0.2578 | 91 | 10/12/2026 |
| 4.0.2577 | 93 | 10/12/2026 |
| 4.0.2576 | 88 | 10/12/2026 |
| 4.0.2575 | 97 | 10/12/2026 |
| 4.0.2574 | 94 | 10/11/2026 |
| 4.0.2573 | 95 | 10/11/2026 |
| 4.0.2572 | 92 | 10/11/2026 |
| 4.0.2571 | 139 | 9/30/2026 |
| 4.0.2570 | 96 | 9/30/2026 |
| 4.0.2569 | 104 | 9/30/2026 |
Update dependency Soenneker.Google.IndexingService to 4.0.2412 (#3151)