Cargado API is in beta. The API may change in breaking ways.
curl --request POST \
--url https://api.cargado.com/rates/history \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"requests": [
{
"stops": [
{
"type": "PICKUP",
"placeDetails": {
"place": {
"address": "<string>",
"type": "ADDRESS_STRING"
},
"coordinates": {
"latitude": 0,
"longitude": 0
}
}
}
],
"trailerRequirements": {
"allowedTypes": [
"DRY_VAN"
]
},
"routeMiles": 123
}
]
}
'{
"results": [
{
"type": "DATA",
"id": "<string>",
"rateHistory": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"pricingLane": {
"origin": {
"type": "MARKET",
"market": {
"id": "<string>",
"name": "<string>",
"code": "<string>",
"countryCode": "US",
"centroid": {
"latitude": 0,
"longitude": 0
}
}
},
"destination": {
"type": "MARKET",
"market": {
"id": "<string>",
"name": "<string>",
"code": "<string>",
"countryCode": "US",
"centroid": {
"latitude": 0,
"longitude": 0
}
}
},
"trailerCategory": "DRY_VAN",
"usMxBorderCrossing": "LAREDO_INTL_BRIDGE"
},
"currencyCode": "USD",
"latestSuggestedRate": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
},
"suggestedRates": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
],
"perMileRates": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
],
"latestAllInRate": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
},
"allInRates": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
],
"routeMiles": 123,
"routeMilesWithDeadhead": 123,
"latestPerMileRate": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
},
"alternateRateHistories": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"pricingLane": {
"origin": {
"type": "MARKET",
"market": {
"id": "<string>",
"name": "<string>",
"code": "<string>",
"countryCode": "US",
"centroid": {
"latitude": 0,
"longitude": 0
}
}
},
"destination": {
"type": "MARKET",
"market": {
"id": "<string>",
"name": "<string>",
"code": "<string>",
"countryCode": "US",
"centroid": {
"latitude": 0,
"longitude": 0
}
}
},
"trailerCategory": "DRY_VAN",
"usMxBorderCrossing": "LAREDO_INTL_BRIDGE"
},
"currencyCode": "USD",
"latestSuggestedRate": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
},
"suggestedRates": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
],
"perMileRates": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
],
"latestAllInRate": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
},
"allInRates": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
],
"routeMiles": 123,
"routeMilesWithDeadhead": 123,
"latestPerMileRate": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
}
]
}
]
}Look up the rate history for a lane. This is considered a mutation because it is a metered operation and calls are recorded for possible billing purposes.
See the usage guide.
curl --request POST \
--url https://api.cargado.com/rates/history \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"requests": [
{
"stops": [
{
"type": "PICKUP",
"placeDetails": {
"place": {
"address": "<string>",
"type": "ADDRESS_STRING"
},
"coordinates": {
"latitude": 0,
"longitude": 0
}
}
}
],
"trailerRequirements": {
"allowedTypes": [
"DRY_VAN"
]
},
"routeMiles": 123
}
]
}
'{
"results": [
{
"type": "DATA",
"id": "<string>",
"rateHistory": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"pricingLane": {
"origin": {
"type": "MARKET",
"market": {
"id": "<string>",
"name": "<string>",
"code": "<string>",
"countryCode": "US",
"centroid": {
"latitude": 0,
"longitude": 0
}
}
},
"destination": {
"type": "MARKET",
"market": {
"id": "<string>",
"name": "<string>",
"code": "<string>",
"countryCode": "US",
"centroid": {
"latitude": 0,
"longitude": 0
}
}
},
"trailerCategory": "DRY_VAN",
"usMxBorderCrossing": "LAREDO_INTL_BRIDGE"
},
"currencyCode": "USD",
"latestSuggestedRate": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
},
"suggestedRates": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
],
"perMileRates": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
],
"latestAllInRate": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
},
"allInRates": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
],
"routeMiles": 123,
"routeMilesWithDeadhead": 123,
"latestPerMileRate": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
},
"alternateRateHistories": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"pricingLane": {
"origin": {
"type": "MARKET",
"market": {
"id": "<string>",
"name": "<string>",
"code": "<string>",
"countryCode": "US",
"centroid": {
"latitude": 0,
"longitude": 0
}
}
},
"destination": {
"type": "MARKET",
"market": {
"id": "<string>",
"name": "<string>",
"code": "<string>",
"countryCode": "US",
"centroid": {
"latitude": 0,
"longitude": 0
}
}
},
"trailerCategory": "DRY_VAN",
"usMxBorderCrossing": "LAREDO_INTL_BRIDGE"
},
"currencyCode": "USD",
"latestSuggestedRate": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
},
"suggestedRates": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
],
"perMileRates": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
],
"latestAllInRate": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
},
"allInRates": [
{
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
],
"routeMiles": 123,
"routeMilesWithDeadhead": 123,
"latestPerMileRate": {
"dayRange": {
"start": "2023-12-25",
"end": "2023-12-25"
},
"amountDistribution": {
"p25": 123,
"p50": 123,
"p75": 123
},
"marginOfError": 123,
"relativeMarginOfError": 123,
"confidenceScore": 123,
"confidence": "STRONG"
}
}
]
}
]
}See the Rate Lookup guide for more information.
A list of load descriptions to get rate history for.
1 - 16 elementsShow child attributes
Ok
The result for each input request; the request and result arrays are the same size and their elements map 1:1. Each result is either a successful lookup or an error; each request succeeds or fails independently.
See the Rate Lookup guide for more information.
Show child attributes