Quickstart
This guide will get you all set up and ready to use the FuelPrice API. We'll cover how to get started and make your first API request. We'll also look at where to go next to find all the information you need to take full advantage of our powerful REST API.
Get your API key
FuelPrice API requires an API key for all requests. The API key allows us to identify you and your application. You can grab your API key from the FuelPrice dashboard.
Before you can make requests to the FuelPrice API, you will need to grab your API key from your dashboard. You find it under Settings » API.
Choose your language
Before making your first API request, you need to pick which code language you will use. In addition to good ol' cURL HTTP requests, FuelPrice offers examples for JavaScript (Python, and PHP examples coming).
Interacting with the API
After picking your preferred language, you are ready to make your first call to the FuelPrice API. Below, you can see how to send a GET request to the Cities endpoint to get a list of all available cities. In the cURL example, results are limited to ten cities per request.
Make sure to replace {token} with your API key. You can read more about authentication in the Authentication section.
curl -G https://api.fuelprice.io/v1/cities \
-H "Authorization: Bearer {token}" \
-d limit=10
What's next?
Great, you're now set up with an API client and have made your first request to the API. Here are a few links that might be handy as you venture further into the FuelPrice API:
