List products with availability
curl --request GET \
--url http://localhost:3000/v1/admin/availabilityimport requests
url = "http://localhost:3000/v1/admin/availability"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3000/v1/admin/availability', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v1/admin/availability",
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 := "http://localhost:3000/v1/admin/availability"
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("http://localhost:3000/v1/admin/availability")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v1/admin/availability")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"products": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"brand": "<string>",
"image_url": "<string>",
"selling_price": 123,
"is_rfc_item": true,
"availability_score": 123,
"availability_tier": "<string>",
"availability_score_updated_at": "<string>",
"confidence": {
"level": "<string>",
"lower": 123,
"upper": 123
},
"demand_velocity_7d": 123,
"demand_velocity_updated_at": "<string>",
"target_stock_days": 123,
"reorder_point_days": 123,
"max_restock_per_sweep": 123,
"preferred_retailer": "<string>",
"scraped_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
],
"count": 123,
"offset": 123,
"limit": 123,
"stats": {
"total": 123,
"by_tier": {
"high": 123,
"medium": 123,
"low": 123,
"unavailable": 123,
"unknown": 123
},
"by_confidence": {
"high": 123,
"medium": 123,
"low": 123
}
}
}Availability
List products with availability
Returns paginated list of products with availability scores and stats.
GET
/
v1
/
admin
/
availability
List products with availability
curl --request GET \
--url http://localhost:3000/v1/admin/availabilityimport requests
url = "http://localhost:3000/v1/admin/availability"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3000/v1/admin/availability', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v1/admin/availability",
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 := "http://localhost:3000/v1/admin/availability"
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("http://localhost:3000/v1/admin/availability")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v1/admin/availability")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"products": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"brand": "<string>",
"image_url": "<string>",
"selling_price": 123,
"is_rfc_item": true,
"availability_score": 123,
"availability_tier": "<string>",
"availability_score_updated_at": "<string>",
"confidence": {
"level": "<string>",
"lower": 123,
"upper": 123
},
"demand_velocity_7d": 123,
"demand_velocity_updated_at": "<string>",
"target_stock_days": 123,
"reorder_point_days": 123,
"max_restock_per_sweep": 123,
"preferred_retailer": "<string>",
"scraped_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
],
"count": 123,
"offset": 123,
"limit": 123,
"stats": {
"total": 123,
"by_tier": {
"high": 123,
"medium": 123,
"low": 123,
"unavailable": 123,
"unknown": 123
},
"by_confidence": {
"high": 123,
"medium": 123,
"low": 123
}
}
}Query Parameters
Required range:
1 <= x <= 100Required range:
x >= 0Available options:
high, medium, low, unavailable, unknown Available options:
high, medium, low Maximum string length:
200Available options:
availability_score, demand_velocity_7d, name Available options:
asc, desc ⌘I