Kelley Blue Book Years
https://api.sandbase.ai/v1/api/kbb/yearsRetrieve all available vehicle model years from Kelley Blue Book in one round trip. Returns an array of integer years in descending order, from the newest model year the site currently lists (one year beyond the next.
- Precio
- $0.01USD / llamada
- Método
- POST
- Respuesta
- JSON asíncrono
- Parámetros
- 0 obligatorios · 0 opcionales
Entorno de pruebas
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
README de la API
Kelley Blue Book Years
Returns the list of vehicle model years that Kelley Blue Book currently lists, newest first. The call needs no input.
Use cases
- Fill a model year dropdown in a car search form.
- Check the newest model year Kelley Blue Book lists before you run other vehicle lookups.
- Validate a user-supplied model year against the years the site supports.
Request
curl -X POST "https://api.sandbase.ai/v1/api/kbb/years" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"years": [
2028
]
},
"status": "success"
}
Response fields
| Field | Meaning |
|---|---|
status | Result of the call. The value is success when the request worked. |
data.years[] | Model years as integers, sorted from newest to oldest. The first item is the newest model year listed. |
Notes
- Send an empty JSON object
{}as the request body. The API has no parameters. - The API runs asynchronously. Poll the run endpoint until
statusiscompleted, then readoutputs[0].data.
Pricing
$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Empiece a construir
Envíe su primera solicitud
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/kbb/years" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Autenticación
Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
3. Parámetros
No se ha publicado un esquema de parámetros para esta API.
4. Respuesta
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
APIs relacionadas
| API | Precio | Respuesta |
|---|---|---|
Kelley Blue Book YearsEsta API Kelley Blue Book | $0.01 por llamada | JSON asíncrono |
Kelley Blue Book | $0.01 por llamada | JSON asíncrono |
Kelley Blue Book | $0.01 por llamada | JSON asíncrono |
Preguntas
FAQ
¿Cómo uso la API de Kelley Blue Book Years?
Envía una solicitud POST a https://api.sandbase.ai/v1/api/kbb/years con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
¿Cuánto cuesta la API de Kelley Blue Book Years?
$0.01 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
¿Qué parámetros acepta la API de Kelley Blue Book Years?
Kelley Blue Book Years no acepta parámetros de entrada; envía un cuerpo JSON vacío.
¿Qué devuelve la API de Kelley Blue Book Years?
Un resultado JSON. Este endpoint se ejecuta de forma asíncrona, así que la respuesta indica cómo obtener el resultado final. El README de esta página incluye una respuesta de ejemplo.
¿Necesito una cuenta de desarrollador o una clave API de Kelley Blue Book?
No. Kelley Blue Book Years funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Kelley Blue Book por separado.
