search_ebay: Search eBay Listings

Description Usage Arguments Value Examples

View source: R/search.R

Description

Search eBay Listings

Usage

1
2
3
search_ebay(keywords, type = c("active", "completed"),
  search_description = TRUE, categories = NULL, item_filters = NULL,
  n_results = 100, token = get_ebay_token())

Arguments

keywords

a character string, containing keywords for ebay listings search

type

a character string, either "active" or "completed" to indicate the type of listings to search. Defaults to "active".

search_description

logical, set to TRUE to include sub-titles and item descriptions in the search. If FALSE, the search will only look at titles of items.

categories

character (or numeric) vector (max length = 3), containing the categories to include in search.

item_filters

a named list, containing and adhering to the conventions specified in the eBay API documention. ItemFilter Documentation

n_results

numeric (length 1), the number of listing results to return. Rounded to the nearest 100.

token

eBay Devleoper API token (AppID)

Value

dataframe, containing eBay search results

Examples

1
2
3
4
5
df.items <- search_ebay(
  "model train",
  type = "active",
  item_filters = list(MinPrice = 100, MaxPrice = 300)
)

jdegregorio/ebaypi documentation built on Nov. 14, 2019, 3:38 p.m.