Node.js / TypeScript
Typed methods for every endpoint. Node.js 20 or newer.
npm install @waltrack/sdk
Call the Waltrack API from your language with typed methods, your key read from the environment and retries handled. Open source, under the MIT license.
Typed methods for every endpoint. Node.js 20 or newer.
npm install @waltrack/sdk
Blocking and asyncio clients. Python 3.11 or newer.
pip install waltrack
No dependencies outside the standard library. Go 1.22 or newer.
go get github.com/waltrack/waltrack-go
A parameter builder for each method. Java 17 or newer.
Not on Maven Central: build it from its repository with Maven.
waltrack/waltrack-javaTyped async methods. .NET 8 or newer.
dotnet add package Waltrack
Keyword arguments, standard library only. Ruby 3.1 or newer.
gem install waltrack
Works with any PSR-18 HTTP client. PHP 8.1 or newer.
composer require waltrack/sdk
Every endpoint as a command in your terminal. Node.js 20 or newer.
npm install -g @waltrack/cli
The hosted server's tools, run on your machine over stdio. Node.js 20 or newer.
npx -y @waltrack/mcp
Create an API key in your dashboard and set it as WALTRACK_API_KEY: every client reads it from there and sends it as a Bearer token. This script tracks a product, then reads its price history.
import { WaltrackClient } from "@waltrack/sdk";
// Reads your API key from WALTRACK_API_KEY.
const client = new WaltrackClient();
// Track a product and get its first price.
const { data: product } = await client.trackProduct({
product: "https://www.walmart.com/ip/17835006350",
wait: true,
});
console.log(product.title, product.price, product.currency);
// Its price history, oldest first.
const { data: tracked } = await client.getProduct({ id: product.product_id, days: 90 });
for (const point of tracked.history) console.log(point.checked_at, point.price);
// Any item ID's history, tracked or not, without using credits.
const { data: history } = await client.getItemHistory({ item_id: "17835006350" });
console.log(history.lowest_price, history.highest_price);from waltrack import WaltrackClient
# Reads your API key from WALTRACK_API_KEY.
with WaltrackClient() as client:
# Track a product and get its first price.
product = client.track_product(product="https://www.walmart.com/ip/17835006350", wait=True).data
print(product["title"], product["price"], product["currency"])
# Its price history, oldest first.
tracked = client.get_product(id=product["product_id"], days=90).data
for point in tracked["history"]:
print(point["checked_at"], point["price"])
# Any item ID's history, tracked or not, without using credits.
history = client.get_item_history(item_id="17835006350").data
print(history["lowest_price"], history["highest_price"])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 (TrackProduct), .NET with Async (TrackProductAsync), and Ruby the Python names.
| Node.js | Python | Endpoint | Does |
|---|---|---|---|
getAccount | get_account | GET /account | Plan and remaining credits |
searchWalmart | search_walmart | GET /search | Search Walmart |
getItemHistory | get_item_history | GET /history | Price history of any item ID |
listProducts | list_products | GET /products | List tracked products |
trackProduct | track_product | POST /products | Track a product |
getProduct | get_product | GET /products/{id} | Get a product and its price history |
updateProduct | update_product | PATCH /products/{id} | Change alerts and checks |
checkProduct | check_product | POST /products/{id}/check | Check the price now |
deleteProduct | delete_product | DELETE /products/{id} | Stop tracking a product |
clearTargetPrice | clear_target_price | PATCH /products/{id} | Remove a product's target price |
A failed request throws an error with the HTTP status and the API's error code, such as api_limit or product_limit: WaltrackApiError (status, errorCode) in Node.js, WaltrackAPIError (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, confirm your email and get 1500 free credits to try the API.