GET Product Names
curl --request GET \
--url https://searchcompany-main.up.railway.app/api/onboarding/product-namesimport requests
url = "https://searchcompany-main.up.railway.app/api/onboarding/product-names"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://searchcompany-main.up.railway.app/api/onboarding/product-names', 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://searchcompany-main.up.railway.app/api/onboarding/product-names",
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://searchcompany-main.up.railway.app/api/onboarding/product-names"
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://searchcompany-main.up.railway.app/api/onboarding/product-names")
.asString();require 'uri'
require 'net/http'
url = URI("https://searchcompany-main.up.railway.app/api/onboarding/product-names")
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{
"success": true,
"product_names": [
{}
],
"count": 123,
"error": "<string>"
}π’ GET - Product Names
GET Product Names
Lightweight endpoint to fetch product names for the scanning UI animation
GET
/
api
/
onboarding
/
product-names
GET Product Names
curl --request GET \
--url https://searchcompany-main.up.railway.app/api/onboarding/product-namesimport requests
url = "https://searchcompany-main.up.railway.app/api/onboarding/product-names"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://searchcompany-main.up.railway.app/api/onboarding/product-names', 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://searchcompany-main.up.railway.app/api/onboarding/product-names",
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://searchcompany-main.up.railway.app/api/onboarding/product-names"
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://searchcompany-main.up.railway.app/api/onboarding/product-names")
.asString();require 'uri'
require 'net/http'
url = URI("https://searchcompany-main.up.railway.app/api/onboarding/product-names")
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{
"success": true,
"product_names": [
{}
],
"count": 123,
"error": "<string>"
}Overview
This endpoint fetches product names from a Shopify storeβsproducts.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
string
required
The Shopify store URL (e.g.,
https://glossier.com)integer
default:"50"
Maximum number of product names to return (1-100)
Response
boolean
Whether the request succeeded
array
List of product name strings
integer
Number of product names returned
string
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"
{
"success": true,
"product_names": [
"Balm Dotcom",
"Boy Brow",
"Cloud Paint",
"Lash Slick",
"Milky Jelly Cleanser",
"Stretch Concealer",
"Futuredew",
"Haloscope",
"Lidstar",
"Generation G"
],
"count": 10,
"error": null
}
Notes
- 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..."