# Truck Stop Fuel Prices - Diesel & DEF at Love's, TA, RaceTrac (`yugenox/truck-stop-fuel-prices`) Actor

The chains' own posted truck diesel, auto diesel, DEF, gas, E85 and propane prices at every Love's, TA-Petro and RaceTrac, with truck parking, DEF lanes, showers, amenities and fuel-card site codes, plus status and open/close dates for every Pilot Flying J site.

- **URL**: https://apify.com/yugenox/truck-stop-fuel-prices.md
- **Developed by:** [Yugenox Corp](https://apify.com/yugenox) (community)
- **Categories:** Business, Travel
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 priced station saveds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Truck Stop Fuel Prices: Diesel & DEF at Love's, TA-Petro and RaceTrac

Get the **posted truck diesel, auto diesel, DEF, unleaded, midgrade, premium, E85, B20 and propane prices** for every Love's Travel Stop and Country Store, every TA, Petro and TA Express, and every RaceTrac, straight from each chain's own station pages. Each row also carries **truck parking spaces, DEF lanes, shower count, diesel lanes, amenities** (CAT scale, Transflo, RV dump, tire and truck service, laundry) and, for Love's, the **fuel-card network site codes** (Comdata, EFS, TCH, T-Chek, QuikQ, Fleet One, OPIS and more).

It also covers **every Pilot Flying J, One9 and dealer site** (about 937), with operating status ("Diesel temporarily unavailable", "Temporarily closed"), open, temporary-close, reopen and close dates, and lines of business. Pilot does not post prices on its website, so Pilot rows have status and amenities but no prices.

One run sweeps all four chains, about 1,880 priced stations plus the Pilot sites. You can also narrow it down by state, by distance from a point, or along a route.

### What you can use it for

- **Fleets and dispatch:** plan fuel stops on posted truck diesel and DEF prices, and see parking and shower capacity on the way.
- **Freight brokers:** use daily posted diesel by state and corridor as an input to fuel surcharges.
- **Fuel-card resellers:** match stations to Comdata / EFS / TCH / QuikQ site codes.
- **Trucker and RV apps:** show posted prices, parking spaces, DEF lanes and Pilot closures.
- **Fuel retailers:** watch Love's, TA and RaceTrac posted prices near your sites. Changes-only mode returns only the price moves.

### Input

| Field | What it does |
|---|---|
| Chains | `loves`, `ta-petro`, `racetrac`, `pilot`. Leave empty for all four. |
| States | Two-letter codes, e.g. `TX`, `OK`. Station pages outside these states are never fetched. |
| Fuel types | Keep only stations that post at least one of these (truck diesel, auto diesel, DEF, unleaded, midgrade, premium, E85, CNG, B20, propane). |
| Near: latitude / longitude + Radius (km) | Keep stations within a radius of a point. |
| Route waypoints + Route corridor (km) | Keep stations within N km of a route, given as `lat, lng` points in driving order. |
| Only changes since the last run | For schedules. The first run saves everything; later runs save only price moves, Pilot status changes and new sites, with the previous values. |
| Monitor name | A separate change memory per schedule. |
| Include amenities and fuel-card codes | Turn off for smaller rows. |
| Max rows | Cap on saved rows (0 = no limit). |

Example: every Love's and TA in Texas and Oklahoma that posts DEF:

```json
{ "chains": ["loves", "ta-petro"], "states": ["TX", "OK"], "fuelTypes": ["def"] }
```

### Output

One row per station. A real Love's row (trimmed):

```json
{
  "chain": "loves",
  "storeNumber": "1060",
  "name": "Love's Travel Stop Casper, WY",
  "siteType": "Travel Stop",
  "address": "3387 N Poplar St",
  "city": "Casper",
  "state": "WY",
  "zip": "82601",
  "latitude": 42.896528,
  "longitude": -106.338107,
  "highway": "I-25",
  "exit": "191",
  "truckDiesel": 6.189,
  "autoDiesel": 6.189,
  "def": 4.889,
  "unleaded": 3.789,
  "midgrade": 4.139,
  "premium": 4.389,
  "propane": 9.999,
  "currency": "USD",
  "unit": "gallon",
  "priceUpdatedAt": "2026-11-07T08:41:00",
  "truckParkingSpaces": 52,
  "defLanes": 6,
  "showers": 4,
  "dieselLanes": 6,
  "amenities": ["CAT Scale", "Transflo", "RV dump", "Laundry", "Private showers", "Dog park"],
  "fuelNetworkCodes": { "comdata": "WY055", "efs": "554426", "tChek": "40429", "quikq": "WY0085", "opis": "74826" },
  "url": "https://www.loves.com/locations/wy/casper/loves-travel-stop-casper-1060",
  "observedAt": "2026-11-08T01:55:12.000Z"
}
```

A Pilot Flying J row has the same address fields plus `status`, `statusDetail`, `openDate`, `temporaryCloseDate`, `reopenDate`, `closeDate` and `linesOfBusiness`, with every price set to `null`.

Every product a station posts is also in `allPrices`. That includes products without their own column, such as reefer fuel or LNG. For Love's it also has the credit price and the time of the last change. In changes-only mode, changed rows carry `changeStatus`, `changedFields`, `previous` and `priceDeltas`.

### Price

Pay per result:

- **$1.50 per 1,000 priced stations** (Love's, TA-Petro, RaceTrac rows)
- **$0.50 per 1,000 Pilot Flying J site rows** (status, no prices)
- **$0.30 per 1,000 unchanged stations** checked in changes-only mode
- **$0.003 per run start**

A full sweep of all four chains is about **$3.30**. A daily changes-only run on all chains, with few changes, is about **$0.85**. Stations with no posted price are not saved and not charged.

### Tips

- Schedule a daily run with **Only changes since the last run** on, and use a separate **Monitor name** for each schedule.
- Use **States** whenever you can. It is the fastest filter, because pages outside those states are never fetched.
- The first Near or Route run reads every station in the states it touches. Later runs remember station locations and skip pages outside the area.
- Posted prices are the retail prices on each chain's site, not fleet-card discounted prices. At many truck stops, truck diesel and auto diesel are posted at the same price.
- Love's posts the time of each price change. TA and RaceTrac don't, so `observedAt` is the time the page was read.

### FAQ

**Is it legal to scrape Love's, TA-Petro, RaceTrac and Pilot Flying J?**
This actor reads only public pages that anyone can open without logging in, and it follows each site's robots.txt. Fuel prices, addresses and amenities are facts about businesses. Check that your own use of the data meets the laws and terms that apply to you.

**Does it access any private data?**
No. It collects business information only: station addresses, the station's own phone line, posted prices and amenities. It never logs in, and it collects nothing about individual people.

**Why are there no prices for Pilot Flying J?**
Pilot does not show prices on its public location pages. The actor still returns every Pilot, Flying J and One9 site with its status and dates. That is how you can spot closures, reopenings and sites where diesel is unavailable.

**How fresh are the prices?**
They are read live from each chain's page at run time. Love's includes the time of the last price change.

**What happens if a chain's site is down?**
The run still finishes and keeps everything collected from the other chains. The status message says which chain was skipped, and you are not charged for anything that was not saved.

# Actor input Schema

## `chains` (type: `array`):

Which chains to check. Love's, TA-Petro and RaceTrac rows carry posted prices; Pilot Flying J / One9 rows carry site status, open/close dates and amenities (Pilot does not post prices on its site). Leave empty for all four.

## `states` (type: `array`):

Optional two-letter US state codes, e.g. TX, OK, GA. Pages outside these states are never fetched. Leave empty for all states.

## `fuelTypes` (type: `array`):

Keep only stations that post at least one of these. Every price the station posts is still returned. Leave empty for all.

## `nearLatitude` (type: `string`):

Optional. Keep only stations within the radius of this point, e.g. 35.4676. Use with Near: longitude.

## `nearLongitude` (type: `string`):

Optional, e.g. -97.5164.

## `radiusKm` (type: `integer`):

Radius around the Near point, in kilometres.

## `routeWaypoints` (type: `array`):

Optional. Keep only stations along a route: two or more 'latitude, longitude' points in driving order, e.g. '32.7767, -96.7970' then '29.7604, -95.3698'. Straight lines join the points, so add a waypoint at each big bend. Overrides Near.

## `corridorKm` (type: `integer`):

How far from the route line a station may be, in kilometres.

## `changesOnly` (type: `boolean`):

For scheduled runs. Remembers every station's prices (and Pilot status) in your account. The first run saves everything (baseline); later runs save only price moves, status changes and new sites, with the previous values. Unchanged stations are charged at the lower 'checked' rate. Sites that disappear are listed in REMOVED_SITES in the key-value store.

## `monitorName` (type: `string`):

Changes-only mode keeps a separate memory per name, so different schedules (e.g. 'texas' and 'all') don't interfere.

## `includeAmenities` (type: `boolean`):

Amenity lists, fuel-card network site codes (Love's) and Pilot's lines of business. Turn off for smaller rows.

## `maxStations` (type: `integer`):

Maximum rows to save (0 = no limit). A full sweep is about 1,880 priced stations plus 937 Pilot sites.

## `proxyConfiguration` (type: `object`):

Apify datacenter proxy (included in every plan) is the default and all this actor uses.

## Actor input object example

```json
{
  "chains": [
    "ta-petro"
  ],
  "states": [
    "TX"
  ],
  "fuelTypes": [],
  "radiusKm": 50,
  "routeWaypoints": [],
  "corridorKm": 15,
  "changesOnly": false,
  "monitorName": "default",
  "includeAmenities": true,
  "maxStations": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Posted prices, amenities and status per station.

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, counts per chain and requests.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "chains": [
        "ta-petro"
    ],
    "states": [
        "TX"
    ],
    "maxStations": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/truck-stop-fuel-prices").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "chains": ["ta-petro"],
    "states": ["TX"],
    "maxStations": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/truck-stop-fuel-prices").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "chains": [
    "ta-petro"
  ],
  "states": [
    "TX"
  ],
  "maxStations": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/truck-stop-fuel-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yugenox/truck-stop-fuel-prices"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/DKzelhikGug8a9dG0/builds/L3w7JaZnqipoD673S/openapi.json
