get_category_items: Get items listed under a given category.

Description Usage Arguments Value

View source: R/items_and_search.R

Description

Get items listed under a given category.

Usage

1
get_category_items(site_id, category_id, offset = 0, sort = 0)

Arguments

site_id

Required. site_id of the country of interest. See mercadolibreR::get_site_ids() for valid site_ids.

category_id

Required. category_id of the category of interest. See mercadolibreR::get_categories() for valid category_ids.

offset

Optional. Default is zero. Maximum is 1000. Starting point from which to return records. For example, to receive the 51st to 100th records, offset = 50.

sort

Optional. Default is zero. How to sort results. 0 = by relevance; 1 = by price, ascending; 2 = by price, descending.

Value

Returns a list() of information associated with fifty items listed under the given category. Fields include sold_quantity, available_quantity, title, permalink, tags, seller, etc. See the API documentation for more information.


njcorona/mercadolibreR documentation built on July 19, 2020, 3:21 p.m.