GlobalPetrolPrices Fuel Prices Scraper avatar

GlobalPetrolPrices Fuel Prices Scraper

Pricing

Pay per event

Go to Apify Store
GlobalPetrolPrices Fuel Prices Scraper

GlobalPetrolPrices Fuel Prices Scraper

⛽ Scrape public GlobalPetrolPrices country fuel price tables for gasoline, diesel, LPG, and electricity into clean datasets.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Stas Persiianenko

Stas Persiianenko

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Share

Scrape public country-level gasoline, diesel, LPG, and electricity price tables from GlobalPetrolPrices into clean Apify datasets.

What does GlobalPetrolPrices Fuel Prices Scraper do?

GlobalPetrolPrices Fuel Prices Scraper collects the public price tables published on GlobalPetrolPrices and turns them into structured rows.

The actor is designed for repeat monitoring, dashboards, and API workflows where you need country-level fuel price snapshots without manually copying table data.

It currently supports:

  • Gasoline prices
  • Diesel prices
  • LPG prices
  • Electricity prices

Each output row represents one country or market in one selected table.

Why use this scraper?

GlobalPetrolPrices pages are useful for manual research, but the website is not a ready-to-query database.

This actor normalizes the public tables into a consistent dataset so you can:

  • export rows to CSV, JSON, Excel, XML, or RSS,
  • connect price snapshots to BI dashboards,
  • compare fuel-price rankings across countries,
  • run scheduled monitoring tasks,
  • use the Apify API from applications and agents.

Who is it for?

Fleet and logistics teams

Fleet operators can refresh country-level fuel assumptions for route planning, regional cost models, procurement analysis, or internal dashboards.

Typical workflows:

  • compare diesel price levels across operating regions,
  • update monthly fuel-cost assumptions for cross-border routes,
  • enrich transport-cost models with country fuel benchmarks,
  • monitor whether a country has moved up or down in the public ranking.

Market analysts and commodity researchers

Analysts can collect repeatable snapshots of public fuel-price tables for reports, spreadsheets, or market intelligence systems.

Typical workflows:

  • build a country-by-country fuel-price database,
  • compare gasoline, diesel, LPG, and electricity in one normalized export,
  • combine fuel-price rows with macroeconomic indicators,
  • refresh dashboard data on a schedule.

Travel, route-cost, and mobility products

Travel tools and mobility apps can use country-level fuel assumptions as one input in cost estimates.

Typical workflows:

  • populate route-cost calculators with current gasoline or diesel assumptions,
  • show country-level fuel benchmarks in trip-planning content,
  • enrich destination pages with public fuel-price context,
  • keep fuel assumptions synchronized without manual table copying.

Data journalists and researchers

Journalists, academics, and public-policy researchers can quickly export comparable country rows for analysis and visualization.

Typical workflows:

  • rank markets by public gasoline or diesel price,
  • create charts for energy-affordability stories,
  • compare fossil fuel and electricity price tables,
  • archive monthly public snapshots for longitudinal research.

What data can it extract?

The actor extracts the public country rows visible in GlobalPetrolPrices fuel and electricity tables.

Supported table types:

Fuel type inputSource page typeTypical unit
gasolineGasoline pricesliter
dieselDiesel pricesliter
lpgLPG pricesliter
electricityElectricity priceskWh

The source may update available countries, values, dates, or labels over time. The actor saves what is visible in the public table at run time.

Output fields

FieldTypeDescription
fuelTypestringSelected table type: gasoline, diesel, LPG, or electricity.
countrystringCountry or market label from the source table.
priceUsdnumberPublic price in USD as parsed from the table.
unitstringUnit such as liter or kWh.
currencystringCurrency of the normalized price field, currently USD for priceUsd.
datestringSource table date when available.
rankintegerRow order from the source table, useful for ranking views.
countryUrlstringCountry page URL when the source row links to one.
sourceUrlstringGlobalPetrolPrices table URL used for the row.
scrapedAtstringISO timestamp when the row was collected.
urlstringCanonical row/source URL for downstream tools.

Output example

{
"fuelType": "gasoline",
"country": "USA",
"priceUsd": 0.9,
"unit": "liter",
"currency": "USD",
"date": "2026-06-02",
"rank": 48,
"countryUrl": "https://www.globalpetrolprices.com/USA/gasoline_prices/",
"sourceUrl": "https://www.globalpetrolprices.com/gasoline_prices/",
"scrapedAt": "2026-06-08T09:00:00.000Z",
"url": "https://www.globalpetrolprices.com/gasoline_prices/"
}

Input options

The actor keeps input intentionally small.

fuelTypes

Choose one or more public tables to scrape.

Allowed values:

  • gasoline
  • diesel
  • lpg
  • electricity

Default: gasoline and diesel.

maxItems

Maximum number of dataset rows to save across all selected fuel types.

Use a small number for testing and a larger number when you want the full country table coverage.

Default: 20.

How to use it in Apify Console

  1. Open the actor on Apify.
  2. Select the fuel types you need.
  3. Set maxItems to the desired row cap.
  4. Start the run.
  5. Download the dataset or connect it to another integration.

For a full snapshot, select all fuel types and set maxItems high enough to cover all rows you need.

Scheduling fuel price monitoring

Create an Apify task from a tested input and schedule it weekly or monthly.

A scheduled task is useful when you need:

  • a recurring dashboard refresh,
  • a historical archive of public price snapshots,
  • alerts when downstream comparisons detect large changes,
  • repeat exports to cloud storage or Google Sheets.

Pricing

This actor uses pay-per-event pricing.

There are two event types:

  1. Run started — a one-time start event of $0.005 per run.
  2. Result extracted — a per-row event charged for each saved dataset item.

Current result-event prices are:

User tierPrice per result
FREE$0.0005175
BRONZE$0.00045
SILVER$0.000351
GOLD$0.00027
PLATINUM$0.00018
DIAMOND$0.000126

Pricing examples

Approximate charges before any platform taxes, credits, or account-level differences:

Example runTierFormulaApprox. actor charge
20 rowsFREE$0.005 + 20 × $0.0005175$0.01535
150 rowsBRONZE$0.005 + 150 × $0.00045$0.07250
500 rowsSILVER$0.005 + 500 × $0.000351$0.18050
1,000 rowsGOLD$0.005 + 1,000 × $0.00027$0.27500

The exact total shown by Apify may include platform-level billing details outside the actor's event prices.

Pricing note: platform minimum floor

This is a very lightweight HTTP actor. Internal cost testing produced a formula-derived BRONZE result price below Apify's accepted minimum tier price.

Because sub-minimum event prices are rejected by the Apify platform, the live BRONZE price uses the platform-safe floor of $0.00045 per result.

That floor is why the BRONZE result price is higher than a pure cost-plus formula would suggest for this specific actor. The price is still below many comparable fuel, vehicle, map, and market-data pay-per-event scrapers.

Free-plan estimate

A small test run with the default input (fuelTypes: gasoline and diesel, maxItems: 20) is designed to stay low-cost.

At FREE-tier event pricing, the actor charge estimate is:

$0.005 start event + (20 rows × $0.0005175) = $0.01535

If you only need a quick sample, keep maxItems near the default. If you need full coverage, increase maxItems and use the pricing table above to estimate the event charge.

API usage with Node.js

import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("automation-lab/globalpetrolprices-fuel-prices-scraper").call({
fuelTypes: ["gasoline", "diesel"],
maxItems: 250,
});
console.log(run.defaultDatasetId);

API usage with Python

from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("automation-lab/globalpetrolprices-fuel-prices-scraper").call(
run_input={"fuelTypes": ["gasoline"], "maxItems": 100}
)
print(run["defaultDatasetId"])

API usage with cURL

curl -X POST "https://api.apify.com/v2/acts/automation-lab~globalpetrolprices-fuel-prices-scraper/runs?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"fuelTypes":["gasoline","diesel"],"maxItems":250}'

Downloading results with the API

After a run succeeds, use the dataset export endpoint.

$curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json&clean=true&token=$APIFY_TOKEN"

You can replace json with csv, xlsx, xml, or another supported dataset format.

MCP usage

Use this actor from MCP clients with:

https://mcp.apify.com/?tools=automation-lab/globalpetrolprices-fuel-prices-scraper

Example prompt:

Scrape gasoline and diesel prices and summarize the five most expensive countries.

Claude Code setup:

$claude mcp add apify-globalpetrolprices https://mcp.apify.com/?tools=automation-lab/globalpetrolprices-fuel-prices-scraper

Claude Desktop JSON config:

{
"mcpServers": {
"apify-globalpetrolprices": {
"url": "https://mcp.apify.com/?tools=automation-lab/globalpetrolprices-fuel-prices-scraper"
}
}
}

Integration ideas

Common integrations include:

  • Google Sheets for lightweight dashboarding,
  • BigQuery, Snowflake, or PostgreSQL for historical analysis,
  • Zapier or Make for alert workflows,
  • internal fleet-cost calculators,
  • notebooks for research and visualization,
  • AI agents that need current public fuel-price context.

Data quality notes

The actor reads public GlobalPetrolPrices HTML tables. It does not estimate missing values or infer hidden data.

Keep these points in mind:

  • country coverage depends on the source table,
  • dates and labels may vary by fuel type,
  • source pages can change structure over time,
  • maxItems may intentionally limit saved rows,
  • rankings reflect the row order parsed from the source page.

Limits

This actor is not a station-level fuel-price scraper. It does not collect individual gas station addresses, city-level prices, live pump prices, or user-submitted local prices.

It is intended for country-level public fuel and electricity price tables.

Tips for best results

  • Use maxItems 10–30 when testing.
  • Select one fuel type when debugging a downstream workflow.
  • Select all fuel types for broad market dashboards.
  • Schedule runs at a cadence that matches your reporting needs.
  • Store previous datasets if you need historical comparisons.

Troubleshooting

The run returned fewer rows than expected

Increase maxItems or select fewer fuel types. The cap applies across the whole run.

A field is missing or null

The value may not have been available in the source row. Check the sourceUrl and source page date.

The page layout changed

Open an actor issue with the run ID and input. Layout changes can require parser updates.

The run is too small for my dashboard

Increase maxItems and select all fuel types that your dashboard needs.

Legality and responsible use

This actor extracts publicly visible pages from GlobalPetrolPrices.

You are responsible for using the data in accordance with applicable laws, source terms, attribution requirements, and your own compliance policies.

Do not use this actor to overload the source website. Schedule reasonable runs and avoid unnecessary repetition.

Other Automation Lab actors that may complement fuel-price analysis:

FAQ

Does it require login?

No. It reads public pages.

Does it use a browser?

No. It uses HTTP requests and HTML parsing.

Does it use proxies?

No proxy is required for normal operation.

Can I export to CSV?

Yes. Apify datasets can be exported to CSV, JSON, Excel, XML, RSS, and other formats.

Can I scrape only diesel prices?

Yes. Set fuelTypes to ["diesel"].

Can I get historical fuel prices?

This actor saves the current public table at run time. To build history, schedule recurring runs and keep the datasets.

Changelog

Initial version extracts public country-level fuel price tables from GlobalPetrolPrices.