Fleet Search (Connect API)
GET /api/fleets/search finds fleet vehicles near a latitude and longitude. Use it for a compatible coordinate-based search with verification or audit-badge filters. Keep Core Fleet Search when you need airport-code search.
Results follow company and fleet visibility rules, then verification and audit-badge filters. Match the query and response fields below before changing an existing integration.
This endpoint is not the same as Fleet Search on core (
GET https://core.grdd.net/api/search/fleet). Differences:- It runs on the Connect API service, not on core.
- It needs
latandlon. It does not acceptairports. - It rejects unknown parameters.
- It adds
verified,interstate, andintrastatefilters. - It adds verification and badge fields to each item.
- It returns Connect API problem errors, not core’s
{"success": false, "message": ...}errors.
Base URL
The production Connect API base URL ishttps://data.grdd.net. The examples use a shell variable:
Endpoint
GET $CONNECT_API_BASE_URL/api/fleets/search
Authentication
Send a token that core issued. See the Get Token API.Query parameters
lat and lon are required. The service rejects any parameter that is not in this table with 400. Each parameter can occur only once.
The boolean parameters accept only the text
true or false. If you send interstate=true and intrastate=true, an item matches if its badge is gold or blue.
How the filters work
- The Connect-owned search finds companies with service locations near the point and reads their visible, active fleet records. Profile visibility and approximate-address rules can affect the results.
- The service adds verification and certification badge fields, applies
verified,interstateandintrastate, then appliesoffsetandlimit.totalis the count after those filters and before pagination. - If fleet candidates are unavailable or incomplete, the service returns an error rather than a successful partial result.
- Verification uses the fleet identity available in
id,fleetIdorfleet_id. An item with no usable identity has no matched verification record. Badge fields also depend on certification data.
airports parameter. Resolving an airport to a coordinate is not a guarantee of identical coverage, ordering or results.
Example request
Success response
200 - OK The body has the same envelope as core’s Fleet Search:data.items as an array, data.total as an integer, and data.warnings as an array. It does not fix every item field. Candidate fields depend on the configured backend. The service changes them as follows:
- If an item has photo fields, it normalizes them and puts the photo URL in
imageUrl. - It adds
verificationDate(a number, ornull),isVerified(boolean),auditBadge("gold","blue", ornull), andauditBadgePlus(boolean).
griddid.
200 with success: false
If the candidate response is not a successful fleet search, the service can return 200 with a failure body:
message can contain the candidate service’s message. Check success on every response.
Error responses
Errors use theapplication/problem+json content type. The body has code, message, correlationId, and retryable. fieldErrors appears when it applies.
The service can also return
500 with internal_error for an unexpected failure.