Turkey Fuel Prices Scraper
Pricing
from $0.36 / 1,000 results
Turkey Fuel Prices Scraper
Scrape fuel prices in Turkey by brand, city and district: Opet, Petrol Ofisi and Aytemiz. Gasoline, diesel and LPG in TRY. Fast HTTP scraper, no browser.
Turkey Fuel Prices Scraper
Pricing
from $0.36 / 1,000 results
Scrape fuel prices in Turkey by brand, city and district: Opet, Petrol Ofisi and Aytemiz. Gasoline, diesel and LPG in TRY. Fast HTTP scraper, no browser.
You can access the Turkey Fuel Prices Scraper programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "brands": [12 "opet",13 "petrolofisi",14 "aytemiz"15 ],16 "cities": [17 "34",18 "06"19 ],20 "products": [21 "gasoline",22 "diesel",23 "lpg"24 ],25 "proxyConfiguration": {26 "useApifyProxy": true,27 "apifyProxyGroups": [28 "RESIDENTIAL"29 ],30 "apifyProxyCountry": "TR"31 }32};33
34// Run the Actor and wait for it to finish35const run = await client.actor("dodoflix/fuel-prices-scraper").call(input);36
37// Fetch and print Actor results from the run's dataset (if any)38console.log('Results from dataset');39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);40const { items } = await client.dataset(run.defaultDatasetId).listItems();41items.forEach((item) => {42 console.dir(item);43});44
45// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use Turkey Fuel Prices Scraper API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: