BizKitHub
DokumentacjaEksplorator APIProduct/api/v1/product/import-from-url
postProductPubliczne 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

Parametry

1 w query · Treść JSON

Parametry query

· 1
apiKeystringWymagane

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

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Treść żądania

application/json
urlstringWymagane

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

Długość: 8–∞
Przykładhttps://www.sreality.cz/detail/pronajem/komercni/obchodni-prostor/brno/310894668
mainCategoryCodestringOpcjonalne

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

Przykładreal-estate

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
object | object
Jedna z 2 opcji:
Wariant 1
state"ok"Wymagane
codestringWymagane

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

slugstringWymagane

Generated URL slug.

reusedbooleanWymagane

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

Wariant 2
state"error"Wymagane
messagestringWymagane
code"200"Wymagane
hintstring | nullWymagane

Przykład odpowiedzi

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

Przykład żądania

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"
}'

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API