eklitrePrice alerts

Which fuel price documents does OGRA publish, and which can be read?

Old price documents stay online after they leave OGRA’s listing, under ids nothing links to. Most older ones are scans no parser can read.

Published 22 August 2026. Updated 13 October 2026.

In this note
  1. Do OGRA’s documents disappear when they leave the listing?No. What is lost is any way to find them.
  2. Why can’t a filename identify a document?21 ids in a row share 1 filename and serve 21 different files.
  3. Which kinds of document does OGRA serve?6 kinds, and only 1 holds a build-up a parser can read.
  4. What does this change about the record?2 claims withdrawn, 1 real limit, and the value that is really there.
  5. How is the map of OGRA’s documents kept?15,000 header requests, 0.9 seconds apart, done once and gently.
  6. What else do people ask?5 quick answers.

The Oil and Gas Regulatory Authority (OGRA) keeps old price documents online after they leave its listing. Most older ones are scans, not text.

I first said the opposite. I read OGRA’s listing, found 22 documents on it, and built a record 22 days long.

I then wrote, in several places on this site, that OGRA overwrites its own page. So, I said, this archive was the only lasting copy.

Both parts of that were wrong. This note is the correction, and an account of the sweep that found it.

Every claim below names the document id it was read from. You can fetch the same bytes and check it yourself.

The sweep ran on 21 August 2026. What a server answers is a fact about that day only.

OGRA has promised nothing about any day after it.

Do OGRA’s documents disappear when they leave the listing?

No. OGRA’s download address still answers for ids far below anything its listing has shown for weeks.

The address is https://www.ogra.org.pk/download/<id>?lang=en. It answers for ids in the low hundreds, and all the way up to the newest publication.

Id 140 serves a slide deck from a consultative session. Id 160 serves a file called test_job.pdf.

What changes is the listing. It shows about 20 documents, newest first, with no further pages and nothing behind it.

So a publication drops out of view within a few weeks. After that, nothing on ogra.org.pk links to it.

It is not withdrawn. It just becomes impossible to find.

That is a real loss, but not the one I claimed. The only durable copy says the bytes are gone, and they are not.

What is gone is any way to find them. Also gone is any promise that OGRA will keep serving them.

The id range is not a published interface. OGRA never promised to keep it, and it can stop answering without notice.

Why can’t a binary search find the lowest id?

Because the ids have gaps. 4300, 4330, 4331 and 4333 all answer 404, while 4332 and 4334 serve documents.

A binary search halves the range again and again. With gaps, it can stop at a gap and call that the end.

That is how I came to believe 4334 was the lowest id that answers. In fact, the ids run several thousand lower.

This error shows no symptom. A binary search that stops at a gap still returns a number, and the number looks like an answer.

Nothing later can tell it from the real lowest id. The sweep that replaced it is slow on purpose; the last section explains why.

Why can’t a filename identify a document?

OGRA sets each file’s name, in the Content-Disposition header, from the document’s effective date. So several documents share 1 name.

For example, ids 14675 to 14695 give 21 header requests in a row the same answer:

attachment; filename=prices_effective_dated_july_23_2026.pdf

Behind that 1 name are 21 different PDFs, of very different sizes.

Id 14666 is 50,433 bytes, 14675 is 735,194 and 14690 is 265,804.

So a filename dates a document and places it in a family. It never says which document it is.

Nothing in this record is keyed on a filename. The catalogue keeps it as evidence, not as an identifier.

What identifies a document here is the SHA-256 of its bytes, a fingerprint of the file. The archive lists each document under it.

Which kinds of document does OGRA serve?

OGRA serves everything it publishes from 1 download address. I sorted the documents first by what each filename says.

For 1 family the filename did not settle it, so I also sorted by what is inside.

FamilyWhat it isReadable?
price_publication…The daily price build-up this project reads — and, before it, one-page price-change notices under the same nameText layer. The build-ups parse; the notices are refused
prices_effective_dated_…One oil marketing company’s retail outlets and the pump price at each. About two thirds of everything OGRA servesText layer, and nothing in it about what a price is made of
detail_computation_ex_depot_sale_price_…The build-up’s predecessor: import-parity working for every product OGRA quotes, and a full ex-depot build-up for kerosene, fortnightlyPhotographs of paper. No text layer at all
notification_petroleum_products_prices_…The gazette notification putting the same prices in force, itemised for keroseneScan
ifem_notification_…The inland freight equalisation marginScan
Everything elseWellhead price determinations, RLNG averages, SNGPL and SSGC revenue requirements, licensing notices, tenders, LPG statistics, staff noticesNot this project’s subject

Is every price publication a build-up?

No. All 22 on OGRA’s listing are the 2-page price build-up, a list of what each rupee of a litre pays for.

Its rows are lettered A to T for petrol, and A to W for diesel since OGRA’s diesel change of 20 August 2026.

Each has a text layer, real text a program can copy out. So the parser reads it.

Earlier files in the same family are different. Document 14045, price_publication_effective_may_16_2026.pdf, is 1 page.

This is the whole of its text layer:

Existing New Increase/ (-)
Petroleum Products Price Effective May 9, 2026 Price Effective May 16, 2026 Decrease
High Speed Diesel (HSD) 414.58 409.58 -5.00
Motor Spirit (MS) 414.78 409.78 -5.00
Pursuant to Federal Government decision dated March 06, 2026, the revised
ex-depot prices of petroleum products (Rs/litre) are as under:

That is a price-change notice. It gives the 2 pump prices and says nothing about what is inside them.

The parser refuses it, and that is correct. Its message is this does not look like an OGRA price publication.

So I read each member of the family, rather than guess. Each is fetched and passed to the parser the days are built with.

Each is recorded as price_buildup or price_notice, with the SHA-256 of the bytes it was read from. Only the build-ups go to the pipeline.

Why not just let the notices fail? Because a document with no build-up in it and a build-up I got wrong are different facts.

Calling both “could not be read” would say the same thing about OGRA and about me.

Before the notices, the family ran weekly. There was 1 document each Saturday, dated with the next day’s effective date.

What did OGRA publish before the daily build-up?

Document 10000, detail_computation_ex_depot_sale_price_effective_dated_january_16_2024.pdf, has 2 pages. Both are scanned images, with no text layer at all.

pypdf finds 0 characters on either page, and each page holds exactly 1 JPEG.

Read as pictures, they are 2 annexes. The first is “Annex-I — Ex-Refinery Sale Price Calculation”, and it holds:

  • The Arab Gulf FOB mean prices for the 10 working days of the period, product by product.
  • The products: naphtha, HSFO 180 CST, kerosene, gas oil at 4 sulphur grades, gasoline 95 RON and gasoline 92 RON.
  • The selling exchange rate for each day.
  • Below them, the import parity working: FOB price, premium, C&F, the 7.5% tariff, C&F plus tariff, the conversion factor and the price differential claim.

The second is “Annex-II — Ex-Depot Sale Price Calculation”. It is a build-up for kerosene alone, with direct and rail/depot columns side by side:

  • Ex-refinery 178.20, IFEM 7.03, distributor margin 1.58 and dealer margin nil.
  • Petroleum levy 0.05, price before sales tax 186.86 and sales tax nil.
  • Maximum ex-depot sale price 186.86.

Document 10445, for 16 April 2024, has the same 2 annexes with April’s figures. It is also entirely scanned.

Its kerosene figures include ex-refinery 183.49, IFEM 7.96 and maximum ex-depot sale price 193.08.

So OGRA did publish the inside of a litre before 21 July 2026. It published the import-parity working for every product it quotes.

It also published a full ex-depot build-up for kerosene, every 2 weeks.

It did not publish a per-litre build-up for petrol or high-speed diesel. And none of it came in a form a parser can read.

The gazette notification is the same. Document 8020, dated Islamabad 15 August 2022 and effective the 16th, is 1 page and a scan.

It is OGRA’s S.R.O., a statutory order, under the Petroleum Products (Petroleum Levy) Ordinance. It is signed, in rupees a litre.

Its table itemises kerosene oil:

  • Prescribed price 192.03, petroleum levy 10.00 and inland freight margin 7.37.
  • Dealers commission nil, distributors margin 1.58 and general sales tax nil.
  • Maximum ex-depot sale price 199.40.

Document 13937, for 1 May 2026, has the same shape. It is also a scan.

My reading of OGRA’s kerosene scans reads those 2 families off the photographs, by machine.

It is kept apart from the rest of this site for exactly the reason this section gives.

What does this change about the record?

The record can go back before 21 July 2026, but by less than it looks. Before that date, the family ran weekly.

But its earlier files are price-change notices, with no build-up in them.

Each file in the family is now fetched, read and sorted by what is inside, not by its name.

So the record grows by exactly the files that hold a build-up, and by no others.

Nothing before the build-up family can be parsed. The ex-depot computation, the gazette notifications and the IFEM determinations are all scans.

There is no text to read. There is also no way to check a figure taken off an image against OGRA’s own arithmetic.

So I cannot honestly publish a figure from one of them at the standard the rest of this site keeps.

They are catalogued and named here. The separate, weaker record that does read them is marked as such on every row.

The archive’s value is real, but it is not the value I claimed. OGRA serves the documents, but does not index or link them.

OGRA also does not promise to keep serving them. And it keeps no copy that is sure to stay the same.

This archive files each publication by the date it takes effect. It keeps the SHA-256 the file had when a figure was read from it.

It refuses to overwrite a file whose bytes have changed. So the copy stays findable and stays fixed.

It is not the only copy in the world. This site no longer says that it is.

How is the map of OGRA’s documents kept?

The sweep is a program that asks about each id in turn, with header requests. A header request asks about a file without downloading it.

It writes 1 row per id: the filename OGRA served, my reading of it, the date in the filename, and when it asked.

Then it opens every price publication whose bytes have not been read yet, and records what is inside.

It is slow on purpose: 1 request at a time, single-threaded, with a pause of 0.9 seconds between them.

It can also stop and resume anywhere. Those are the same decision.

15,000 requests to a regulator’s website should be made once, gently, and never again. A sweep that lost its place would make them twice.

An id that already has an answer is skipped. So a second run over a complete catalogue sends no requests at all.

A row is written only for a definite answer: a document, or a 404.

A refusal, a server error, a timeout or a reset leaves the id blank. The next sweep asks again.

Why not record an outage as an absence? Because that would close the id for good, on a row that was never about a document.

The catalogue does not ask twice, so nothing later would ever notice the mistake.

20 such answers in a row stop the sweep. I take that to mean the server no longer wants the requests, so I stop asking.

Common questions

Does OGRA delete old fuel price documents?

Not as of 21 August 2026. Old documents leave the listing within weeks, but OGRA still serves them under ids nothing links to.

How many documents does OGRA’s price listing show?

About 20, newest first, with no further pages. A publication drops out of view within a few weeks.

Can a computer read OGRA’s older price documents?

Mostly not. The ex-depot computations and gazette notifications are scanned images with no text layer.

What did OGRA publish about prices before the daily build-up?

Import-parity working for every product it quotes, and a full ex-depot build-up for kerosene every 2 weeks. All of it was scanned.

Why does this site keep its own copy of OGRA’s documents?

OGRA does not index them or promise to keep serving them. This archive keeps each one findable and fixed, under its SHA-256.

Sources

  1. The listing of about 20 documents, and how it turns overOGRA’s price publications listingPrimary
  2. Every document id named here, swept on 21 August 2026OGRA’s download address, https://www.ogra.org.pk/download/<id>?lang=enPrimary
  3. The daily build-ups from 21 July 2026OGRA’s daily price build-up, as this record holds itPrimary · SHA-256 archived
  4. Each document’s SHA-256The archive of OGRA’s documents in this recordPrimary · SHA-256 archived
  5. The scanned kerosene figuresMy reading of OGRA’s kerosene price scansAnalysis
  6. Diesel’s rows A to W from 20 August 2026How OGRA changed diesel’s build-up on 20 August 2026Analysis

The sweep shows what OGRA’s server answered on 21 August 2026. It can answer differently on any later day.

Read next

Know the new price before you reach the pump

New prices come late at night. We post each one as soon as we read it.