{
  "openapi": "3.0.1",
  "info": {
    "title": "Truck Stop Fuel Prices - Diesel & DEF at Love's, TA, RaceTrac",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "L3w7JaZnqipoD673S"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~truck-stop-fuel-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-truck-stop-fuel-prices",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/yugenox~truck-stop-fuel-prices/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-truck-stop-fuel-prices",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/yugenox~truck-stop-fuel-prices/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-truck-stop-fuel-prices",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "chains": {
            "title": "Chains",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string",
              "enum": [
                "loves",
                "ta-petro",
                "racetrac",
                "pilot"
              ],
              "enumTitles": [
                "Love's",
                "TA / Petro",
                "RaceTrac",
                "Pilot Flying J / One9 (status only)"
              ]
            },
            "default": []
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Optional two-letter US state codes, e.g. TX, OK, GA. Pages outside these states are never fetched. Leave empty for all states.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "fuelTypes": {
            "title": "Fuel types",
            "type": "array",
            "description": "Keep only stations that post at least one of these. Every price the station posts is still returned. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "diesel",
                "autoDiesel",
                "def",
                "unleaded",
                "midgrade",
                "premium",
                "e85",
                "cng",
                "b20",
                "propane"
              ],
              "enumTitles": [
                "Truck diesel",
                "Auto diesel",
                "DEF",
                "Unleaded / regular",
                "Midgrade",
                "Premium",
                "E85",
                "CNG",
                "B20 biodiesel",
                "Propane"
              ]
            },
            "default": []
          },
          "nearLatitude": {
            "title": "Near: latitude",
            "type": "string",
            "description": "Optional. Keep only stations within the radius of this point, e.g. 35.4676. Use with Near: longitude."
          },
          "nearLongitude": {
            "title": "Near: longitude",
            "type": "string",
            "description": "Optional, e.g. -97.5164."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Radius around the Near point, in kilometres.",
            "default": 50
          },
          "routeWaypoints": {
            "title": "Route waypoints",
            "type": "array",
            "description": "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.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "corridorKm": {
            "title": "Route corridor (km)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How far from the route line a station may be, in kilometres.",
            "default": 15
          },
          "changesOnly": {
            "title": "Only changes since the last run",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Changes-only mode keeps a separate memory per name, so different schedules (e.g. 'texas' and 'all') don't interfere.",
            "default": "default"
          },
          "includeAmenities": {
            "title": "Include amenities and fuel-card codes",
            "type": "boolean",
            "description": "Amenity lists, fuel-card network site codes (Love's) and Pilot's lines of business. Turn off for smaller rows.",
            "default": true
          },
          "maxStations": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum rows to save (0 = no limit). A full sweep is about 1,880 priced stations plus 937 Pilot sites.",
            "default": 5000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (included in every plan) is the default and all this actor uses.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}