Gas Prices API

Description

Reach gasoline and diesel prices in different fuel stations in different cities.

Pricing per Call: 0.001$
For learn the packages and usage details of the services, go to the pricing page.

End Points

get/gasoline

Service that brings up the current gasoline prices at gas stations.

Parameters
FieldDescriptionTypeHeaderRequired
data.cityYou need to write the name of the city you want to know the price of gasoline to be small.text
Example
Request
{
  "uri": "https://api.collectapi.com/gasPrice/gasoline?data.city=ankara",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": [
    {
      "95": "6,99",
      "97/98": "6,94",
      "image": ".../images/sirketler/alpet.png"
    },
    {
      "95": "6,99",
      "97/98": "6,94",
      "image": ".../images/sirketler/bp.png"
    },
    {
      "95": "6,94",
      "97/98": "6,94",
      "image": ".../images/sirketler/lukoil.png"
    },
    "..."
  ]
}
get/diesel

Service that allows you to learn the current diesel prices in gas stations.

Parameters
FieldDescriptionTypeHeaderRequired
data.cityYou need to write the name of the city you want to know the diesel prices to be small.text
Example
Request
{
  "uri": "https://api.collectapi.com/gasPrice/diesel?data.city=ankara",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": [
    {
      "motorin": "6,30",
      "katkili": "6,34",
      "image": ".../images/sirketler/lukoil.png"
    },
    {
      "motorin": "6,30",
      "katkili": "6,33",
      "image": ".../images/sirketler/moil.png"
    },
    {
      "motorin": "6,30",
      "katkili": "6,34",
      "image": ".../images/sirketler/total.png"
    },
    "..."
  ]
}
get/lpg

Service that allows you to find out the current LPG prices in gas stations.

Parameters
FieldDescriptionTypeHeaderRequired
data.cityYou need to write the name of the city where you want to learn LPG prices to be small. Istanbul, Anatolia and Europe (Istanbul-Anatolia, Istanbul-Europe)text
Example
Request
{
  "uri": "https://api.collectapi.com/gasPrice/lpg?data.city=ankara",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": [
    {
      "lastupdate": "26.04.2019",
      "price": [
        {
          "lpg": "3,76",
          "marka": "Total"
        },
        {
          "lpg": "3,83",
          "marka": "Milangaz"
        },
        "..."
      ]
    }
  ]
}
get/gazyagi

Service that allows you to learn the current gas oil prices in gas stations.

Parameters
FieldDescriptionTypeHeaderRequired
data.cityYou have to write the name of the city where you want to know the gas oil prices so that the initial letter is small. Istanbul, Anatolia and Europe (Istanbul-Anatolia, Istanbul-Europe)text
Example
Request
{
  "uri": "https://api.collectapi.com/gasPrice/gazyagi?data.city=ankara",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": [
    {
      "lastupdate": "26.04.2019",
      "price": [
        {
          "gazyagi": "5,83",
          "marka": "Soil"
        },
        {
          "gazyagi": "5,92",
          "marka": "Opet"
        },
        {
          "gazyagi": "5,93",
          "marka": "M Oil"
        },
        "..."
      ]
    }
  ]
}
get/fueloil

Service that allows you to learn the current fuel oil prices in gas stations.

Parameters
FieldDescriptionTypeHeaderRequired
data.cityYou need to write the name of the city where you want to know the fuel oil prices. Istanbul, Anatolia and Europe (istanbul-anadolu, istanbul-avrupa)text
Example
Request
{
  "uri": "https://api.collectapi.com/gasPrice/fueloil?data.city=ankara",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": [
    {
      "lastupdate": "26.04.2019",
      "price": [
        {
          "yuksekkukurtlu": "3,71",
          "fueloil": "4,00",
          "kalorifer": "4,46",
          "marka": "M Oil"
        },
        {
          "yuksekkukurtlu": "3,79",
          "fueloil": "4,04",
          "kalorifer": "4,49",
          "marka": "Lukoil"
        },
        "..."
      ]
    }
  ]
}
get/allUsaPrice

Service that brings the average current gasoline prices of states in America.

Example
Request
{
  "uri": "https://api.collectapi.com/gasPrice/allUsaPrice",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": [
    {
      "name": "Alaska",
      "regular": "$2.973",
      "midGrade": "$3.044",
      "premium": "$3.216",
      "diesel": "$2.946"
    },
    {
      "name": "Alabama",
      "regular": "$2.338",
      "midGrade": "$2.653",
      "premium": "$2.974",
      "diesel": "$2.847"
    },
    {
      "name": "Arkansas",
      "regular": "$2.335",
      "midGrade": "$2.625",
      "premium": "$2.898",
      "diesel": "$2.775"
    },
    "..."
  ]
}
get/stateUsaPrice

The service that brings gas prices in the United States by state.

Parameters
FieldDescriptionTypeHeaderRequired
stateEnter state code AK, AL, WA...text
Example
Request
{
  "uri": "https://api.collectapi.com/gasPrice/stateUsaPrice?state=WA",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": {
    "state": {
      "name": "Washington",
      "regular": "$3.217",
      "midGrade": "$3.422",
      "premium": "$3.575",
      "diesel": "$3.284"
    },
    "cities": [
      {
        "regular": "$3.195",
        "midGrade": "$3.440",
        "premium": "$3.497",
        "diesel": "$3.094",
        "name": "Bellingham"
      },
      {
        "regular": "$3.176",
        "midGrade": "$3.398",
        "premium": "$3.507",
        "diesel": "$3.244",
        "name": "Bremerton"
      }
    ]
  }
}
get/usaStateCode

The service that brings the code of the states in USA.

Example
Request
{
  "uri": "https://api.collectapi.com/gasPrice/usaStateCode",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": [
    {
      "name": "Alaska",
      "code": "AK"
    },
    {
      "name": "Alabama",
      "code": "AL"
    },
    {
      "name": "Arkansas",
      "code": "AR"
    },
    "..."
  ]
}
get/europeanCountries

Service that brings up the current gasoline prices at european countries.

Example
Request
{
  "uri": "https://api.collectapi.com/gasPrice/europeanCountries",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": [
    {
      "lpg": {
        "locale": "72,00 ALL",
        "euro": "0,584€"
      },
      "diesel": {
        "locale": "169,00 ALL",
        "euro": "1,370€"
      },
      "unlead_95": {
        "locale": "172,00 ALL",
        "euro": "1,395€"
      },
      "country": "Albania"
    },
    {
      "lpg": {
        "locale": "9,00 DZD",
        "euro": "0,067€"
      },
      "diesel": {
        "locale": "13,70 DZD",
        "euro": "0,103€"
      },
      "unlead_95": {
        "locale": "22,60 DZD",
        "euro": "0,169€"
      },
      "country": "Algeria"
    },
    "..."
  ]
}
get/australiaGasoline

Service that brings up the current gasoline prices at Australia.

Example
Request
{
  "uri": "https://api.collectapi.com/gasPrice/australiaGasoline",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "results": [
    {
      "city": "Sydney",
      "diesel": "$1.47",
      "gasoline": "$1.61",
      "lpg": "$0.76"
    },
    {
      "city": "Melbourne",
      "diesel": "$1.48",
      "gasoline": "$1.65",
      "lpg": "$0.65"
    },
    "..."
  ]
}
get/otherCountriesGasoline

Service that brings up the gasoline prices weekly at other countries.

Example
Request
{
  "uri": "https://api.collectapi.com/gasPrice/otherCountriesGasoline",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": [
    {
      "price": "0.00",
      "country": "Venezuela"
    },
    {
      "price": "0.14",
      "country": "Sudan"
    },
    {
      "price": "0.33",
      "country": "Angola"
    },
    {
      "price": "0.35",
      "country": "Kuwait"
    },
    {
      "price": "0.35",
      "country": "Algeria"
    },
    "..."
  ]
}
get/otherCountriesDiesel

Service that brings up the diesel prices weekly at countries.

Example
Request
{
  "uri": "https://api.collectapi.com/gasPrice/otherCountriesDiesel",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": [
    {
      "price": "0.00",
      "country": "Venezuela"
    },
    {
      "price": "0.09",
      "country": "Sudan"
    },
    {
      "price": "0.09",
      "country": "Iran"
    },
    {
      "price": "0.13",
      "country": "Saudi Arabia"
    },
    {
      "price": "0.19",
      "country": "Algeria"
    },
    "..."
  ]
}
get/otherCountriesLpg

Service that brings up the diesel prices weekly at countries.

Example
Request
{
  "uri": "https://api.collectapi.com/gasPrice/otherCountriesLpg",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": [
    {
      "price": "0.08",
      "country": "Algeria"
    },
    {
      "price": "0.20",
      "country": "Angola"
    },
    {
      "price": "0.20",
      "country": "Kazakhstan"
    },
    {
      "price": "0.26",
      "country": "Azerbaijan"
    },
    {
      "price": "0.31",
      "country": "Kyrgyzstan"
    },
    "..."
  ]
}