> ## Documentation Index
> Fetch the complete documentation index at: https://docs.driv.ly/llms.txt
> Use this file to discover all available pages before exploring further.

# Service Data

> Access data to help diagnose and repair issues with a vehicle.

## Overview

The Service API is a collection of data that can be used to help diagnose and repair issues with a vehicle. The data includes in-depth service information to assist in diagnosing and fixing vehicle problems, providing details on usual symptoms, potential causes, and repair expenses.

| Capabilities                                    | Description                                                    |
| ----------------------------------------------- | -------------------------------------------------------------- |
| [OBD2 Codes](#obd2-codes)                       | Retrieve OBD2 codes for specific vehicle issues.               |
| [Maintenance Schedules](#maintenance-schedules) | Get maintenance schedules for specific vehicle models.         |
| [Repair Probability](#repair-probability)       | Access repair probability data for different vehicle issues.   |
| [Repair/Service Costs](#repair-service-costs)   | Retrieve repair/service costs for specific vehicle issues.     |
| [Issue Diagnosis](#issue-diagnosis)             | Get issue diagnosis data for specific vehicle issues.          |
| [Repair/Mechanic Shops](#repair-mechanic-shops) | Access repair/mechanic shops data for specific vehicle issues. |

***

## OBD2 Codes

Retrieve OBD2 codes for specific vehicle issues. This data can help diagnose issues with a vehicle by providing information on the specific issue that is causing a problem.

```json theme={null}
{
  "obd2Codes": {
    "issue": "Engine Misfire",
    "code": "P0300",
    "description": "Random/Multiple Cylinder Misfire Detected",
    "possibleCauses": [
      "Faulty spark plugs or wires",
      "Faulty ignition coil",
      "Clogged or faulty fuel injectors",
      "Low fuel pressure",
      "Vacuum leak",
      "Faulty oxygen sensor",
      "Faulty catalytic converter"
    ]
  }
}
```

***

## Maintenance Schedules

Get maintenance schedules for specific vehicle models. This data can help vehicle owners keep their vehicles running smoothly by providing information on when to perform routine maintenance tasks.

```json theme={null}
{
  "maintenanceSchedules": {
    "year": 2022,
    "make": "Toyota",
    "model": "Camry",
    "maintenanceTasks": [
      {
        "task": "Oil Change",
        "interval": "Every 5,000 miles"
      },
      {
        "task": "Tire Rotation",
        "interval": "Every 10,000 miles"
      },
      {
        "task": "Brake Inspection",
        "interval": "Every 20,000 miles"
      }
    ]
  }
}
```

***

## Repair Probability

Access repair probability data for different vehicle issues. This data can help determine the likelihood of a repair being successful by providing information on how often a repair is successful.

```json theme={null}
{
  "repairProbability": {
    "issue": "Engine Misfire",
    "repairType": "Spark Plug Replacement",
    "successRate": 0.9
  }
}
```

***

## Repair/Service Costs

Retrieve repair/service costs for specific vehicle issues. This data can help determine the cost of a repair or service by providing information on how much a repair typically costs.

```json theme={null}
{
  "repairCosts": {
    "issue": "Engine Misfire",
    "repairType": "Spark Plug Replacement",
    "cost": 200
  }
}
```

***

## Issue Diagnosis

Get issue diagnosis data for specific vehicle issues. This data can help diagnose issues with a vehicle by providing information on common symptoms and causes of specific issues.

```json theme={null}
{
  "issueDiagnosis": {
    "issue": "Engine Misfire",
    "symptoms": [
      "Check engine light is on",
      "Engine is running rough",
      "Loss of power or acceleration"
    ],
    "causes": [
      "Faulty spark plugs or wires",
      "Faulty ignition coil",
      "Clogged or faulty fuel injectors"
    ]
  }
}
```

***

## Repair/Mechanic Shops

Access repair/mechanic shops data for specific vehicle issues. This data can help vehicle owners find a repair shop or mechanic by providing information on local repair shops and mechanics.

```json theme={null}
{
  "repairShops": {
    "issue": "Engine Misfire",
    "shops": [
      {
        "name": "Joe's Auto Repair",
        "address": "123 Main St",
        "city": "Anytown",
        "state": "CA",
        "zip": "12345",
        "phone": "555-123-4567"
      },
      {
        "name": "Bob's Garage",
        "address": "456 Elm St",
        "city": "Othertown",
        "state": "CA",
        "zip": "54321",
        "phone": "555-987-6543"
      }
      ...
    ]
  }
}
```
