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

# What each will cost: years on the road in one state at your kilometres (v=a,b, state, years, km_month, fuel_inr, kmpl, finance_pct, months, rate_pct, body, tyre_each, tyre_life_km)

> What each variant will cost over years on the road in one state at your kilometres a month: purchase, finance, fuel, tyres, upkeep, with the assumptions echoed back. Every price carries its kind and its date. The page a figure was read from never leaves through a key: source URLs and verification pages are dropped.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/compare/cost
openapi: 3.1.0
info:
  title: Truckaurbus API
  version: v1
  description: >-
    The public v1 API at https://api.truckaurbus.com/v1. Authenticate with an
    API key in the Authorization header: Bearer tab_live_...


    Every figure carries its kind and its date. The API never carries the page a
    value came from.
servers:
  - url: https://api.truckaurbus.com
security: []
paths:
  /v1/compare/cost:
    get:
      tags:
        - v1
      summary: >-
        What each will cost: years on the road in one state at your kilometres
        (v=a,b, state, years, km_month, fuel_inr, kmpl, finance_pct, months,
        rate_pct, body, tyre_each, tyre_life_km)
      description: >-
        What each variant will cost over years on the road in one state at your
        kilometres a month: purchase, finance, fuel, tyres, upkeep, with the
        assumptions echoed back. Every price carries its kind and its date. The
        page a figure was read from never leaves through a key: source URLs and
        verification pages are dropped.
      operationId: identity_api_v1_compare_cost
      parameters:
        - in: query
          name: v
          required: true
          schema:
            type: string
          description: >-
            Variant slugs, comma-separated, two to four (v=a,b); a repeated v is
            gathered into the same list
          example: tata-motors-signa-4825-tk,ashok-leyland-4825
        - in: query
          name: state
          required: false
          schema:
            default: DL
            title: State
            type: string
        - in: query
          name: years
          required: false
          schema:
            default: 5
            title: Years
            type: integer
        - in: query
          name: km_month
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Km Month
        - in: query
          name: fuel_inr
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Fuel Inr
        - in: query
          name: kmpl
          required: false
          schema:
            default: ''
            title: Kmpl
            type: string
        - in: query
          name: finance_pct
          required: false
          schema:
            default: 80
            title: Finance Pct
            type: number
        - in: query
          name: months
          required: false
          schema:
            default: 48
            title: Months
            type: integer
        - in: query
          name: rate_pct
          required: false
          schema:
            default: 10.5
            title: Rate Pct
            type: number
        - in: query
          name: body
          required: false
          schema:
            default: ''
            title: Body
            type: string
        - in: query
          name: tyre_each
          required: false
          schema:
            default: ''
            title: Tyre Each
            type: string
        - in: query
          name: tyre_life_km
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Tyre Life Km
        - in: query
          name: diesel_inr
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Diesel Inr
        - in: query
          name: cng_inr
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Cng Inr
        - in: query
          name: petrol_inr
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Petrol Inr
        - in: query
          name: unit_inr
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Unit Inr
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                title: Response
                type: object
          description: OK

````