Visualizar informações públicas do produto
curl --request GET \
--url https://api.dooki.com.br/v2/{alias}/public/catalog/products/{slug}import requests
url = "https://api.dooki.com.br/v2/{alias}/public/catalog/products/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.dooki.com.br/v2/{alias}/public/catalog/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.dooki.com.br/v2/{alias}/public/catalog/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.dooki.com.br/v2/{alias}/public/catalog/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.dooki.com.br/v2/{alias}/public/catalog/products/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dooki.com.br/v2/{alias}/public/catalog/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": 17790530,
"sku_id": 262573372,
"gift_value": 0,
"simple": false,
"has_variations": true,
"is_digital": false,
"warranty": 0,
"custom_shipping": false,
"shipping_price": 0,
"name": "GTA V Premium 10Uni.",
"slug": "gta-v-premium-10uni",
"sku": "GQVQLNP34,69SQH26GU,QWNVUZHMQ,EPSHDEZPT,K89BHGYNV,SKU-TEST-API,LLKUD2KAM,E7K48R248",
"blocked_sale": false,
"rating": "4.7",
"total_approved_reviews": 3,
"url": "https://www.mytems.com/gta-v-premium-10uni/p",
"url_path": "/gta-v-premium-10uni/p",
"use_different_images": 1,
"brand": {
"data": {
"id": 733502,
"name": "Rockstar Games",
"logo_url": null
}
},
"images": {
"data": [
{
"url": "https://images.yampi.me/assets/stores/mytems/uploads/images/gta-v-premium-10uni-ps5-dvd-67939caf6a3ac-large.jpg"
}
]
},
"prices": {
"data": {
"currency": "R$",
"price_cost": 0,
"price_cost_formated": "R$ 0,00",
"price": 1,
"price_formated": "R$ 1,00",
"base_amount": "1",
"fraction_amount": "00",
"price_sale": 1.11,
"price_sale_formated": "R$ 1,11",
"price_discount": 0,
"price_discount_formated": "R$ 0,00",
"has_promotion": true,
"percent_discount": 9.91,
"billet": {
"price": 1,
"price_formated": "R$ 1,00",
"base_amount": "1",
"fraction_amount": "00",
"discount_value": 0,
"discount_percent": "0.00",
"discount_text": "R$ 1,00 à vista com 0.00% de desconto"
},
"pix": {
"price": 0.9,
"price_formatted": "R$ 0,90",
"base_amount": "0",
"fraction_amount": "90",
"discount_value": 0.1,
"discount_percent": "10.00",
"discount_text": "R$ 0,90 à vista com 10.00% de desconto"
},
"installments": {
"data": {
"max_installment": 1,
"max_installment_value": 1.11,
"amount": 1.11,
"text": "1x de R$ 1,11 sem juros",
"text_with_tax": "1x de R$ 1,11",
"text_discount_percent": null,
"text_discount": null
}
}
}
},
"flags": {
"data": [
{
"id": 24875,
"name": "Pronta Entrega",
"slug": "pronta-entrega",
"text_color": "#333333",
"background_color": "#D0D0D0",
"image_url": null
}
]
}
}
]
}Catálogo
Visualizar informações públicas do produto
Retorna as Informações públicas de um Produto
GET
/
{alias}
/
public
/
catalog
/
products
/
{slug}
Visualizar informações públicas do produto
curl --request GET \
--url https://api.dooki.com.br/v2/{alias}/public/catalog/products/{slug}import requests
url = "https://api.dooki.com.br/v2/{alias}/public/catalog/products/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.dooki.com.br/v2/{alias}/public/catalog/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.dooki.com.br/v2/{alias}/public/catalog/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.dooki.com.br/v2/{alias}/public/catalog/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.dooki.com.br/v2/{alias}/public/catalog/products/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dooki.com.br/v2/{alias}/public/catalog/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": 17790530,
"sku_id": 262573372,
"gift_value": 0,
"simple": false,
"has_variations": true,
"is_digital": false,
"warranty": 0,
"custom_shipping": false,
"shipping_price": 0,
"name": "GTA V Premium 10Uni.",
"slug": "gta-v-premium-10uni",
"sku": "GQVQLNP34,69SQH26GU,QWNVUZHMQ,EPSHDEZPT,K89BHGYNV,SKU-TEST-API,LLKUD2KAM,E7K48R248",
"blocked_sale": false,
"rating": "4.7",
"total_approved_reviews": 3,
"url": "https://www.mytems.com/gta-v-premium-10uni/p",
"url_path": "/gta-v-premium-10uni/p",
"use_different_images": 1,
"brand": {
"data": {
"id": 733502,
"name": "Rockstar Games",
"logo_url": null
}
},
"images": {
"data": [
{
"url": "https://images.yampi.me/assets/stores/mytems/uploads/images/gta-v-premium-10uni-ps5-dvd-67939caf6a3ac-large.jpg"
}
]
},
"prices": {
"data": {
"currency": "R$",
"price_cost": 0,
"price_cost_formated": "R$ 0,00",
"price": 1,
"price_formated": "R$ 1,00",
"base_amount": "1",
"fraction_amount": "00",
"price_sale": 1.11,
"price_sale_formated": "R$ 1,11",
"price_discount": 0,
"price_discount_formated": "R$ 0,00",
"has_promotion": true,
"percent_discount": 9.91,
"billet": {
"price": 1,
"price_formated": "R$ 1,00",
"base_amount": "1",
"fraction_amount": "00",
"discount_value": 0,
"discount_percent": "0.00",
"discount_text": "R$ 1,00 à vista com 0.00% de desconto"
},
"pix": {
"price": 0.9,
"price_formatted": "R$ 0,90",
"base_amount": "0",
"fraction_amount": "90",
"discount_value": 0.1,
"discount_percent": "10.00",
"discount_text": "R$ 0,90 à vista com 10.00% de desconto"
},
"installments": {
"data": {
"max_installment": 1,
"max_installment_value": 1.11,
"amount": 1.11,
"text": "1x de R$ 1,11 sem juros",
"text_with_tax": "1x de R$ 1,11",
"text_discount_percent": null,
"text_discount": null
}
}
}
},
"flags": {
"data": [
{
"id": 24875,
"name": "Pronta Entrega",
"slug": "pronta-entrega",
"text_color": "#333333",
"background_color": "#D0D0D0",
"image_url": null
}
]
}
}
]
}Was this page helpful?
⌘I