Primeri uporabe

Listing page

Endpoint: /api/car/listing?url=

import requests

url = "https://avtonet-api-main-87b07e5.zuplo.app/api/car/listing?url=https://www.avto.net/Ads/details.asp?id=20376916"

headers = {"Authorization": "Bearer YOUR_KEY_HERE"}

response = requests.get(url, headers=headers)

print(response.text)

Odgovor

{
	"avtonet_id":  20494819,
	"url":  "https://www.avto.net/Ads/details.asp?id=20494819",
	"vehicle_name":  "Mini -",
	"vehicle_full_name":  "Mini - Cooper",
	"price":  6500,
	"discount_price":  null,
	"verbose_price":  null,
	"first_registration":  "2009-01-01 00:00:00",
	"location":  "4000 Kranj, Slovenija",
	"new_vehicle":  false,
	"available":  true,
	"mileage":  205000,
	"num_of_owners":  2,
	"fuel_type":  "bencin",
	"engine_power":  90,
	"comment":  null,
	"description":  "Prodam odlično ohranjenega Mini Cooper letnik 2009.<br><br>Zunanjost in notranjost odlično ohranjena, le na pritljažniku je manjša udrtina. Avto je bil redno servisiran, v decembru je bil opravljen servis (menjava tekočin,...). Avto je garažiran in deležen veliko ljubezni.<br><br>Zraven priložim tudi letne gume s ALU platišči.<br><br>Sprednji žarometi so bili zamenjani z LED žarometi.<br><br>Ogled je možen v Kranj-u.",
	"additional_data":  {
		"basic_data":  {
			"Barva":  "siva",
			"Gorivo":  "bencinski motor",
			"Oblika":  "kombilimuzina / hatchback",
...

Filter page

Endpoint: /api/car/filter?{ filtri }

import requests

url = "https://avtonet-api-main-87b07e5.zuplo.app/api/car/filter?brand=Audi&model=A4&max_year=2021&min_kw=200"

headers = {"Authorization": "Bearer YOUR_KEY_HERE"}

response = requests.get(url, headers=headers)

print(response.text)

Odgovor

{
	"url":  "https://avto.net/Ads/results.asp?znamka=Audi&model=&cenaMin=&cenaMax=20000&letnikMin=2015&letnikMax=&kmMin=&kmMax=&bencin=&automatic=&ccmMin=&ccmMAX=&kwMin=&kwMax=&motortakt=&motorvalji=&doseg=&nosilnostMIN=&nosilnostMAX=&barva=&barvaint=&door=&sedezevMIN=&sedezevMAX=&airbag=&stran=&lokacija=&broker=&EQ1=1000000000&EQ2=1000000000&EQ3=1000000000&EQ4=100000000&EQ5=1000000000&EQ6=1000000000&EQ7=1110100120&EQ8=101000000&EQ9=1000000020&KAT=1010000000&subSORT=&subTIPSORT=",
	"num_of_all_results":  950,
	"num_of_scraped_results":  48,
	"vehicles":  [
	{
		"vehicle_id":  20526149,
		"vehicle_url":  "https://avto.net/Ads/details.asp?id=20526149&display=Audi%20A6%20Avant",
		"vehicle_name":  "Audi A6 Avant 2.0 TDI S-tronic MATRIX | BOSE | HEADUP | PDC",
		"is_top_offer":  true,
		"image":  "https://images.avto.net/photo/20526149/1071945.jpg",
		"price":  15600,
		"discount_price":  null,
		"verbose_price":  null,
		"ribbon_text":  null,
		"listing_is_hd":  null,
		"listing_has_video":  null,
		"new_vehicle":  null,
		"first_registration":  "2016",
		"mileage":  249642,
		"fuel_type":  "diesel",
		"engine_power":  140,
		"engine":  "1968 ccm, 140 kW / 190 KM",
		"transmission_type":  "avtomatski menjalnik",
		"battery_capacity":  null,
		"comment":  null,
		"seller_type":  "person",
		"seller_logo":  null,
		"company_id":  null,
		"updated_at":  "2025-01-20T21:45:42.771179"
	},
	{
		"vehicle_id":  20519415,
...