REST API (developers)

Product Scraper has a small REST API, used by the Chrome extension, that you can call from your own scripts.

Authentication

Send your API key (Settings → Chrome extension) in the X-WPIP-API-Key header. Requests without a valid key get 401. Each key and IP address can make about 30 requests per minute; more return 429.

Test the connection

GET /wp-json/wpip/v1/test
X-WPIP-API-Key: YOUR_KEY

Returns {"success": true, "message": "BW WooCommerce Product Scraper connected."}.

Import a product

POST /wp-json/wpip/v1/import
Content-Type: application/json
X-WPIP-API-Key: YOUR_KEY

{
  "source_url": "https://shop.example.com/products/mug",
  "title": "Ceramic Mug",
  "price": "12.50",
  "description": "<p>Handmade ceramic mug.</p>",
  "images": ["https://shop.example.com/img/mug-1.jpg"],
  "sku": "MUG-1",
  "brand": "Example",
  "source_categories": ["Kitchen", "Mugs"],
  "status": "draft",
  "markup_type": "percentage",
  "markup_value": 30,
  "update_existing": false
}

source_url in title are required. Optional fields include short_description, main_image, stock_status (instock, outofstock, onbackorder), type (simple or external), category_id, brand_id, and attributes / variations in the same shape the plugin uses internally. Settings defaults are used for anything you leave out.

The response contains status (success, updated or duplicate), product_id, edit_url and a message. The allowlist in Settings → Advanced applies to API imports too.

Filters

  • wpip_brand_taxonomies — the list of brand taxonomies checked, in order (default: product_brand, pwb-brand, yith_product_brand, product_brands).

Constants

  • WPIP_AI_KEY — the AI service key, kept out of the database.

Was this article helpful to you?

Novice

Ostani obveščen

Prejmi obvestila o novih vstavitvah, posodobitvah in ekskluzivnih učbenikih.

Nikakršnega spama. Odjavi se kadarkoli.