Overview
This endpoint fetches product names from a Shopify storeβs products.json API. Itβs designed to be fast and lightweight, returning only product titles for the onboarding scanning animation.
This endpoint is isolated from generate-all and can be called independently.
Itβs used by the frontend during the βScanningβ¦β phase to show product names rotating.
Request
The Shopify store URL (e.g., https://glossier.com)
Maximum number of product names to return (1-100)
Response
Whether the request succeeded
List of product name strings
Number of product names returned
Error message if request failed (null on success)
Example
curl "https://searchcompany-main.up.railway.app/api/onboarding/product-names?url=https://glossier.com&limit=10"
- Non-Shopify stores: Returns an empty list gracefully (no error)
- Timeout: 10 second timeout per request
- Proxy: Uses rotating residential proxy to avoid rate limiting
- No auth required: This is a public endpoint for the scanning UI
Frontend Usage
// Fetch product names for scanning animation
const res = await fetch(
`${API_URL}/api/onboarding/product-names?url=${encodeURIComponent(url)}&limit=30`
);
const { product_names } = await res.json();
// Rotate through names in UI
// "Scanning Balm Dotcom across top AI platforms..."
// "Scanning Boy Brow across top AI platforms..."