{
  "openapi": "3.1.0",
  "info": {
    "title": "Dubai Car Index HTTP API",
    "version": "1.0.0",
    "summary": "What a car in Dubai should cost: UAE list prices, used values, rental rates and repair costs.",
    "description": "Fair prices for cars in Dubai: new list prices, used values by year and mileage, rental rates by day, week and month, and repair costs by brand. Data as of 2026-10-15.\n\nFree and read-only, with no API key, no account and no quota for these HTTP endpoints. Every list price carries its source URL, source type and checked date; used values, rental rates and repair bands are modelled estimates, labelled as such and explained at /methodology. Only figures that clear the publish gate are published.\n\nAgents should prefer the MCP server at https://dubaicarindex.com/api/mcp, which exposes the same figures as 13 typed tools with the caveats attached. Its card is at https://dubaicarindex.com/.well-known/mcp.json. It needs an OAuth token, which a client obtains on its own: dynamic client registration is open and a person signs in once by email.\n\nErrors from the JSON endpoints are RFC 9457 problem details with `code`, `message` and `resolution`.",
    "contact": {
      "name": "Dubai Car Index",
      "email": "hello@dubaicarindex.com",
      "url": "https://dubaicarindex.com/contact"
    },
    "termsOfService": "https://dubaicarindex.com/terms"
  },
  "servers": [
    {
      "url": "https://dubaicarindex.com",
      "description": "Production"
    }
  ],
  "externalDocs": {
    "description": "When to use this index, and every surface",
    "url": "https://dubaicarindex.com/llms.txt"
  },
  "x-mcp": {
    "endpoint": "https://dubaicarindex.com/api/mcp",
    "manifest": "https://dubaicarindex.com/.well-known/mcp.json",
    "documentation": "https://dubaicarindex.com/docs/mcp",
    "version": "1.0.2",
    "tools": [
      "search",
      "fetch",
      "list_brands",
      "get_brand",
      "list_models",
      "get_new_car_price",
      "get_used_value",
      "check_asking_price",
      "get_rental_rates",
      "get_repair_costs",
      "compare_cars",
      "get_methodology",
      "whoami"
    ],
    "description": "Streamable HTTP, OAuth 2.1. Every tool is read-only; 120 tool calls a minute per account."
  },
  "x-onboarding": {
    "freeTier": true,
    "apiKeyRequired": false,
    "accountRequired": false,
    "selfServe": true,
    "sandbox": false,
    "notes": "The HTTP endpoints need no credential of any kind. The MCP server needs a free account: a client registers itself through dynamic client registration and a person signs in by email, with no API key to issue."
  },
  "paths": {
    "/{path}": {
      "get": {
        "operationId": "getPageAsMarkdown",
        "summary": "Any page as markdown, at its canonical URL",
        "description": "Any page on this site as markdown instead of HTML, at the same URL. Reach for this when you want a whole page — its tables, caveats and links — without parsing HTML. Each rendition carries the canonical link, the data date and a citation. Catalogue pages that have not cleared the publish gate, and unknown paths, answer 404 with a markdown body saying where to look. A client that accepts neither markdown nor HTML gets 406. Enumerate paths from /sitemap.xml.",
        "parameters": [
          {
            "name": "path",
            "in": "path",
            "required": true,
            "description": "A canonical path without the leading slash, e.g. buy/new/toyota/land-cruiser.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "required": true,
            "description": "`text/markdown`. q-values are honoured per RFC 9110; an equal-weight tie resolves to HTML, so browsers are unaffected.",
            "schema": {
              "type": "string",
              "const": "text/markdown"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Any page as markdown, at its canonical URL",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No such page or record, or one that has not cleared the publish gate.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "406": {
            "description": "Nothing this endpoint can produce is acceptable.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/md/{path}": {
      "get": {
        "operationId": "getMarkdownRendition",
        "summary": "The same markdown at its own URL",
        "description": "The markdown rendition at a URL of its own, for when you cannot set request headers. Prefer content negotiation on the canonical URL; this one is marked noindex.",
        "parameters": [
          {
            "name": "path",
            "in": "path",
            "required": true,
            "description": "A canonical path without the leading slash.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The same markdown at its own URL",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No such page or record, or one that has not cleared the publish gate.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/price-check": {
      "get": {
        "operationId": "checkAskingPrice",
        "summary": "Is a used car's asking price fair?",
        "description": "The verdict for a seller's asking price against the modelled fair range for that model year and mileage: below, within, above or well above, with the gap to the fair value and the range. Assumes the entry trim in average condition. Without a valid query it returns how to ask.",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "required": true,
            "description": "`text/markdown`. q-values are honoured per RFC 9110; an equal-weight tie resolves to HTML, so browsers are unaffected.",
            "schema": {
              "type": "string",
              "const": "text/markdown"
            }
          },
          {
            "name": "car",
            "in": "query",
            "required": true,
            "description": "`{brand}/{model}` slugs from a model page URL, e.g. toyota/camry.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9-]+/[a-z0-9-]+$"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": true,
            "description": "GCC model year.",
            "schema": {
              "type": "integer",
              "minimum": 1990
            }
          },
          {
            "name": "price",
            "in": "query",
            "required": true,
            "description": "Asking price, AED.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "km",
            "in": "query",
            "required": false,
            "description": "Odometer reading in km; omit for typical mileage for the year.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Is a used car's asking price fair?",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No such page or record, or one that has not cleared the publish gate.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "406": {
            "description": "Nothing this endpoint can produce is acceptable.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/data/brands.json": {
      "get": {
        "operationId": "listBrands",
        "summary": "Every brand and its published models",
        "description": "Start here to enumerate the catalogue as data: every brand with at least one published model, each model's entry list price, page URL and record URL.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Every brand and its published models",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandList"
                }
              }
            }
          }
        }
      }
    },
    "/data/models/{brand}/{model}.json": {
      "get": {
        "operationId": "getModelRecord",
        "summary": "One model's figures as data",
        "description": "The versioned record for one model: UAE list prices trim by trim with their evidence, modelled used values by model year, and modelled rental rates, with a prebuilt citation. Reach for this rather than the markdown page when you want figures rather than a document. Only models whose figures clear the publish gate have a record.",
        "parameters": [
          {
            "name": "brand",
            "in": "path",
            "required": true,
            "description": "Brand slug, e.g. \"toyota\".",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,79}$"
            }
          },
          {
            "name": "model",
            "in": "path",
            "required": true,
            "description": "Model slug, e.g. \"land-cruiser\".",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,79}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One model's figures as data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelRecord"
                }
              }
            }
          },
          "404": {
            "description": "No such page or record, or one that has not cleared the publish gate.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getAgentIndex",
        "summary": "What this index covers, and when to use it",
        "description": "Read this first to decide whether this index can answer the question: what it covers, when not to use it, the URL grammar and every machine-readable surface.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "What this index covers, and when to use it",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "operationId": "getAgentIndexFull",
        "summary": "Everything in one file",
        "description": "llms.txt, the skill, every MCP tool with its arguments, the methodology and the published model index, in one fetch.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Everything in one file",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/skill.md": {
      "get": {
        "operationId": "getSkillDocument",
        "summary": "The agent skill",
        "description": "When to use the index and the rules for quoting a figure from it, with front matter for skill loaders.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The agent skill",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/mcp.json": {
      "get": {
        "operationId": "getMcpServerCard",
        "summary": "The MCP server card",
        "description": "The MCP server's endpoint, transport, authorization metadata and documentation links.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The MCP server card",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "getOpenApiDocument",
        "summary": "This document",
        "description": "The machine-readable description of everything above.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "This document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "operationId": "getSitemapIndex",
        "summary": "Index of the per-family sitemaps",
        "description": "Every published URL, sharded by page family. Use it to enumerate pages before reading them.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Index of the per-family sitemaps",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/sitemaps/{family}.xml": {
      "get": {
        "operationId": "getSitemapShard",
        "summary": "One family's URLs",
        "description": "One shard of the sitemap index, for when you only need one kind of page.",
        "parameters": [
          {
            "name": "family",
            "in": "path",
            "required": true,
            "description": "Which page family to enumerate.",
            "schema": {
              "type": "string",
              "enum": [
                "pages",
                "brands",
                "buy-new",
                "buy-used",
                "rent",
                "repair"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One family's URLs",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No such page or record, or one that has not cleared the publish gate.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ModelRecord": {
        "type": "object",
        "title": "ModelRecord",
        "description": "One model's figures. `newPrices` is published (each trim with its evidence); `usedValues` and `rental` are modelled estimates, explained at /methodology. `rental` is null while the model's rent page has not cleared the publish gate; `usedValues` is null for a model with no past model years yet.",
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "type": {
            "type": "string",
            "const": "DubaiCarIndexModelRecord"
          },
          "id": {
            "type": "string",
            "format": "uri",
            "description": "This record's own URL."
          },
          "canonicalUrl": {
            "type": "string",
            "format": "uri",
            "description": "The page to link a reader to: the new-car page while on sale, the used-value page after."
          },
          "name": {
            "type": "string"
          },
          "brand": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "slug",
              "name"
            ]
          },
          "model": {
            "type": "string"
          },
          "segment": {
            "type": "string",
            "enum": [
              "city-car",
              "sedan-compact",
              "sedan-midsize",
              "sedan-executive",
              "sedan-luxury",
              "suv-compact",
              "suv-midsize",
              "suv-full-size",
              "suv-luxury",
              "pickup",
              "mpv-van",
              "sports",
              "supercar"
            ]
          },
          "segmentLabel": {
            "type": "string"
          },
          "onSale": {
            "type": "boolean",
            "description": "Sold new today. A discontinued model keeps its last list prices as the basis for used values."
          },
          "yearsSold": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "First and last GCC model year sold new."
          },
          "asOf": {
            "type": "string",
            "format": "date",
            "description": "The data date of every figure in the record."
          },
          "methodologyUrl": {
            "type": "string",
            "format": "uri"
          },
          "attribution": {
            "type": "object",
            "description": "A prebuilt citation. Copy it rather than composing your own.",
            "properties": {
              "plain": {
                "type": "string"
              },
              "markdown": {
                "type": "string"
              }
            },
            "required": [
              "plain",
              "markdown"
            ]
          },
          "newPrices": {
            "type": "object",
            "properties": {
              "figure": {
                "type": "string",
                "const": "published"
              },
              "priceYear": {
                "type": "integer",
                "description": "The model year the list prices belong to."
              },
              "entryPriceAed": {
                "type": "number",
                "description": "The cheapest trim: the model's \"from\" price. AED, VAT inclusive."
              },
              "trims": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "trim": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "priceAed": {
                      "type": "number"
                    },
                    "evidence": {
                      "$ref": "#/components/schemas/Evidence"
                    }
                  },
                  "required": [
                    "trim",
                    "name",
                    "priceAed",
                    "evidence"
                  ]
                }
              },
              "caveat": {
                "type": "string"
              }
            },
            "required": [
              "figure",
              "priceYear",
              "entryPriceAed",
              "trims",
              "caveat"
            ]
          },
          "usedValues": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "figure": {
                "type": "string",
                "const": "modelled"
              },
              "basis": {
                "type": "object",
                "properties": {
                  "entryListPriceAed": {
                    "type": "number"
                  },
                  "listPriceYear": {
                    "type": "integer"
                  }
                }
              },
              "years": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer"
                    },
                    "typicalKm": {
                      "type": "integer"
                    },
                    "lowAed": {
                      "type": "number"
                    },
                    "fairAed": {
                      "type": "number"
                    },
                    "highAed": {
                      "type": "number"
                    },
                    "retainedShare": {
                      "type": "number",
                      "description": "Fair value as a share of the entry list price."
                    }
                  },
                  "required": [
                    "year",
                    "typicalKm",
                    "lowAed",
                    "fairAed",
                    "highAed",
                    "retainedShare"
                  ]
                }
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "caveat": {
                "type": "string"
              }
            }
          },
          "rental": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "figure": {
                "type": "string",
                "const": "modelled"
              },
              "rates": {
                "type": "object",
                "properties": {
                  "daily": {
                    "type": "object",
                    "properties": {
                      "lowAed": {
                        "type": "number"
                      },
                      "typicalAed": {
                        "type": "number"
                      },
                      "highAed": {
                        "type": "number"
                      },
                      "typicalPerDayAed": {
                        "type": "number",
                        "description": "What one day costs on this hire length."
                      }
                    },
                    "required": [
                      "lowAed",
                      "typicalAed",
                      "highAed",
                      "typicalPerDayAed"
                    ]
                  },
                  "weekly": {
                    "type": "object",
                    "properties": {
                      "lowAed": {
                        "type": "number"
                      },
                      "typicalAed": {
                        "type": "number"
                      },
                      "highAed": {
                        "type": "number"
                      },
                      "typicalPerDayAed": {
                        "type": "number",
                        "description": "What one day costs on this hire length."
                      }
                    },
                    "required": [
                      "lowAed",
                      "typicalAed",
                      "highAed",
                      "typicalPerDayAed"
                    ]
                  },
                  "monthly": {
                    "type": "object",
                    "properties": {
                      "lowAed": {
                        "type": "number"
                      },
                      "typicalAed": {
                        "type": "number"
                      },
                      "highAed": {
                        "type": "number"
                      },
                      "typicalPerDayAed": {
                        "type": "number",
                        "description": "What one day costs on this hire length."
                      }
                    },
                    "required": [
                      "lowAed",
                      "typicalAed",
                      "highAed",
                      "typicalPerDayAed"
                    ]
                  }
                },
                "required": [
                  "daily",
                  "weekly",
                  "monthly"
                ]
              },
              "terms": {
                "type": "object",
                "properties": {
                  "deposit": {
                    "type": "string"
                  },
                  "mileage": {
                    "type": "string"
                  },
                  "insurance": {
                    "type": "string"
                  },
                  "salik": {
                    "type": "string"
                  }
                }
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "caveat": {
                "type": "string"
              }
            }
          },
          "repairUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "schemaVersion",
          "type",
          "id",
          "canonicalUrl",
          "name",
          "brand",
          "model",
          "segment",
          "onSale",
          "yearsSold",
          "asOf",
          "attribution",
          "newPrices",
          "usedValues",
          "rental"
        ]
      },
      "BrandList": {
        "type": "object",
        "title": "BrandList",
        "description": "Every brand with at least one published model, and those models.",
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "type": {
            "type": "string",
            "const": "DubaiCarIndexBrandList"
          },
          "asOf": {
            "type": "string",
            "format": "date"
          },
          "methodologyUrl": {
            "type": "string",
            "format": "uri"
          },
          "brands": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "brand": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "country": {
                  "type": "string"
                },
                "distributor": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    }
                  }
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "models": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "model": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "segment": {
                        "type": "string",
                        "enum": [
                          "city-car",
                          "sedan-compact",
                          "sedan-midsize",
                          "sedan-executive",
                          "sedan-luxury",
                          "suv-compact",
                          "suv-midsize",
                          "suv-full-size",
                          "suv-luxury",
                          "pickup",
                          "mpv-van",
                          "sports",
                          "supercar"
                        ]
                      },
                      "onSale": {
                        "type": "boolean"
                      },
                      "yearsSold": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      },
                      "entryPriceAed": {
                        "type": "number"
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "record": {
                        "type": "string",
                        "format": "uri",
                        "description": "This model's ModelRecord."
                      }
                    },
                    "required": [
                      "model",
                      "name",
                      "segment",
                      "onSale",
                      "entryPriceAed",
                      "url",
                      "record"
                    ]
                  }
                }
              },
              "required": [
                "brand",
                "name",
                "url",
                "models"
              ]
            }
          }
        },
        "required": [
          "schemaVersion",
          "type",
          "asOf",
          "brands"
        ]
      },
      "Evidence": {
        "type": "object",
        "title": "Evidence",
        "description": "Where a published figure came from.",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "The page the figure was read from."
          },
          "sourceType": {
            "type": "string",
            "enum": [
              "official",
              "dealer",
              "marketplace",
              "rental-company",
              "garage",
              "editorial",
              "estimate"
            ],
            "description": "Kind of source. `estimate` never appears in a published record."
          },
          "checkedOn": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The date the figure was last checked at its source."
          },
          "note": {
            "type": "string",
            "description": "What the source says, where it needs saying."
          }
        },
        "required": [
          "url",
          "sourceType",
          "checkedOn"
        ]
      },
      "Problem": {
        "type": "object",
        "title": "Problem",
        "description": "RFC 9457 problem details. Every JSON surface here fails in this shape: branch on `code`, show `message`, follow `resolution`.",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "const": "https://dubaicarindex.com/openapi.json"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "code": {
            "type": "string",
            "enum": [
              "not_found",
              "bad_request",
              "validation_failed",
              "method_not_allowed",
              "payload_too_large",
              "rate_limited",
              "not_acceptable",
              "service_unavailable",
              "upstream_failed"
            ],
            "description": "Stable machine token. Closed set."
          },
          "message": {
            "type": "string",
            "description": "What went wrong with this request."
          },
          "resolution": {
            "type": "string",
            "description": "What to do next."
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "code",
          "message",
          "resolution"
        ]
      }
    }
  }
}