Authorize a Shopify store, map one product plus metafield destination, and let selection-driven automation push live trend context into the storefront. This page lists the required credentials, setup example, mapped endpoints, and production notes.
Base URL
https://api.trendsagi.com114
Routes
16
Guides
3
Languages
Trend-aware product enrichment for storefront workflows
Authorize a Shopify store, map one product plus metafield destination, and let selection-driven automation push live trend context into the storefront.
Install
No SDK required. Use TrendsAGI Shopify integration endpoints.Required credentials
export TRENDSAGI_API_KEY="<TRENDSAGI_API_KEY>"
export SHOP_DOMAIN="example-store.myshopify.com"
# 1) Request OAuth URL for your store
curl -X GET "https://api.trendsagi.com/api/integrations/shopify/auth?shop=$SHOP_DOMAIN" \
-H "Authorization: Bearer $TRENDSAGI_API_KEY"
# 2) Complete authorization in the browser
# 3) List products
curl -X GET "https://api.trendsagi.com/api/integrations/shopify/products" \
-H "Authorization: Bearer $TRENDSAGI_API_KEY"
# 4) Save automation selection and metafield destination
curl -X PUT "https://api.trendsagi.com/api/integrations/shopify/selection" \
-H "Authorization: Bearer $TRENDSAGI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"product_id": "gid://shopify/Product/1234567890",
"metafield_namespace": "trendsagi",
"metafield_key": "trend_context",
"auto_push_enabled": true,
"trend_categories": ["Technology"]
}'# Save as quickstart.sh
bash quickstart.sh1. Install
Add SDK/dependency for this integration path.
2. Authenticate
Set API key and any provider-specific credentials.
3. Map Endpoints
Use mapped endpoints below to build deterministic flow.
4. Harden
Add rate-limit backoff, idempotency, and safety gates.
Endpoint Mapping
Each integration is mapped to specific API endpoints so teams can compose deterministic workflows.
Production Notes