=== Searchwise API Data Feed ===
Contributors: searchwise
Tags: woocommerce, product feed, API, REST API, JSON
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 1.0.1
Requires PHP: 7.4
Requires WC: 3.5
License: GPLv2 or later
License URI: 

== Description ==
The **Searchwise API Data Feed** is a WooCommerce extension that generates a structured, customizable **JSON product feed** for WooCommerce stores using a **REST API** endpoint.
The feed includes detailed product information such as pricing, stock status, categories, images, brand, shipping cost, and delivery time, with options to include variations and full product content.
This plugin is ideal for integrating WooCommerce product data into external systems such as search engines or recommendation systems.
It allows store owners to fetch products by IDs or slugs, include/exclude variations, paginate results, and more.
Additionally, it features secure **API key authentication**.

---

== Installation ==
1. Download the plugin as a zip file named `searchwise-API-data-feed.zip`.
2. Upload and extract the contents to your WordPress plugins directory in a folder named `searchwise-API-data-feed`.
3. Activate the plugin through the 'Plugins' menu in WordPress.
4. Once activated, the plugin registers the new REST API route.
---

== Frequently Asked Questions ==
= How do I use the API? =
Make a **POST** request to the endpoint: `/wp-json/v1/product/feed`.
You must include a valid API key in the `x-api-key` request header.

= What parameters are available?
=
The following parameters can be sent in the POST request body (JSON format):
- **variation**: boolean (default `false`) - Whether to include product variations.
- **limit**: integer (default `10`) - Number of products per page.
- **page**: integer (default `1`) - Page number for pagination.
- **products**: string (Optional) - Comma-separated product IDs to fetch.
- **slugs**: string (Optional) - Comma-separated product slugs to fetch.
- **include_content**: boolean (default `false`) - Whether to include the full product content (description field).
= How does API authentication work? =
The API uses a key-based authentication system.
Your request must include a header `x-api-key` containing the API key provided by Searchwise.
The plugin validates this key against the Searchwise server before processing the request.
---

== Upgrade Notice ==
= 1.0.1 =
* Security Enhancement: Switched from IP-based access to a more secure API key authentication system.
* Initial stable release.