fuel-price

Fetch current and previous fuel prices by Chinese province via GET endpoints.

Updated Apr 12, 2025
One-click install
npx skills add https://github.com/DavidKk/vercel-openapi --skill fuel-price
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fuel-price
Source: https://github.com/DavidKk/vercel-openapi/tree/main/app/fuel-price
Command: npx skills add https://github.com/DavidKk/vercel-openapi --skill fuel-price

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users quickly obtain current and historical fuel prices by Chinese province and compute recharge promo outcomes, enabling fast, data-backed responses in conversations.

Core Features & Use Cases

  • Province-based pricing: fetch current and previous prices (b92, b95, b98, b0) per province.
  • Promo calculations: compute recharge promo benefits for a given province and amount.
  • Performance optimization: leverages edge caching and a simple API surface to minimize repeated calls.

Quick Start

Ask the assistant to fetch prices for a province or compute a recharge promo for a province.

Frequently Asked Questions about fuel-price

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch current fuel prices for a specific Chinese province via API?

You can fetch fuel prices by province using the GET endpoints /api/fuel-price and /api/fuel-price/:province. The API returns a structured JSON payload containing current and previous prices, the latestUpdated date, and promo data.

Can I calculate recharge promo benefits for different provinces and fuel types?

Yes, promo calculations compute recharge promo benefits for a given province and amount. The API supports multiple fuel types including b92, b95, b98, and b0, and returns promo results within the structured JSON payload.

What fuel types does the China fuel-price API support?

The China fuel-price API supports b92, b95, b98, and b0 fuel types. It fetches current and previous prices per Chinese province and returns them alongside promo data in a structured JSON payload.

Does the fuel-price API cache responses to optimize performance?

Yes, the fuel-price API leverages edge caching to minimize repeated calls and optimize performance. This caching mechanism reduces latency when fetching current and previous fuel prices or computing recharge promos by province.

What data is included in the fuel-price API response for edge cases?

The API response includes current, previous, and latestUpdated fuel prices plus promo data. It applies to province or promo scenario queries and handles edge cases, returning everything in a structured JSON payload format.