SPB Git forge

spb/rareindex

Public
54commits 1branches 0releases
7.1 MBsize
maindefault branch
10 days agolast push
TypeScript 61.9% HTML 37.2% SQL 0.7%
1.1 KB · 17 lines markdown
Rendered Raw Blame History
1# trademe — Trade Me API (New Zealand, gated)23`GET https://api.trademe.co.nz/v1/Search/General.json?category=<number>&rows=25&page=N` with4application-only OAuth 1.0a PLAINTEXT (`Authorization: OAuth oauth_consumer_key="…",5oauth_signature_method="PLAINTEXT", oauth_signature="<secret>&"`). Env: `TRADEME_CONSUMER_KEY`,6`TRADEME_CONSUMER_SECRET`, optional `TRADEME_ENV=sandbox` (api.tmsandbox.co.nz).78- Category numbers from the public `/v1/Categories.json` tree (Antiques & collectables subtrees, vintage9  toys, die-cast, Lego, trading cards, vinyl, watches, pottery & glass, rare books, comics, film cameras).10- NZD `listing`: Buy Now price / leading bid / start price; `listingType` auction vs fixed_price vs ask;11  `.NET /Date(ms)/` → `listedAt`/`endsAt`; `bidCount`; region/suburb as location.12- Cursor `{seedIndex}` rotates categories; identifier `trademe_listing_id`.13- Fixture synthesised from the documented response fields (no key yet).1415Credentials: https://developer.trademe.co.nz → Register an application (production apps reviewed by16Trade Me); rate limit counted per hour, HTTP 429 when exceeded.17