# Real time Capabilities

With GenLogs' Real-Time API, you can instantly identify carriers with the right equipment who are currently within a 150-mile radius of your origin and are likely seeking backhauls to your destination. Integrate Real-Time GenLogs data into your TMS and internal systems to unlock new opportunities, increase efficiency, and reduce empty miles.

When the real\_time parameter is set to 'True', the recommendation system prioritizes real-time data by applying additional weight to recent detections near the origin of the search. While the recommendations still incorporate historical data and follow the usual logic, the real-time information takes precedence, resulting in a more dynamic focus on current activity.

### Permissions

The `realtime-api` permission is required to use this parameter.

{% hint style="warning" %}
*The* `real_time` *parameter is available exclusively to premium users. Reach out to us at* [*support@genlogs.io*](mailto:support@genlogs.io) *now to unlock Real-Time freight data.*
{% endhint %}

### **Endpoint** <a href="#endpoint" id="endpoint"></a>

* **URL:** `https://api.genlogs.io/carrier/recommendations`
* **Method:** `GET`

### **Headers** <a href="#headers" id="headers"></a>

* **Access-Token**: `token` (string, required): The access token obtained from the "Create Access Token" endpoint.
* **x-api-key** (string, required): The API key provided by GenLogs. This header must be included in the request

### **Query Parameters** <a href="#query-parameters" id="query-parameters"></a>

Use the `real_time` parameter in addition to the required and optional base parameters described in the [Carrier Recommendations](https://docs.genlogs.io/carrier/recommendations#query-parametersreal_time) document.

1. **real\_time** (boolean, optional): Indicates whether to return recommendations that include real-time detections. If enabled, carriers recently seen within 150-mi of your search radius will be returned.

*Tip: A 403 error received while using the real\_time parameter signifies that your user account lacks access to this premium feature. To resolve this, please verify your access level. If you require further assistance, don't hesitate to contact our support team at* [*support@genlogs.io*](mailto:support@genlogs.io)*.*

### **Response Body** <a href="#response-body" id="response-body"></a>

1. **real\_time\_locs** (dictionary of locations where real time carrier observations)
   1. dot\_number: string, usdot of the detected carrier.
   2. current\_lon: float, longitude of the detection location.
   3. current\_lat: float, latitude of the detection location.
   4. is\_inbound (bool): flag indicates when a carrier is currently inbound to the origin
2. **recommendations** (array of `CarrierRecommendation` objects): List of recommended carriers. See [Carrier Recommendation](https://docs.genlogs.io/carrier/recommendations#response-body) docs for more.
3. `is_inbound` appears in: \[1] real\_time\_locs\[is\_inbound], \[2] rt\_detection\_detail\[]\[is\_inbound] – both mean carrier inbound to origin.

Request Example

```
curl -X GET 'https://api.genlogs.io/carrier/recommendations?origin_city=Tucker&origin_state=Georgia&destination_city=Orange+Park&destination_state=Florida&origin_radius=50.0&destination_radius=50.0&fleet_size_min=0&fleet_size_max=1000&preferred_carriers=True&real_time=True' \
-H 'Access-Token: {access_token}' \
-H 'x-api-key: {your_api_key}' \
-i
```

{% openapi src="/files/UYtSuHG8wztE6yerobcS" path="/carrier/recommendations" method="get" %}
[last\_carrier\_api\_12\_feb2025.json](https://2315646207-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTWLd9L6wPqgOLglGkVHP%2Fuploads%2FW4aGbEH2IhULS0FeBW7u%2Flast_carrier_api_12_feb2025.json?alt=media\&token=5745b6f7-f435-451f-8ed3-16816a7d9cf7)
{% endopenapi %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.genlogs.io/carrier/recommendations/real-time-capabilities.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
