Search published machines: class, maker, kind, weight and power bands, price, sort, paging
curl --request GET \
--url https://api.truckaurbus.com/v1/machinesimport requests
url = "https://api.truckaurbus.com/v1/machines"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.truckaurbus.com/v1/machines', 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/machines",
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/machines"
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/machines")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.truckaurbus.com/v1/machines")
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{
"engine": "meilisearch",
"facets": {},
"hits": [
{
"id": 123,
"lifecycle": "<string>",
"machine_class": "<string>",
"manufacturer": {
"name": "<string>",
"slug": "<string>"
},
"name": "<string>",
"slug": "<string>",
"blade_width_mm": 123,
"boom_length_m": 123,
"bucket_m3": 123,
"dig_depth_mm": 123,
"drum_width_mm": 123,
"family": "<string>",
"fuel_lph": 123,
"image": "<string>",
"is_sample": false,
"kind": "<string>",
"launched_at": "2023-12-25",
"lift_capacity_t": 123,
"lift_height_m": 123,
"operating_weight_kg": 123,
"payload_kg": 123,
"plate": [],
"power_kw": 123,
"power_source": "<string>",
"price_as_of": "2023-12-25",
"price_from_inr": 123,
"price_kind": "<string>",
"price_to_inr": 123,
"published_at": "2023-12-25",
"rated_load_kg": 123,
"tipping_load_kg": 123,
"verified_at": "2023-12-25"
}
],
"limit": 123,
"offset": 123,
"query": "<string>",
"total": 123,
"sort": "price_asc"
}v1
Search published machines: class, maker, kind, weight and power bands, price, sort, paging
GET
/
v1
/
machines
Search published machines: class, maker, kind, weight and power bands, price, sort, paging
curl --request GET \
--url https://api.truckaurbus.com/v1/machinesimport requests
url = "https://api.truckaurbus.com/v1/machines"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.truckaurbus.com/v1/machines', 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/machines",
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/machines"
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/machines")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.truckaurbus.com/v1/machines")
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{
"engine": "meilisearch",
"facets": {},
"hits": [
{
"id": 123,
"lifecycle": "<string>",
"machine_class": "<string>",
"manufacturer": {
"name": "<string>",
"slug": "<string>"
},
"name": "<string>",
"slug": "<string>",
"blade_width_mm": 123,
"boom_length_m": 123,
"bucket_m3": 123,
"dig_depth_mm": 123,
"drum_width_mm": 123,
"family": "<string>",
"fuel_lph": 123,
"image": "<string>",
"is_sample": false,
"kind": "<string>",
"launched_at": "2023-12-25",
"lift_capacity_t": 123,
"lift_height_m": 123,
"operating_weight_kg": 123,
"payload_kg": 123,
"plate": [],
"power_kw": 123,
"power_source": "<string>",
"price_as_of": "2023-12-25",
"price_from_inr": 123,
"price_kind": "<string>",
"price_to_inr": 123,
"published_at": "2023-12-25",
"rated_load_kg": 123,
"tipping_load_kg": 123,
"verified_at": "2023-12-25"
}
],
"limit": 123,
"offset": 123,
"query": "<string>",
"total": 123,
"sort": "price_asc"
}Response
200 - application/json
OK
Available options:
meilisearch, database Show child attributes
Show child attributes
Show child attributes
Show child attributes
Available options:
price_asc, price_desc, weight_asc, weight_desc, power_desc, newest, launched 
