Add marketplace keys
Set the API keys that turn each marketplace on, and confirm them with the health tool.
Each Marketplace runs when its key is set in .env or in the environment. The server reads .env from the repository root at start, so restart it after a change.
Steps#
Open
.envand set the keys you hold.Key Turns on Where to get it APIFY_TOKENtaobao,tmall,jd,1688,amazon_au,ebay_sold,woolworths,coles,aldi,gumtree, andsearch_by_imageApify console, Integrations EBAY_APP_IDandEBAY_CERT_IDebay_au, and liveebay_audetaileBay developer program TMAPI_TOKEN1688through TMAPI, and detail fortaobao,tmall,1688,jd,pddTMAPI console SOCIAVAULT_API_KEYfacebookSociaVault KEEPA_API_KEYandKEEPA_DOMAINget_price_historyKeepa GUMTREE_COOKIESgumtree, withAPIFY_TOKENCookies exported from a browser session on gumtree.com.au - Restart the server.
Call
health. A marketplace with its key set reports"missing": null.{ "ebay_au": { "ready": true, "missing": null, "source": "eBay Browse API", "status": "unverified" } }Run one live search for the marketplaces you turned on. Each Apify lane starts one actor run, which spends Apify credits.
uv run python scripts/live_smoke.py ebay_au jd
Key notes#
EBAY_CLIENT_ID,EBAY_CLIENT_SECRETandTMAPI_API_TOKENare accepted as other names for the eBay and TMAPI keys.EBAY_OAUTH_TOKENholds a bearer token you fetched yourself. With it set, the server skips the client-credentials call.1688uses TMAPI whenTMAPI_TOKENis set, and the Apify actor otherwise.KEEPA_DOMAINhas no default. Keepa's official clients list domain ids 1 to 12 and none is Australia. Set the id that your Keepa account documents for amazon.com.au.gumtreestaysdegradedinhealthand is never counted inready_count. WithoutGUMTREE_COOKIESit returns adegradeddiagnostic, because Gumtree blocks the actor.healthshows key names only. It prints no key values.
Errors#
| Diagnostic | Cause | Fix |
|---|---|---|
[ebay_au] not configured: set EBAY_APP_ID and EBAY_CERT_ID | The key is unset or empty. | Set the named variable and restart. |
TMAPI error 4013: API not subscribed; subscribe at console.tmapi.io, APIs List | TMAPI answered 401. | Subscribe to the API in the TMAPI console. |
actor <name>: ... with code quota | The Apify actor reported its free runs or credit as used up. | Add credit in Apify, or set another actor in the *_APIFY_ACTOR setting. |