Skip to main content
POST
/
product
Step 1: Upload URL to get product Information.
curl --request POST \
  --url https://api.jogg.ai/v1/product \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "url": "https://res.jogg.ai.com/product_url",
  "name": "Physicians Formula Happy Booster Heart Blush",
  "description": "Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder",
  "target_audience": "Tech-savvy millennials",
  "media": [
    {
      "type": 1,
      "name": "product.jpg",
      "url": "https://res.jogg.ai/media.jpg",
      "description": "Product front view"
    }
  ]
}
'
import requests

url = "https://api.jogg.ai/v1/product"

payload = {
"url": "https://res.jogg.ai.com/product_url",
"name": "Physicians Formula Happy Booster Heart Blush",
"description": "Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder",
"target_audience": "Tech-savvy millennials",
"media": [
{
"type": 1,
"name": "product.jpg",
"url": "https://res.jogg.ai/media.jpg",
"description": "Product front view"
}
]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://res.jogg.ai.com/product_url',
name: 'Physicians Formula Happy Booster Heart Blush',
description: 'Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder',
target_audience: 'Tech-savvy millennials',
media: [
{
type: 1,
name: 'product.jpg',
url: 'https://res.jogg.ai/media.jpg',
description: 'Product front view'
}
]
})
};

fetch('https://api.jogg.ai/v1/product', 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.jogg.ai/v1/product",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://res.jogg.ai.com/product_url',
'name' => 'Physicians Formula Happy Booster Heart Blush',
'description' => 'Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder',
'target_audience' => 'Tech-savvy millennials',
'media' => [
[
'type' => 1,
'name' => 'product.jpg',
'url' => 'https://res.jogg.ai/media.jpg',
'description' => 'Product front view'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.jogg.ai/v1/product"

payload := strings.NewReader("{\n \"url\": \"https://res.jogg.ai.com/product_url\",\n \"name\": \"Physicians Formula Happy Booster Heart Blush\",\n \"description\": \"Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder\",\n \"target_audience\": \"Tech-savvy millennials\",\n \"media\": [\n {\n \"type\": 1,\n \"name\": \"product.jpg\",\n \"url\": \"https://res.jogg.ai/media.jpg\",\n \"description\": \"Product front view\"\n }\n ]\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.jogg.ai/v1/product")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://res.jogg.ai.com/product_url\",\n \"name\": \"Physicians Formula Happy Booster Heart Blush\",\n \"description\": \"Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder\",\n \"target_audience\": \"Tech-savvy millennials\",\n \"media\": [\n {\n \"type\": 1,\n \"name\": \"product.jpg\",\n \"url\": \"https://res.jogg.ai/media.jpg\",\n \"description\": \"Product front view\"\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.jogg.ai/v1/product")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://res.jogg.ai.com/product_url\",\n \"name\": \"Physicians Formula Happy Booster Heart Blush\",\n \"description\": \"Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder\",\n \"target_audience\": \"Tech-savvy millennials\",\n \"media\": [\n {\n \"type\": 1,\n \"name\": \"product.jpg\",\n \"url\": \"https://res.jogg.ai/media.jpg\",\n \"description\": \"Product front view\"\n }\n ]\n}"

response = http.request(request)
puts response.read_body
{
  "code": 123,
  "msg": "<string>",
  "data": {
    "product_id": "NTQ0MTkzNjg",
    "url": "https://res.jogg.ai.com/product_url",
    "name": "Physicians Formula Happy Booster Heart Blush Glow &amp;amp; Mood Boosting, Rose, Dermatologist Tested",
    "description": "Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow. Multi-reflective pearls provide a soft iridescence to highlight contour and add radiance to cheeks. Experience the mood boosting effect: Infused with our Happy Boost Blend featuring Happy Skin and Euphoryl, natural plant extracts which have been shown to promote a feeling of happiness by mimicking the effect of Endorphins and helping protect the skin from environmental stress. ",
    "target_audience": "",
    "media": [
      {
        "type": 1,
        "name": "media.jpg",
        "url": "https://res.jogg.ai/media.jpg",
        "description": "Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder features a fresh and vibrant mix of blushing tones infused with a pop of color to create a healthy glow."
      }
    ]
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
url
string

URL of the product to crawl

Example:

"https://res.jogg.ai.com/product_url"

name
string

Product name

Example:

"Physicians Formula Happy Booster Heart Blush"

description
string

Product introduction and selling points

Example:

"Brush on a radiant blushing glow: Ultra-soft and blendable blushing powder"

target_audience
string

Target audience for the product

Example:

"Tech-savvy millennials"

media
object[]

Media resources array

Response

200 - application/json

Success

code
integer
required

Business status code:

  • 0 - Success

  • 10104 - Record not found

  • 10105 - Invalid API key

  • 18020 - Insufficient credit

  • 18025 - No permission to call APIs.

  • 40000 - Parameter error

  • 50000 - System error

msg
string
required

Response message

data
object