Soenneker.Google.SearchIndex 11.0.2631

Prefix Reserved
dotnet add package Soenneker.Google.SearchIndex --version 11.0.2631
                    
NuGet\Install-Package Soenneker.Google.SearchIndex -Version 11.0.2631
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Google.SearchIndex" Version="11.0.2631" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Google.SearchIndex" Version="11.0.2631" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Google.SearchIndex" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Google.SearchIndex --version 11.0.2631
                    
#r "nuget: Soenneker.Google.SearchIndex, 11.0.2631"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Google.SearchIndex@11.0.2631
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Google.SearchIndex&version=11.0.2631
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Google.SearchIndex&version=11.0.2631
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.2631 153 11/19/2026
11.0.2630 91 11/18/2026
11.0.2629 93 11/18/2026
11.0.2628 93 11/18/2026
11.0.2627 96 11/18/2026
11.0.2626 110 11/15/2026
11.0.2625 104 11/15/2026
11.0.2624 137 11/11/2026
11.0.2623 100 11/11/2026
11.0.2622 105 11/11/2026
11.0.2621 99 11/11/2026
11.0.2620 92 11/11/2026
11.0.2619 92 11/11/2026
11.0.2618 98 11/11/2026
11.0.2617 102 11/11/2026
11.0.2616 101 11/10/2026
11.0.2615 175 11/4/2026
11.0.2614 99 11/3/2026
11.0.2613 96 11/3/2026
11.0.2612 94 11/3/2026
Loading failed

Updated Multiple NuGet packages