Get Product
curl --request GET \
--url https://api.vellaro.io/api/v1/products/{slug}import requests
url = "https://api.vellaro.io/api/v1/products/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vellaro.io/api/v1/products/{slug}', 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.vellaro.io/api/v1/products/{slug}",
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.vellaro.io/api/v1/products/{slug}"
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.vellaro.io/api/v1/products/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vellaro.io/api/v1/products/{slug}")
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{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"short_description": "<string>",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_number": "<string>",
"upc": "<string>",
"ean": "<string>",
"mpn": "<string>",
"weight_kg": "<string>",
"length_cm": "<string>",
"width_cm": "<string>",
"height_cm": "<string>",
"minimum_quantity": 123,
"sort_order": 123,
"view_count": 123,
"is_featured": true,
"available_at": "2023-12-25",
"is_active": true,
"meta_title": "<string>",
"meta_description": "<string>",
"shipping": true,
"subtract": true,
"points": 123,
"jan": "<string>",
"isbn": "<string>",
"location": "<string>",
"stock_status_id": "<string>",
"tax_class_id": "<string>",
"weight_class_id": "<string>",
"length_class_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name_i18n": {},
"description_i18n": {},
"short_description_i18n": {},
"meta_title_i18n": {},
"meta_description_i18n": {},
"is_digital": false,
"brand": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"image_url": "<string>",
"sort_order": 123,
"is_active": true,
"name_i18n": {}
},
"variants": [],
"images": [],
"option_groups": [],
"recurrings": []
},
"meta": {
"page": 123,
"page_size": 123,
"total": 123,
"total_pages": 123
},
"error": "<string>",
"error_code": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}products
Get Product
Public single product detail by slug.
GET
/
api
/
v1
/
products
/
{slug}
Get Product
curl --request GET \
--url https://api.vellaro.io/api/v1/products/{slug}import requests
url = "https://api.vellaro.io/api/v1/products/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vellaro.io/api/v1/products/{slug}', 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.vellaro.io/api/v1/products/{slug}",
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.vellaro.io/api/v1/products/{slug}"
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.vellaro.io/api/v1/products/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vellaro.io/api/v1/products/{slug}")
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{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"short_description": "<string>",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_number": "<string>",
"upc": "<string>",
"ean": "<string>",
"mpn": "<string>",
"weight_kg": "<string>",
"length_cm": "<string>",
"width_cm": "<string>",
"height_cm": "<string>",
"minimum_quantity": 123,
"sort_order": 123,
"view_count": 123,
"is_featured": true,
"available_at": "2023-12-25",
"is_active": true,
"meta_title": "<string>",
"meta_description": "<string>",
"shipping": true,
"subtract": true,
"points": 123,
"jan": "<string>",
"isbn": "<string>",
"location": "<string>",
"stock_status_id": "<string>",
"tax_class_id": "<string>",
"weight_class_id": "<string>",
"length_class_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name_i18n": {},
"description_i18n": {},
"short_description_i18n": {},
"meta_title_i18n": {},
"meta_description_i18n": {},
"is_digital": false,
"brand": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"image_url": "<string>",
"sort_order": 123,
"is_active": true,
"name_i18n": {}
},
"variants": [],
"images": [],
"option_groups": [],
"recurrings": []
},
"meta": {
"page": 123,
"page_size": 123,
"total": 123,
"total_pages": 123
},
"error": "<string>",
"error_code": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}⌘I