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
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
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
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
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
Now, depending on the plan, the quota varies. Let me know if this helps
Regards
Join in the discussion - add comment below:
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
Step 2: Find the City ID for ‘Mumbai’ in ‘Maharashtra’ -
ListCities
Step 3: Get the fuel price in ‘Mumbai’ today -
CityFuelPriceToday
Now, the quota used is
Now, depending on the plan, the quota varies. Let me know if this helps
Regards