Node.js / TypeScript
Typed methods for every endpoint. Node.js 20 or newer.
npm install @ohspotted/sdk
Typed methods for every endpoint. Node.js 20 or newer.
npm install @ohspotted/sdk
Blocking and asyncio clients. Python 3.11 or newer.
pip install ohspotted
No dependencies outside the standard library. Go 1.22 or newer.
go get github.com/ohspotted/ohspotted-go
A parameter builder for each method. Java 17 or newer.
Not on Maven Central: build it from its repository with Maven.
ohspotted/ohspotted-javaTyped async methods. .NET 8 or newer.
dotnet add package OhSpotted
Keyword arguments, standard library only. Ruby 3.1 or newer.
gem install ohspotted
Works with any PSR-18 HTTP client. PHP 8.1 or newer.
composer require ohspotted/sdk
Every endpoint as a command in your terminal. Node.js 20 or newer.
npm install -g @ohspotted/cli
The hosted server's tools, run on your machine over stdio. Node.js 20 or newer.
npx -y @ohspotted/mcp
Create an API key in your dashboard and set it as OHSPOTTED_API_KEY: every client reads it from there and sends it as a Bearer token. This script follows a LinkedIn page, then reads what changed on your pages.
import { OhSpottedClient } from "@ohspotted/sdk";
// Reads your API key from OHSPOTTED_API_KEY.
const client = new OhSpottedClient();
// Follow a LinkedIn page: its first read takes the starting picture.
const { data: target } = await client.addTarget({ url: "https://www.linkedin.com/company/linkedin" });
console.log(target.id, target.name, target.status);
// What changed on all your pages since, newest first (pages are read once a day).
const { data: feed } = await client.listSignals({ unread: 1, limit: 20 });
for (const signal of feed.signals) console.log(signal.target_name, signal.kind, signal.after);
// Your credits, and how many pages you can still follow.
const { data: usage } = await client.getUsage();
console.log(usage.credits, usage.targets, usage.target_limit);from ohspotted import OhSpottedClient
# Reads your API key from OHSPOTTED_API_KEY.
with OhSpottedClient() as client:
# Follow a LinkedIn page: its first read takes the starting picture.
target = client.add_target(url="https://www.linkedin.com/company/linkedin").data
print(target["id"], target["name"], target["status"])
# What changed on all your pages since, newest first (pages are read once a day).
feed = client.list_signals(unread=1, limit=20).data
for signal in feed["signals"]:
print(signal["target_name"], signal["kind"], signal["after"])
# Your credits, and how many pages you can still follow.
usage = client.get_usage().data
print(usage["credits"], usage["targets"], usage["target_limit"])One method per endpoint, named after its operation in the API reference, with the same parameter names. Java and PHP use the Node.js names, Go the same in PascalCase (AddTarget), .NET with Async (AddTargetAsync), and Ruby the Python names.
| Node.js | Python | Endpoint | Does |
|---|---|---|---|
getUsage | get_usage | GET /usage | Get your plan and credits |
listTargets | list_targets | GET /targets | List the pages you follow |
addTarget | add_target | POST /targets | Follow a page |
getTarget | get_target | GET /targets/{id} | Get a page you follow |
updateTarget | update_target | PATCH /targets/{id} | Pause, resume, mute or mark a page as seen |
removeTarget | remove_target | DELETE /targets/{id} | Stop following a page |
listTargetSignals | list_target_signals | GET /targets/{id}/signals | Read what changed on a page |
listSignals | list_signals | GET /signals | Read what changed on all your pages |
markSignalsSeen | mark_signals_seen | POST /signals/seen | Mark everything as seen |
A failed request throws an error with the HTTP status and the API's error code, such as no_credits or target_limit: OhSpottedApiError (status, errorCode) in Node.js, OhSpottedAPIError (status, error_code) in Python. Network errors and 408, 500, 502, 503 and 504 answers are retried up to 3 times; 429 and other errors aren't, since rate limits last until the hour is over.
Create an account and get your free credits to try the API.