BizKitHub
DokumentáciaPrieskumník APIProduct/api/v1/product/import-from-url
postProductVerejné API v1

/api/v1/product/import-from-url

Fetches the URL, runs an LLM to extract structured product data (name, description, price, images, attributes), creates a new shop__product row with a generated code/slug and queues its images for async blob storage. Deduplicated by (vendor, external_id) — repeated calls with the same listing return the existing product with reused: true.

productpostApiV1ProductImport-from-url

Parametre

1 v query · JSON telo

Parametre v query

· 1
apiKeystringPovinné

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Telo požiadavky

application/json
urlstringPovinné

Absolute http(s) URL of the source product/listing page.

Dĺžka: 8–∞
Príkladhttps://www.sreality.cz/detail/pronajem/komercni/obchodni-prostor/brno/310894668
mainCategoryCodestringVoliteľné

Optional product category code to pre-assign to the imported product.

Príkladreal-estate

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
object | object
Jedna z 2 možností:
Variant 1
state"ok"Povinné
codestringPovinné

Generated product code (use for /product/detail?slug=…).

slugstringPovinné

Generated URL slug.

reusedbooleanPovinné

True when the product already existed and was not re-imported.

Variant 2
state"error"Povinné
messagestringPovinné
code"200"Povinné
hintstring | nullPovinné

Ukážka odpovede

application/json
{
  "state": "ok",
  "code": "example_code",
  "slug": "example_slug",
  "reused": false
}

Ukážka požiadavky

POST /api/v1/product/import-from-url

post
curl -X POST "https://api.bizkithub.com/api/v1/product/import-from-url?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "url": "https://www.sreality.cz/detail/pronajem/komercni/obchodni-prostor/brno/310894668",
  "mainCategoryCode": "real-estate"
}'

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč