OhSpotted 0.1.0

dotnet add package OhSpotted --version 0.1.0
                    
NuGet\Install-Package OhSpotted -Version 0.1.0
                    
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="OhSpotted" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OhSpotted" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="OhSpotted" />
                    
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 OhSpotted --version 0.1.0
                    
#r "nuget: OhSpotted, 0.1.0"
                    
#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 OhSpotted@0.1.0
                    
#: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=OhSpotted&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=OhSpotted&version=0.1.0
                    
Install as a Cake Tool

OhSpotted .NET SDK

The official .NET SDK for the OhSpotted LinkedIn change tracking API.

Follow public LinkedIn profiles, company pages and jobs, and read what changed on them as signals, checked once a day.

The SDK exposes 9 typed async methods, one per documented endpoint (with required properties checked at compile time), plus a generic RequestAsync.

Requirements

  • .NET 8 or newer

Installation

dotnet add package OhSpotted

Get your API key

Sign up for OhSpotted or sign in, then copy your API key from the dashboard. new OhSpottedClient() reads the OHSPOTTED_API_KEY environment variable.

Quick start

using OhSpotted;

using var client = new OhSpottedClient();
var response = await client.AddTargetAsync(new AddTargetParams { Url = "https://www.linkedin.com/company/linkedin" });
Console.WriteLine(response.Json);

Parameter classes mirror the API reference. Use response.Deserialize<MyType>() to map the JSON onto your own types.

HTTP methods

Each method uses the HTTP verb of its endpoint. GET and DELETE send parameters in the query string; POST and PATCH send them as a JSON body. Null values are never sent.

Any endpoint

var response = await client.RequestAsync("GET", "/account");

Errors

try
{
    await client.AddTargetAsync(new AddTargetParams { Url = "https://www.linkedin.com/company/linkedin" });
}
catch (OhSpottedApiException exception)
{
    Console.Error.WriteLine($"{exception.StatusCode} {exception.ErrorCode}: {exception.Message}");
}

ErrorCode is the API's error.code (such as no_credits, target_limit or not_found), or null when the body has none.

Exception When
OhSpottedConfigurationException Missing API key, invalid options or unsupported method.
OhSpottedSerializationException A required parameter is missing or a value can't be sent.
OhSpottedTransportException Network failure or timeout.
OhSpottedApiException Non-2xx status (StatusCode, ErrorMessage, ErrorCode, ResponseBody, RawResponse).
OhSpottedResponseDecodingException A success response could not be decoded.

All of them derive from OhSpottedException. Caller cancellation surfaces as OperationCanceledException.

Retries

Requests are retried up to 3 times after a network error, a 408, 500, 502, 503 or 504. Other statuses, such as 400, 401, 402, 404 or 429, and client-side timeouts are not retried: the API's rate limits last until the hour (or the day) is over, and on the free plan every retry would count as a request. The delay starts at 1 second and grows 1.5× per retry (capped at 30 seconds); a Retry-After header wins.

using var client = new OhSpottedClient(new OhSpottedClientOptions { MaxRetries = 5, RetryDelay = TimeSpan.FromMilliseconds(500) });
await client.AddTargetAsync(new AddTargetParams { Url = "https://www.linkedin.com/company/linkedin" }, new RequestOptions { MaxRetries = 0 }); // one request without retries

Batch requests

BatchAsync runs a function per item with at most 10 in flight (concurrency) and returns one BatchResult per item, in input order. A failing item never stops the others.

string[] inputs = { "https://www.linkedin.com/company/linkedin", "https://www.linkedin.com/company/microsoft", "https://www.linkedin.com/company/github" };
var results = await client.BatchAsync(inputs, (value, ct) =>
    client.AddTargetAsync(new AddTargetParams { Url = value }, cancellationToken: ct), concurrency: 5);
foreach (var result in results)
{
    if (result.Ok)
    {
        Console.WriteLine(result.Value!.Json);
    }
    else
    {
        Console.Error.WriteLine($"{inputs[result.Index]}: {result.Error!.Message}");
    }
}
Constant Default Description
OhSpottedClient.DefaultConcurrency 10 Tasks run at the same time by batch
OhSpottedClient.DefaultTimeout TimeSpan.FromSeconds(120) Request timeout
OhSpottedClient.MaxRetries 3 Retry attempts after a network error, a 408/5xx
OhSpottedClient.RetryBackoffFactor 1.5 Exponential backoff multiplier
OhSpottedClient.DefaultRetryDelay TimeSpan.FromSeconds(1) Delay before the first retry

Configuration

using var client = new OhSpottedClient(new OhSpottedClientOptions
{
    ApiKey = Environment.GetEnvironmentVariable("OHSPOTTED_API_KEY"),
    Timeout = TimeSpan.FromSeconds(60), // default 120 s
    HttpClient = myHttpClient,           // optional, you keep ownership
});

Endpoints

9 methods, generated from the OpenAPI document.

Method HTTP Description
AddTargetAsync POST /targets Adds a LinkedIn profile, company page or job to the list. The first read happens shortly after, usually within minutes, and only takes the…
GetTargetAsync GET /targets/{id} One target, with its latest signal.
GetUsageAsync GET /usage The plan, the credits left, how many pages are followed and how many the plan allows, and the credits the active pages use in 30 days. Ever…
ListSignalsAsync GET /signals The signals found on every page of the list since each was added, newest first: the same as The Tea in the app.
ListTargetSignalsAsync GET /targets/{id}/signals The signals found on one page since the account added it, newest first. A signal is a change between two daily reads: nothing is found betw…
ListTargetsAsync GET /targets The account's list, newest first, with each page's state and its latest signal. A target is a LinkedIn profile, company page or job followe…
MarkSignalsSeenAsync POST /signals/seen Marks every signal found so far as seen, on every page of the list. No body is needed. For one page, send seen: true to PATCH /targets/{id}.
RemoveTargetAsync DELETE /targets/{id} Takes the page off the list. Its signals are no longer shown to the account; nothing else changes for the people who follow it too.
UpdateTargetAsync PATCH /targets/{id} Send paused, muted and/or seen. A paused page isn't read and costs nothing; a muted page is still read and its signals are kept, but it isn…

All OhSpotted SDKs

SDK Package Install
Node.js @ohspotted/sdk npm install @ohspotted/sdk
Python ohspotted pip install ohspotted
Go ohspotted-go go get github.com/ohspotted/ohspotted-go
.NET OhSpotted dotnet add package OhSpotted
Ruby ohspotted gem install ohspotted
PHP ohspotted/sdk composer require ohspotted/sdk
Java ohspotted-java build from source, see its README
CLI @ohspotted/cli npm install -g @ohspotted/cli
MCP server @ohspotted/mcp npx -y @ohspotted/mcp

Trademarks

LinkedIn® is a registered trademark of LinkedIn Corporation. OhSpotted is not affiliated with, endorsed or sponsored by LinkedIn.

License

MIT — see LICENSE.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

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
0.1.0 0 12/5/2026