Skip to main content

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 lat and lon. It does not accept airports.
  • It rejects unknown parameters.
  • It adds verified, interstate, and intrastate filters.
  • It adds verification and badge fields to each item.
  • It returns Connect API problem errors, not core’s {"success": false, "message": ...} errors.
Do not use one as a drop-in replacement for the other.

Base URL

The production Connect API base URL is https://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.
The Connect API service verifies the token with Core and applies the fleet-search access policy. Use the page-size limits below, not Core Fleet Search’s page-size rules.

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.
The query schema checks that lat, lon and radius_km are finite numbers, but does not enforce geographic ranges or a positive radius. Send valid geographic coordinates and a positive radius. Backend validation can differ. A search failure can return 502 downstream_failure, rather than a query-validation 400.

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, interstate and intrastate, then applies offset and limit. total is 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, fleetId or fleet_id. An item with no usable identity has no matched verification record. Badge fields also depend on certification data.
The public query has no 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:
The contract fixes only the envelope: 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, or null), isVerified (boolean), auditBadge ("gold", "blue", or null), and auditBadgePlus (boolean).
Illustrative item (not a complete contract):
The service adds the verification and badge fields only when the result has at least one item with a griddid.

200 with success: false

If the candidate response is not a successful fleet search, the service can return 200 with a failure body:
The message can contain the candidate service’s message. Check success on every response.

Error responses

Errors use the application/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.