dat.com APIdat.com ↗
Access DAT freight market conditions, diesel fuel prices, historical rate trends, and blog content via a structured API. Van, reefer, and flatbed data included.
// select an endpoint above
About the dat.com API
The DAT.com API exposes 6 endpoints covering freight market conditions, diesel fuel prices, and up to 3 years of monthly rate history across equipment types. The get_market_conditions endpoint returns load-to-truck ratios and spot rate percentage changes for van, reefer, flatbed, and national segments on week-over-week, month-over-month, and year-over-year bases — without requiring a DAT subscription.
Market Conditions and Fuel Prices
get_market_conditions returns trend objects for four segments — vanTrends, reeferTrends, flatbedTrends, and nationalTrends — each carrying percentage changes in load-to-truck ratio and spot rate across three time horizons. nationalTrends also includes load posting and truck posting change data. get_fuel_prices returns two fields: when (the report date in YYYY-MM-DD format) and pricePerGallon USD, the national average diesel price.
Historical Rate Trends
get_rate_trends accepts two optional parameters — equipment (VAN, REEFER, or FLATBED) and rate_type (SPOT or CONTRACT) — and returns an array of monthly rate objects spanning approximately 36 months. Each object includes year, month, rateUSD (national average per mile), and averageFuelSurchargePerTripUsd. This makes it suitable for time-series analysis without managing your own historical data collection.
Blog and Resource Library
get_blog_posts retrieves posts from DAT's 'The Edge' blog, returning 12 posts per page with fields including title, content, date, img_url, category_name, and url. A total_records count enables pagination planning. search_resources queries the DAT resource library — covering guides, white papers, and toolkits — by keyword, returning objects with id, name, content, excerpt, url, date, slug, and image URLs, along with total_pages, total_posts, and current_page for full pagination control.
- Monitor weekly load-to-truck ratio shifts across van, reefer, and flatbed segments to time freight procurement decisions.
- Track national diesel price movements using
get_fuel_pricesto model carrier cost exposure in fuel surcharge calculations. - Build 3-year rate trend charts by equipment type and rate type using the monthly
rateUSDandaverageFuelSurchargePerTripUsdfields. - Feed contract vs. spot rate comparisons into shipper dashboards using
get_rate_trendswith differentrate_typevalues. - Aggregate DAT blog content into industry newsletters or internal logistics briefings using
get_blog_posts. - Index DAT white papers and guides in an internal search tool using
search_resourceskeyword filtering and pagination. - Alert systems that flag when year-over-year spot rate changes exceed a threshold, using
nationalTrendsfields fromget_market_conditions.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does DAT have an official developer API?+
What time horizons does `get_market_conditions` cover?+
get_market_conditions returns percentage changes for three periods: week-over-week, month-over-month, and year-over-year. Each of the four trend objects (van, reefer, flatbed, national) includes both load-to-truck ratio and spot rate changes across all three horizons. It does not return absolute rate values — only directional percentage changes.Can I retrieve rate trend data for a specific lane or origin-destination pair?+
get_rate_trends returns national averages aggregated by equipment type (VAN, REEFER, FLATBED) and rate type (SPOT, CONTRACT). Lane-level or origin-destination breakdowns are not exposed. You can fork this API on Parse and revise it to add a lane-specific endpoint if that granularity is available from the source.Does the API expose real-time load board postings or individual shipment data?+
How far back does the historical rate data in `get_rate_trends` go?+
year, month, rateUSD, and averageFuelSurchargePerTripUsd. The exact start date depends on what DAT publishes and may shift over time.