{"openapi":"3.1.0","info":{"title":"myfancynumber.com read API","version":"1.0.0","summary":"Today's fancy 4-digit vehicle registration numbers across India's RTOs.","description":"A read-only mirror of the fancy (VIP) 4-digit registration numbers open for reservation at every Indian RTO that publishes them — the Parivahan portal for 28 states and union territories. The data is a **daily snapshot**: every response carries `asOf`, the IST calendar day the pool was published for, and numbers leave the pool through the day as applicants reserve them. Reservations and payments happen only on the official portal, fancy.parivahan.gov.in; this service holds no inventory and takes no bookings. Responses are cached at the edge for an hour and allow cross-origin requests from any origin. The same data is available to assistants over MCP (see `x-mcp`).","contact":{"url":"https://myfancynumber.com/privacy"},"license":{"name":"Public-domain government data; site content shareable with attribution","url":"https://myfancynumber.com/llms.txt"}},"servers":[{"url":"https://myfancynumber.com"}],"x-mcp":{"url":"https://myfancynumber.com/api/mcp","transport":"streamable-http"},"tags":[{"name":"coverage","description":"Which states and offices have a pool today."},{"name":"numbers","description":"Where a specific number is open, and what an office holds."}],"paths":{"/api/v1/states":{"get":{"operationId":"listStates","tags":["coverage"],"summary":"Every state and union territory with its coverage status and refresh day","description":"The entry point for an agent that has nothing but a place name.","responses":{"200":{"description":"All 36 jurisdictions.","content":{"application/json":{"schema":{"type":"object","required":["count","states"],"properties":{"count":{"type":"integer"},"states":{"type":"array","items":{"$ref":"#/components/schemas/State"}}}}}}},"429":{"description":"Rate limited — 120 requests per minute per IP.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/rtos":{"get":{"operationId":"listRtos","tags":["coverage"],"summary":"Every office in a state that has a pool today","parameters":[{"name":"state","in":"query","required":true,"description":"Two-letter state or union-territory code (case-insensitive), e.g. KA, TN, TG, KL. GET /api/v1/states lists every code.","schema":{"type":"string","examples":["KA"]}}],"responses":{"200":{"description":"Offices with today's open-number counts.","content":{"application/json":{"schema":{"type":"object","required":["state","asOf","lastIngestedAt","count","rtos"],"properties":{"state":{"$ref":"#/components/schemas/StateRef"},"asOf":{"type":["string","null"],"description":"Calendar day (IST, YYYY-MM-DD) the pool was published for. Availability is 'open as of that morning'; numbers leave the pool through the day as applicants reserve them.","examples":["2026-09-12"]},"lastIngestedAt":{"type":["string","null"],"format":"date-time","description":"Exact moment the state's pool was last refreshed, ISO-8601 UTC."},"count":{"type":"integer"},"rtos":{"type":"array","items":{"$ref":"#/components/schemas/Office"}}}}}}},"400":{"description":"Missing state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown state code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — 120 requests per minute per IP.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/number":{"get":{"operationId":"findNumber","tags":["numbers"],"summary":"Every office in a state where a number is open today","description":"The state-wide answer to the question an office page can only answer for one office.","parameters":[{"name":"state","in":"query","required":true,"description":"Two-letter state or union-territory code (case-insensitive), e.g. KA, TN, TG, KL. GET /api/v1/states lists every code.","schema":{"type":"string","examples":["KA"]}},{"name":"number","in":"query","required":true,"description":"The 4-digit number, 1 to 4 digits (short values are zero-padded: 7 → 0007). `n` is accepted as an alias.","schema":{"type":"string","pattern":"^[0-9]{1,4}$","examples":["9999"]}}],"responses":{"200":{"description":"Offices where the number is open. `openAt` is empty when it is open nowhere in the state.","content":{"application/json":{"schema":{"type":"object","required":["state","number","asOf","lastIngestedAt","available","count","openAt"],"properties":{"state":{"$ref":"#/components/schemas/StateRef"},"number":{"type":"string","pattern":"^[0-9]{4}$"},"asOf":{"type":["string","null"],"description":"Calendar day (IST, YYYY-MM-DD) the pool was published for. Availability is 'open as of that morning'; numbers leave the pool through the day as applicants reserve them.","examples":["2026-09-12"]},"lastIngestedAt":{"type":["string","null"],"format":"date-time","description":"Exact moment the state's pool was last refreshed, ISO-8601 UTC."},"available":{"type":"boolean","description":"True when at least one office has it."},"count":{"type":"integer"},"openAt":{"type":"array","items":{"$ref":"#/components/schemas/Sighting"}}}}}}},"400":{"description":"Missing state or invalid number.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown state code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — 120 requests per minute per IP.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/availability":{"get":{"operationId":"checkAvailability","tags":["numbers"],"summary":"Is a number open at one office today","description":"When it is not, `openElsewhere` carries every other office in the state where it is, so one call answers \"not there, but here\". `fee` comes from the state's published fee schedule: Telangana as `Fee`, every other state as `StateFee` (with the source document, the date it was checked, and the fee page). Where the fee depends on the vehicle (car vs two-wheeler vs transport) and the series' class is known, only that class is returned. Confirm on Parivahan before paying.","parameters":[{"name":"state","in":"query","required":true,"description":"Two-letter state or union-territory code (case-insensitive), e.g. KA, TN, TG, KL. GET /api/v1/states lists every code.","schema":{"type":"string","examples":["KA"]}},{"name":"rto","in":"query","required":true,"description":"Parivahan's short office code, e.g. 1 or 305. GET /api/v1/rtos?state=… lists every code for a state.","schema":{"type":"string","examples":["1"]}},{"name":"number","in":"query","required":true,"description":"The 4-digit number, 1 to 4 digits (short values are zero-padded: 7 → 0007). `n` is accepted as an alias.","schema":{"type":"string","pattern":"^[0-9]{1,4}$","examples":["9999"]}}],"responses":{"200":{"description":"Availability at the office.","content":{"application/json":{"schema":{"type":"object","required":["state","rtoCode","officeName","cityName","number","asOf","lastIngestedAt","available","series","fullReg","fee","url","reserveUrl","openElsewhere"],"properties":{"state":{"$ref":"#/components/schemas/StateRef"},"rtoCode":{"type":"string"},"officeName":{"type":"string"},"cityName":{"type":["string","null"]},"number":{"type":"string","pattern":"^[0-9]{4}$"},"asOf":{"type":["string","null"],"description":"Calendar day (IST, YYYY-MM-DD) the pool was published for. Availability is 'open as of that morning'; numbers leave the pool through the day as applicants reserve them.","examples":["2026-09-12"]},"lastIngestedAt":{"type":["string","null"],"format":"date-time","description":"Exact moment the state's pool was last refreshed, ISO-8601 UTC."},"available":{"type":"boolean"},"series":{"type":"array","items":{"type":"string"},"description":"Every open series carrying the number at this office; empty when unavailable."},"fullReg":{"type":["string","null"],"description":"The reconstructed plate from the first series, e.g. KA01AV9999; null when unavailable."},"fee":{"description":"Null unless the state's schedule gives a figure for this number.","anyOf":[{"$ref":"#/components/schemas/Fee"},{"$ref":"#/components/schemas/StateFee"},{"type":"null"}]},"feeInfo":{"$ref":"#/components/schemas/StateFee","description":"Present when fee is null outside Telangana: why there's no figure (no_fee_for_number / not_published) and the official links to check."},"url":{"type":"string","format":"uri","description":"The office page on myfancynumber.com, pre-filtered to this number."},"reserveUrl":{"type":"string","format":"uri","description":"The official Parivahan portal where reservations happen."},"openElsewhere":{"type":"array","items":{"$ref":"#/components/schemas/Sighting"},"description":"Other offices in the state where the number is open. Empty when it is available here."}}}}}},"400":{"description":"Missing state, invalid office code, or invalid number.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown state code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — 120 requests per minute per IP.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/fees":{"get":{"operationId":"getFees","tags":["fees"],"summary":"State fancy-number fee schedules","description":"Without `state`: every state's fee status, source documents, the date the figures were checked, and official links. With `state`: that state's whole schedule (vehicle-class columns, tiers with their numbers or rules, fixed fee vs auction opening bid). With `state` and `number`: what that number costs there, as `StateFee` (every vehicle class, since no series is given). Figures come from each state's government notification; confirm on Parivahan before paying.","parameters":[{"name":"state","in":"query","required":false,"description":"Two-letter state or union-territory code (case-insensitive), e.g. KA, TN, TG, KL. GET /api/v1/states lists every code.","schema":{"type":"string","examples":["KA"]}},{"name":"number","in":"query","required":false,"description":"The 4-digit number, 1 to 4 digits (short values are zero-padded: 7 → 0007). `n` is accepted as an alias.","schema":{"type":"string","pattern":"^[0-9]{1,4}$","examples":["9999"]}}],"responses":{"200":{"description":"The index, a schedule, or one number's fee.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid number, or a number for Telangana (use availability or pool).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No fee schedule for that state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — 120 requests per minute per IP.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/pool":{"get":{"operationId":"listPool","tags":["numbers"],"summary":"The distinct numbers open at one office today","description":"Ascending, with the series each number is open in. Paginated because an office can hold all 10,000 numbers; `q` narrows to numbers containing (or starting/ending with) a digit string.","parameters":[{"name":"state","in":"query","required":true,"description":"Two-letter state or union-territory code (case-insensitive), e.g. KA, TN, TG, KL. GET /api/v1/states lists every code.","schema":{"type":"string","examples":["KA"]}},{"name":"rto","in":"query","required":true,"description":"Parivahan's short office code, e.g. 1 or 305. GET /api/v1/rtos?state=… lists every code for a state.","schema":{"type":"string","examples":["1"]}},{"name":"q","in":"query","required":false,"description":"Digits to filter by (up to 4), e.g. 786.","schema":{"type":"string","pattern":"^[0-9]{1,4}$"}},{"name":"match","in":"query","required":false,"description":"Where `q` must appear in the 4-digit number.","schema":{"type":"string","enum":["contains","starts","ends"],"default":"contains"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":100}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"One page of the office's pool.","content":{"application/json":{"schema":{"type":"object","required":["state","rtoCode","officeName","cityName","url","asOf","lastIngestedAt","series","totalDistinct","matched","offset","limit","numbers"],"properties":{"state":{"$ref":"#/components/schemas/StateRef"},"rtoCode":{"type":"string"},"officeName":{"type":"string"},"cityName":{"type":["string","null"]},"url":{"type":"string","format":"uri","description":"The office page on myfancynumber.com."},"asOf":{"type":["string","null"],"description":"Calendar day (IST, YYYY-MM-DD) the pool was published for. Availability is 'open as of that morning'; numbers leave the pool through the day as applicants reserve them.","examples":["2026-09-12"]},"lastIngestedAt":{"type":["string","null"],"format":"date-time","description":"Exact moment the state's pool was last refreshed, ISO-8601 UTC."},"series":{"type":"array","items":{"type":"object","required":["code","prefix","count"],"properties":{"code":{"type":"string","examples":["KA01AV"]},"prefix":{"type":"string","description":"Plate prefix; fullReg = prefix + number.","examples":["KA01AV"]},"count":{"type":"integer","description":"Numbers open in this series today."}}}},"totalDistinct":{"type":"integer","description":"Distinct numbers open at the office, before `q`."},"matched":{"type":"integer","description":"Distinct numbers after `q`."},"offset":{"type":"integer"},"limit":{"type":"integer"},"numbers":{"type":"array","items":{"$ref":"#/components/schemas/PoolNumber"}}}}}}},"400":{"description":"Missing state or invalid office code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown state code, or the office has no pool today.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — 120 requests per minute per IP.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"hint":{"type":"string","description":"Where to look for valid values, when applicable."}}},"StateRef":{"type":"object","required":["code","name"],"properties":{"code":{"type":"string","examples":["KA"]},"name":{"type":"string","examples":["Karnataka"]},"url":{"type":"string","format":"uri","description":"State page on myfancynumber.com (present on /api/v1/rtos)."}}},"State":{"type":"object","required":["code","name","status","rtoCount","asOf","lastIngestedAt","url","rtosApi"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["live","coming-soon","no-data"],"description":"live: a daily pool is ingested. coming-soon: partition exists, no pool yet. no-data: the state does not publish fancy numbers through a source this site can read."},"rtoCount":{"type":"integer"},"asOf":{"type":["string","null"],"description":"Calendar day (IST, YYYY-MM-DD) the pool was published for. Availability is 'open as of that morning'; numbers leave the pool through the day as applicants reserve them.","examples":["2026-09-12"]},"lastIngestedAt":{"type":["string","null"],"format":"date-time","description":"Exact moment the state's pool was last refreshed, ISO-8601 UTC."},"url":{"type":"string","format":"uri"},"rtosApi":{"type":"string","format":"uri","description":"GET /api/v1/rtos for this state."}}},"Office":{"type":"object","required":["rtoCode","officeName","cityName","available","url","poolApi"],"properties":{"rtoCode":{"type":"string","description":"Use as `rto` in other endpoints."},"officeName":{"type":"string"},"cityName":{"type":["string","null"]},"available":{"type":"integer","description":"Number of (series, number) rows open today."},"url":{"type":"string","format":"uri"},"poolApi":{"type":"string","format":"uri","description":"GET /api/v1/pool for this office."}}},"Sighting":{"type":"object","description":"One office where a number is open today.","required":["state","rtoCode","officeName","cityName","url","fullReg","series"],"properties":{"state":{"type":"string"},"rtoCode":{"type":"string"},"officeName":{"type":"string"},"cityName":{"type":["string","null"]},"url":{"type":"string","format":"uri","description":"The office page, pre-filtered to the number."},"fullReg":{"type":"string","description":"Reconstructed plate, e.g. KL01BZ7777."},"series":{"type":"array","items":{"type":"string"}}}},"Fee":{"type":"object","description":"Telangana's state reservation fee for the number's band.","required":["rupees","label"],"properties":{"rupees":{"type":"integer"},"label":{"type":"string","description":"As printed in the state schedule, e.g. Rs.1,50,000."}}},"FeeBrief":{"type":"object","description":"A number's fee in one line, for states other than Telangana: a single figure, or a range when it depends on the vehicle or on a condition.","required":["label","min","max","kind"],"properties":{"label":{"type":"string","description":"e.g. ₹6,000 or ₹5,000–15,000."},"rupees":{"type":"integer","description":"Present only when the fee is a single figure."},"min":{"type":"integer"},"max":{"type":"integer"},"kind":{"type":"string","enum":["fixed","reserve_price","minimum","mixed"],"description":"fixed: pay and it's yours; reserve_price: the auction's opening bid; minimum: at least this."}}},"StateFee":{"type":"object","description":"A number's fee from the state's published schedule (every state except Telangana). status is priced, no_fee_for_number (the schedule doesn't price it), or not_published (no schedule found; officialLinks point to where to check).","required":["status","feePage","checkedOn"],"properties":{"status":{"type":"string","enum":["priced","no_fee_for_number","not_published"]},"label":{"type":"string"},"rupees":{"type":"integer"},"min":{"type":"integer"},"max":{"type":"integer"},"kind":{"type":"string","enum":["fixed","reserve_price","minimum","mixed"]},"vehicleKnown":{"type":"boolean","description":"True when the series' vehicle class (from Parivahan) picked the rows in byVehicle."},"byVehicle":{"type":"array","items":{"type":"object","properties":{"vehicle":{"type":"string","description":"e.g. Private cars, Two-wheelers."},"classes":{"type":"array","items":{"type":"string"}},"options":{"type":"array","items":{"type":"object","properties":{"rupees":{"type":"integer"},"kind":{"type":"string"},"condition":{"type":["string","null"],"description":"When this option applies, e.g. if it's more than 1,000 ahead of the series' current number."}}}}}}},"specialNumber":{"type":["string","null"],"description":"The schedule's group for this number, if it names it."},"noPublishedFeeFor":{"type":"array","items":{"type":"string"}},"source":{"type":"object","properties":{"title":{"type":"string"},"url":{"type":"string","format":"uri"},"date":{"type":["string","null"]}}},"officialLinks":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string","format":"uri"}}}},"checkedOn":{"type":"string","format":"date"},"confidence":{"type":"string","enum":["high","medium","low"]},"feePage":{"type":"string","format":"uri","description":"The state's full fee list on myfancynumber.com."},"note":{"type":"string"}}},"PoolNumber":{"type":"object","required":["number","fullReg","series"],"properties":{"number":{"type":"string","pattern":"^[0-9]{4}$"},"fullReg":{"type":"string"},"series":{"type":"array","items":{"type":"string"}},"fee":{"anyOf":[{"$ref":"#/components/schemas/Fee"},{"$ref":"#/components/schemas/FeeBrief"}],"description":"Telangana as Fee; other states as FeeBrief, priced for the first series' vehicle class. Absent when no fee is published."}}}}}}