Get one product by slug or ID
curl --request GET \
--url https://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}import requests
url = "https://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}', 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://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}",
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://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}"
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://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}")
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{
"success": true,
"data": {
"id": "664f1a2b3c4d5e6f7a8b9c0d",
"slug": "ranga-vip",
"name": "Ranga VIP",
"description": "<p>Dostęp do /fly i kitu VIP.</p>",
"shortDescription": "Kit, /fly, kolorowy nick",
"images": [
"https://cdn.itemshop.pl/u/vip.png"
],
"price": 19.99,
"compareAtPrice": 29.99,
"discountPercent": 33,
"currency": "PLN",
"categoryId": "664f1a2b3c4d5e6f7a8b9c0d",
"serverIds": [
"664f1a2b3c4d5e6f7a8b9c0d"
],
"serverId": "664f1a2b3c4d5e6f7a8b9c0d",
"featured": true,
"sortOrder": 0,
"inStock": true,
"deliveryKind": "commands",
"pricingMode": "quantity",
"quantity": {
"min": 1,
"max": 1000,
"step": 1
},
"variants": [
{
"id": "664f1a2b3c4d5e6f7a8b9c11",
"name": "30 dni",
"price": 19.99,
"description": null,
"image": null
}
],
"packageSuggestions": [
{
"quantity": 64,
"bonus": 8
}
],
"translations": {
"en": {
"name": "VIP rank"
}
}
}
}{
"success": false,
"statusCode": 404,
"code": "SHOP_NOT_FOUND",
"message": "Shop not found",
"error": "Shop not found",
"timestamp": "2026-10-27T12:00:00.000Z",
"path": "/api/v2/storefront/v1/shops/moj-sklep",
"details": {}
}{
"success": false,
"statusCode": 404,
"code": "SHOP_NOT_FOUND",
"message": "Shop not found",
"error": "Shop not found",
"timestamp": "2026-10-27T12:00:00.000Z",
"path": "/api/v2/storefront/v1/shops/moj-sklep",
"details": {}
}{
"success": false,
"statusCode": 404,
"code": "SHOP_NOT_FOUND",
"message": "Shop not found",
"error": "Shop not found",
"timestamp": "2026-10-27T12:00:00.000Z",
"path": "/api/v2/storefront/v1/shops/moj-sklep",
"details": {}
}Storefront v1
Get one product by slug or ID
GET
/
api
/
v2
/
storefront
/
v1
/
shops
/
{shopId}
/
products
/
{slugOrId}
Get one product by slug or ID
curl --request GET \
--url https://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}import requests
url = "https://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}', 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://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}",
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://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}"
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://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://itemshop.dev/api/v2/storefront/v1/shops/{shopId}/products/{slugOrId}")
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{
"success": true,
"data": {
"id": "664f1a2b3c4d5e6f7a8b9c0d",
"slug": "ranga-vip",
"name": "Ranga VIP",
"description": "<p>Dostęp do /fly i kitu VIP.</p>",
"shortDescription": "Kit, /fly, kolorowy nick",
"images": [
"https://cdn.itemshop.pl/u/vip.png"
],
"price": 19.99,
"compareAtPrice": 29.99,
"discountPercent": 33,
"currency": "PLN",
"categoryId": "664f1a2b3c4d5e6f7a8b9c0d",
"serverIds": [
"664f1a2b3c4d5e6f7a8b9c0d"
],
"serverId": "664f1a2b3c4d5e6f7a8b9c0d",
"featured": true,
"sortOrder": 0,
"inStock": true,
"deliveryKind": "commands",
"pricingMode": "quantity",
"quantity": {
"min": 1,
"max": 1000,
"step": 1
},
"variants": [
{
"id": "664f1a2b3c4d5e6f7a8b9c11",
"name": "30 dni",
"price": 19.99,
"description": null,
"image": null
}
],
"packageSuggestions": [
{
"quantity": 64,
"bonus": 8
}
],
"translations": {
"en": {
"name": "VIP rank"
}
}
}
}{
"success": false,
"statusCode": 404,
"code": "SHOP_NOT_FOUND",
"message": "Shop not found",
"error": "Shop not found",
"timestamp": "2026-10-27T12:00:00.000Z",
"path": "/api/v2/storefront/v1/shops/moj-sklep",
"details": {}
}{
"success": false,
"statusCode": 404,
"code": "SHOP_NOT_FOUND",
"message": "Shop not found",
"error": "Shop not found",
"timestamp": "2026-10-27T12:00:00.000Z",
"path": "/api/v2/storefront/v1/shops/moj-sklep",
"details": {}
}{
"success": false,
"statusCode": 404,
"code": "SHOP_NOT_FOUND",
"message": "Shop not found",
"error": "Shop not found",
"timestamp": "2026-10-27T12:00:00.000Z",
"path": "/api/v2/storefront/v1/shops/moj-sklep",
"details": {}
}Parametry ścieżki
Shop ID (ObjectId). Also accepts the uniqueName, an active custom domain or <uniqueName>.<hosting domain>.
Przykład:
"664f1a2b3c4d5e6f7a8b9c0d"
Product slug or ID
Przykład:
"ranga-vip"
Czy ta strona była pomocna?
⌘I