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.
- ราคา
- $0.01USD / คำขอ
- Method
- POST
- การตอบกลับ
- Async JSON
- พารามิเตอร์
- 0 จำเป็น · 0 ไม่บังคับ
Playground
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
API README
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.
เริ่มสร้าง
ส่งคำขอแรกของคุณ
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/kbb/years" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. การยืนยันตัวตน
ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
3. พารามิเตอร์
ยังไม่มีการเผยแพร่ schema ของพารามิเตอร์สำหรับ API นี้
4. การตอบกลับ
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
APIs ที่เกี่ยวข้อง
| API | ราคา | การตอบกลับ |
|---|---|---|
Kelley Blue Book YearsAPI นี้ Kelley Blue Book | $0.01 ต่อการเรียก | Async JSON |
Kelley Blue Book | $0.01 ต่อการเรียก | Async JSON |
Kelley Blue Book | $0.01 ต่อการเรียก | Async JSON |
คำถาม
คำถามที่พบบ่อย
ฉันจะใช้ Kelley Blue Book Years API ได้อย่างไร?
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/kbb/years โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
Kelley Blue Book Years API ราคาเท่าไร?
$0.01 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
Kelley Blue Book Years API รับพารามิเตอร์อะไรบ้าง?
Kelley Blue Book Years ไม่รับพารามิเตอร์อินพุต ส่ง JSON body ว่างเปล่า
Kelley Blue Book Years API ส่งคืนอะไร?
ผลลัพธ์ JSON จุดเชื่อมต่อนี้ทำงานแบบอะซิงโครนัส ดังนั้นการตอบกลับจะบอกวิธีดึงผลลัพธ์ที่เสร็จแล้ว README บนหน้านี้มีตัวอย่างการตอบกลับ
ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Kelley Blue Book ไหม?
ไม่จำเป็น Kelley Blue Book Years ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Kelley Blue Book API แยกต่างหาก
