Daily Petrol, Diesel, LPG & CNG Fuel Prices in India

免费增值
通过 mi8y | 已更新 1ヶ月前 | Energy
人气

9.6 / 10

延迟

547ms

服务等级

100%

Health Check

N/A

返回所有讨论

Token counting logic for state and city fuel prices API

Rapid account: Yogeshs 4223
yogeshs4223
1年前

Hi,

Please let us know how tokens are counted for fuel API calling where state/city wise fuel prices are required.
this will help to decide which subcription to be taken.

Regards,
Yogesh S

Rapid account: Admin Bx Tds O Qll
admin-BxTdsOQll Commented 1年前

Hello @yogeshs4223,

Each API call is counted and you get quota against for each of the API endpoints for different plans.

For example: If you’d like to get fuel price for ‘Mumbai’.
Step 1: Find the State ID for ‘Maharashtra’ - ListStates

GET https://daily-petrol-diesel-lpg-cng-fuel-prices-in-india.p.rapidapi.com/v1/list/india/states

Step 2: Find the City ID for ‘Mumbai’ in ‘Maharashtra’ - ListCities

GET https://daily-petrol-diesel-lpg-cng-fuel-prices-in-india.p.rapidapi.com/v1/list/india/maharashtra/cities

Step 3: Get the fuel price in ‘Mumbai’ today - CityFuelPriceToday

GET https://daily-petrol-diesel-lpg-cng-fuel-prices-in-india.p.rapidapi.com/v1/fuel-prices/today/india/maharashtra/mumbai

Now, the quota used is

  • List of States or Cities in India - 1 + 1 used for the month
  • Fuel Price in a State or a City Today - 1 used for the month

Now, depending on the plan, the quota varies. Let me know if this helps

Regards

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论