Find an API

Search public APIs with auth details & Postman guides

← All APIs

Ministry of Petroleum and Natural Gas (HPCL)

apisetu · Government

Government No Auth Free & Open open_data

eSubscription Voucher for LPG connections provided by HPCL (http://www.hindustanpetroleum.com/) are made available to citizens in their DigiLocker accounts.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

POST LPG Subscription Voucher

API to verify LPG Subscription Voucher.

https://api.apis.guru/v2/specs/apisetu.gov.in/hindustanpetroleum/3.0.0/lpgsv/certificate

Hover any highlighted part to learn what it does

curl -X POST "https://api.apis.guru/v2/specs/apisetu.gov.in/hindustanpetroleum/3.0.0/lpgsv/certificate"
import requests
response = requests.post(
    "https://api.apis.guru/v2/specs/apisetu.gov.in/hindustanpetroleum/3.0.0/lpgsv/certificate",
)
print(response.json())
const url = 'https://api.apis.guru/v2/specs/apisetu.gov.in/hindustanpetroleum/3.0.0/lpgsv/certificate';

const response = await fetch(url, {
  method: 'POST',
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://api.apis.guru/v2/specs/apisetu.gov.in/hindustanpetroleum/3.0.0/lpgsv/certificate"
	req, _ := http.NewRequest("POST", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/apisetu.gov.in/hindustanpetroleum/3.0.0/lpgsv/certificate")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Post.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/apisetu.gov.in/hindustanpetroleum/3.0.0/lpgsv/certificate";
$opts = ["http" => [
    "method" => "POST",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with Ministry of Petroleum and Natural Gas (HPCL)?

Ministry of Petroleum and Natural Gas (HPCL) is a Government API. Developers commonly use government APIs for:

  • surfacing public datasets in citizen-facing apps
  • building transparency and civic engagement tools
  • accessing legislation, court records, and official data
  • powering research and journalism tools
  • creating compliance and regulatory monitoring dashboards

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Ministry of Petroleum and Natural Gas (HPCL) is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide

Open documentation ↗