Free API Client packages
About Market API
Market API almost completely repeats WEB requests. Query parameters match. The only differences are the presence of PUT and DELETE methods.https://lzt.market/123456789/tag/add?tag_id=10
For example, a request to add a tag to an account on the WEB looks like this: lzt.market/market/{item_id}/tag/add?tag_id={tag_id}
, and an API request looks like this: prod-api.lzt.market/{item_id}/tag/add?tag_id={tag_id}
.
Rate limit
300 requests per minute (0.2 second delay between requests) If you exceed the limit, you will receive an error message and response code 429.
Requests timeout
It's highly recommended to set the request timeout to 300+ seconds, because certain methods can take a long time to be processed.
Authorization & Token configuration
For using this API you need to create API Client and get Access Token with market scope.
You must pass the token in the request headers
- Header: "Authorization: Bearer *token*"
Status codes
Code | Name | Description |
---|---|---|
200 | OK | The request was successfully completed. |
400 | Bad Request | The request is invalid due to client error. |
401 | Unauthorized | Authentication is required. |
403 | Forbidden | You do not have permission to view this page or perform this action. |
429 | Too Many Requests | Too many requests in a short period. |
500 | Internal Server Error | An internal server error occurred, try again later or report it here. |
502 | Bad Gateway | The gateway encountered an error while processing the request, try again later. |
503 | Service Unavailable | The server is temporarily unavailable, try again later. |
504 | Gateway Timeout | The gateway timed out waiting for a response, try again later. |
SSL Verification Errors
If you encounter an SSL verification error, disable SSL/TLS certificate verification in your http client.
Common Parameters
i18n
All API requests accept locale parameter to switch user facing messages to specified language. The value must be a valid language code (ISO 639-1) with optional inclusion of a valid country code (ISO 3166-1 alpha 2) separated by a hyphen ("-"). If no complete match can be found, a language with the same language code (even with different country code) will be used. In the worst case that there are no installed languages of requested language code, the default language will be used.
Fields filtering
For API method with resource data like a forum or a thread, the data can be filtered to get interested fields only. The general format is "key.sub_key.deep_key" if you want to include/exclude a specific field. The including rules take precedence over excluding ones.
- fields_include: comma-separated list of fields of a resource. For additional fields, it is possible to use wildcard (*****) to include all default fields before specifying additional ones.
- fields_exclude: comma-separated list of fields of a resource to exclude in the response. It is possible to use wildcard as a prefix (e.g. "*.key") to exclude the field everywhere.
Content-Type
API always returns the response as application/json
(With few exceptions).
You should send requests to API with application/json
or application/x-www-form-urlencoded
content type.
Is for free access?
To use the Market API, you need to have 200 sympathies, or you can purchase a monthly subscription here.
OpenAPI JSON
You can import the API into Postman using this file.