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

부분 유료
분류별 mi8y | 업데이트됨 한 달 전 | 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
일 년 전

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 일 년 전

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

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입