Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Every call is a GET with the token as a query parameter.
- Check the code field of the response body, not the HTTP status: 0 is success, 100 invalid token, 302 rate limit, 303 daily quota exceeded, 400 invalid parameters, 601 insufficient balance.
- Docs recommend a client timeout of 120 seconds (at least 60).
- Paging differs per endpoint: page, cursor, offset, paginationToken or nextToken.
- The full catalog has hundreds of endpoints (Douyin, Taobao, Bilibili and more); this file names the social ones.