Enrich Product

Product Enrichment API

Enrich a product with additional attributes and metadata:

Endpoint:

https://us-central1-researchinnovation.cloudfunctions.net/enrichment-service-poc/api/enrich

cURL Example:

curl -X POST \\
    'https://us-central1-researchinnovation.cloudfunctions.net/enrichment-service-poc/api/enrich' \\
    -H 'Content-Type: application/json' \\
    -d '{
        "product_name": "Coca Cola 12oz",
        "upc": "049000006346"
    }'

Python Example:

import requests

url = "https://us-central1-researchinnovation.cloudfunctions.net/enrichment-service-poc/api/enrich"
payload = {
    "product_name": "Coca Cola 12oz",
    "upc": "049000006346"
}
headers = {
    "Content-Type": "application/json"
}

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

Product Search API

Search for existing products using any identifier. If user_id is provided, we will filter results by only the identifier linked to the user_id.

Endpoint:

https://us-central1-researchinnovation.cloudfunctions.net/enrichment-service-poc/api/search

Python Examples:

import requests
import json

url = "https://us-central1-researchinnovation.cloudfunctions.net/enrichment-service-poc/api/search"

# Example 1: Search by product name
payload = {
    "product_name": "MNY Color Sensational Lip Lift Gloss"
}

# Example 2: Search by UPC
payload = {
    "upc": "041554576535"
}

# Example 3: Search by user identifier
payload = {
    "item_id": "12345"
}

headers = {
    "Content-Type": "application/json"
}

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

User Input History

Scope Analysis Details

WebRag Details Analysis