One live listing, without the seller's number
curl --request GET \
--url https://api.truckaurbus.com/v1/market/listings/{listing_id}import requests
url = "https://api.truckaurbus.com/v1/market/listings/{listing_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.truckaurbus.com/v1/market/listings/{listing_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.truckaurbus.com/v1/market/listings/{listing_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truckaurbus.com/v1/market/listings/{listing_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.truckaurbus.com/v1/market/listings/{listing_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.truckaurbus.com/v1/market/listings/{listing_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"district": "<string>",
"id": 123,
"km": 123,
"maker_name": "<string>",
"maker_slug": "<string>",
"owners": 123,
"pin": "<string>",
"price_inr": 123,
"state_code": "<string>",
"status": "<string>",
"variant_name": "<string>",
"variant_slug": "<string>",
"vehicle_class": "<string>",
"year": 123,
"axle_config": "",
"comparable_new_inr": 123,
"condition": {},
"dealer_name": "",
"dealer_slug": "",
"dealer_verified": false,
"description": "",
"fuel": "",
"hours": 123,
"inspection_mode": "declared",
"inspection_note": "",
"is_owner": false,
"kind": "vehicle",
"machine_class": "",
"machine_slug": "",
"photo_rows": [],
"photos": [],
"seller": "owner",
"seller_profile": {},
"sold_at": "2023-11-07T05:31:56Z",
"sold_price_inr": 123,
"updates": [],
"video_url": ""
}v1
One live listing, without the seller's number
One live listing: the vehicle, its year and kilometres, the asking price with its date, photographs and the seller’s kind. No contact key leaves through a key: a buyer reaches the seller on truckaurbus.com.
GET
/
v1
/
market
/
listings
/
{listing_id}
One live listing, without the seller's number
curl --request GET \
--url https://api.truckaurbus.com/v1/market/listings/{listing_id}import requests
url = "https://api.truckaurbus.com/v1/market/listings/{listing_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.truckaurbus.com/v1/market/listings/{listing_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.truckaurbus.com/v1/market/listings/{listing_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truckaurbus.com/v1/market/listings/{listing_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.truckaurbus.com/v1/market/listings/{listing_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.truckaurbus.com/v1/market/listings/{listing_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"district": "<string>",
"id": 123,
"km": 123,
"maker_name": "<string>",
"maker_slug": "<string>",
"owners": 123,
"pin": "<string>",
"price_inr": 123,
"state_code": "<string>",
"status": "<string>",
"variant_name": "<string>",
"variant_slug": "<string>",
"vehicle_class": "<string>",
"year": 123,
"axle_config": "",
"comparable_new_inr": 123,
"condition": {},
"dealer_name": "",
"dealer_slug": "",
"dealer_verified": false,
"description": "",
"fuel": "",
"hours": 123,
"inspection_mode": "declared",
"inspection_note": "",
"is_owner": false,
"kind": "vehicle",
"machine_class": "",
"machine_slug": "",
"photo_rows": [],
"photos": [],
"seller": "owner",
"seller_profile": {},
"sold_at": "2023-11-07T05:31:56Z",
"sold_price_inr": 123,
"updates": [],
"video_url": ""
}Path Parameters
Response
200 - application/json
OK

