@tmturtle/http-client
v2.0.0
Published
Typed HTTP client for the Trademark Turtle API
Downloads
109
Readme
Trademark Turtle HTTP Client
Typed access to Trademark Turtle search, identity lookup, text matching, bulk screening, account context, and service status.
Install
bun add @tmturtle/http-clientUse
import { createTmturtleClient } from "@tmturtle/http-client";
const client = createTmturtleClient({
apiKey: process.env.TMTURTLE_API_KEY!,
});
const results = await client.trademarks.search({
match: "both",
mode: "multi",
query: "turtle club",
status: "live",
});
const trademark = await client.trademarks.get({
serialNumber: "60146682",
});
const matches = await client.trademarks.match({
texts: [
{ id: "title", text: "Turtle Club shirt" },
{ id: "brand", text: "Quiet Supply" },
],
type: "all",
});Methods return promises directly. Named input and output types are derived from
the server router. TmturtleError is the stable error surface.
See the HTTP API reference for authorization, pagination, matching, screening, and error contracts.
