Product Filtering - Venddor API

Advanced Product Filtering

The Venddor API allows you to filter products using a variety of parameters. This feature is similar to the advanced search functionality in the admin panel, giving you powerful control over product queries.

Request Format

The basic URL structure for product filtering is:

https://www.venddor.com.br/api/products?<filter>=Y&<additional_param>=<value>&<another_param>=<value>&...&sort_by=<sorting>&sort_order=<sort_order>&q=<query>

Where:

Vendor-Specific Queries: To get results for a specific vendor or store, use these URL structures:
https://www.venddor.com.br/api/stores/1/products
https://www.venddor.com.br/api/vendors/1/products

Example

GET /stores/1/products?pfull=Y&price_from=10&sort_by=product&sort_order=asc&q=foo

This example retrieves all products from store #1 that:

  • Contain the word "foo" in their full description
  • Cost more than $10
  • Are sorted by product name from A to Z
curl --user admin@example.com:APIkey -X GET 'https://www.venddor.com.br/api/stores/1/products?pfull=Y&price_from=10&sort_by=product&sort_order=asc&q=foo'

Available Filters

Filter Description
pname Product name
pshort Short description
pfull Full description
pkeywords Meta keywords
pcode Product code
cid Category ID
amount_from In stock lower range
amount_to In stock higher range
price_from Price lower range
price_to Price higher range

Additional Parameters

Parameter Description Supported values
subcats Include subcategories of the given category (the cid filter must be used) in the search scope Y, N
order_ids IDs of the orders to search the products in Comma-separated list of order IDs, e.g., 1,13,24
free_shipping Filter by free shipping status Y, N
status Filter by product status A - Active
D - Disabled
H - Hidden

Sorting Options

Sort parameter Description
status Product status
list_price List price
product Product name
price Price
code Product code
amount In stock amount

Pagination

To control the number of results returned and to navigate through multiple pages of results, use these pagination parameters:

Parameter Description
page Shows products on the specified page number
items_per_page Controls how many products are displayed per page (default: 10)

Pagination Examples

https://www.venddor.com.br/api/products?page=5

Response is an array with 10 products from the 5th page (10 is the default value of the items_per_page parameter).

https://www.venddor.com.br/api/products?items_per_page=20

Response is an array with 20 products from the first page.

https://www.venddor.com.br/api/products?page=5&items_per_page=20

Response is an array with 20 products from the 5th page.

Tip: Combine pagination with filters and sorting for powerful, targeted queries that return exactly the data you need in a manageable format.