Public Vehicle Lookup API
Read-only, no API key required. Documentation for anyone integrating against G.L.A.S.S. vehicle data.
A small, stable, read-only endpoint for looking up vehicles by state and/or a search term. No API key or authentication is required — anyone with the URL can call it. It's separate from the endpoint the search box on the public page uses internally, which is free to change shape; this one is meant to stay put.
Parameters
| Name | Required | Description |
|---|---|---|
state |
No* | 2-letter state code (e.g. TX). Filters results to that state. |
query |
No* | Search term — matches plate, vehicle number, make, model, or state. Minimum 2 characters if given. |
* At least one of state or query is required. Give state
alone to browse every vehicle on file for that state; give query alone to search
regardless of state. Results are capped at 8 per request.
Example Requests
Search by plate/vehicle text within a state:
https://presswhatmatters.com/GLASS/api/vehicles.php?state=TX&query=ABC
Browse a state with no search term:
https://presswhatmatters.com/GLASS/api/vehicles.php?state=TX
Search across all states:
https://presswhatmatters.com/GLASS/api/vehicles.php?query=explorer
With curl:
curl "https://presswhatmatters.com/GLASS/api/vehicles.php?state=TX&query=ABC"
Example Response
{
"query": "ABC",
"state": "TX",
"count": 1,
"results": [
{
"plate": "ABC-1234",
"vehicleNo": "FLT-TX-8819",
"state": "TX",
"make": "Ford",
"model": "F-150",
"year": "2019",
"status": "active",
"lastSeen": "2 hrs ago",
"photo": null,
"photos": [],
"reports": []
}
]
}
photo/photos point to filenames under /uploads/photos/ when a
vehicle has one on file. reports lists any attached incident/commendation records.
An invalid request returns { "error": "..." } with a 4xx/5xx status instead of results.