Motorcycle Specs Database

免费增值
通过 makingdatameaningful.com | 已更新 il y a 3 jours | Database
人气

9.5 / 10

延迟

209ms

服务等级

100%

Health Check

N/A

关注者:33
资源:
产品网站 使用条款
API 创建者:
Rapid account: Makingdatameaningful Com
makingdatameaningful.com
makingdatameaningful
登录并给 API 打分
打分:4.3 - 投票:15

README

Motorcycle Specs Database API Documentation

Base URL

http://api-motorcycle.makingdatameaningful.com/api/v1

Endpoints

1. Get Specifications by Year, Make, Model

Endpoint:

GET /specifications/{year}/{make}/{model}

Description: Retrieve specifications for a motorcycle by year, make, and model.

2. Get Image by ID (Media Content)

Endpoint:

GET /image/{id}/media

Description: Retrieve an image as media content by its ID.

3. Get Image by ID (Link)

Endpoint:

GET /image/{id}/link

Description: Retrieve an image link by its ID.

4. Get Specifications by Make, Model

Endpoint:

GET /specifications/{make}/{model}

Description: Retrieve specifications for a motorcycle by make and model.

5. Get Specifications by ID

Endpoint:

GET /specifications/{id}

Description: Retrieve specifications for a motorcycle by its ID.

6. Get Models by Make

Endpoint:

GET /models/{make}

Description: Retrieve a list of models by make.

7. Get Models by Make ID and Year

Endpoint:

GET /models/{make_id}/{year}

Description: Retrieve a list of models by make ID and year.

8. Get List of All Makes

Endpoint:

GET /makes

Description: Retrieve a list of all motorcycle makes.

9. Get Production Years by Model ID

Endpoint:

GET /production-years/{model_id}

Description: Retrieve production years grouped by model ID.

10. Get List of All Categories

Endpoint:

GET /categories

Description: Retrieve a list of all motorcycle categories.

11. Get Specifications by Group

Endpoint:

GET /specifications/group/{group}

Description: Retrieve specifications by group.

12. Get Models by Make ID, Year, and Category

Endpoint:
``>
GET /models/{make_id}/{year}/{category}

**Description:** Retrieve a list of models by make ID, year, and category.

### 13. Get Models by Make ID and Category
**Endpoint:**

GET /models/{make_id}/{category}

**Description:** Retrieve a list of models by make ID and category.

---

## Example Requests

### Retrieve Specifications by Year, Make, Model
```bash
curl -X GET "http://api-motorcycle.makingdatameaningful.com/api/v1/specifications/2021/Yamaha/MT-07"

Retrieve Image by ID (Media Content)

curl -X GET "http://api-motorcycle.makingdatameaningful.com/api/v1/image/12345/media"

Retrieve Models by Make

curl -X GET "http://api-motorcycle.makingdatameaningful.com/api/v1/models/Yamaha"

Authentication

Provide an API key as a header:

x-api-key: YOUR_API_KEY

Response Format

All responses are returned in JSON format.


Error Handling

Errors are returned with appropriate HTTP status codes and a message describing the error.


If you need further customization or specific examples for each endpoint, feel free to ask!