Overview
The Bencha API predicts what a second-hand product will sell for. Describe a product by its brand, category, condition and other attributes, and get back a price in the currency you choose. Brand and category search help you match your own product data to the brands and categories the models know.
Getting Started
Make your first price prediction in a few minutes.
Authentication
Create an API key and send it with your requests.
Predict
Predict a price, one product at a time or in bulk.
Search
Find brands and categories, and their IDs.
Base URL
https://api.bencha.io/v1Conventions
- Every endpoint is a
POSTwith a JSON body, sent withContent-Type: application/json, and returns JSON. - Every request needs an API key as a bearer token. See Authentication.
- Predictions use
spot-5-turbo, our latest model, unless you choose another withmodel. See Model. - Prices come back in the currency you ask for with
currency, and inEURwithout it. See Currency.
Errors
The API uses standard HTTP status codes. Errors usually come with a JSON body that says what went wrong:
{
"code": "resource.not_found",
"status": 404,
"message": "brand not found",
"request_id": "request_01M9093P26RKCG4014R02280HF"
}| Status | Meaning |
|---|---|
400 | The request body is invalid, for example malformed JSON or a missing query. |
403 | The API key is missing or invalid. See Authentication. |
404 | The brand or category in a prediction couldn't be found. |
500 | Something went wrong on our side. Try again, and contact us if it persists. |
Help
Contact us here or email us at hello@bencha.io. Include the request_id of a failed request if you have one.