MyNixOS website logo
Description

Walmart Open API Wrapper.

Provides API access to the Walmart Open API <https://developer.walmartlabs.com/>, that contains data about stores, Value of the day and products which includes names, sale prices, shipping rates and taxonomies.

walmartAPI

Travis build status

The goal of walmartAPI is to give access to the API created by walmartlabs to search products, locate stores etc etc.

To use this package you will need an API key which you can acquire by signing up on this website https://developer.walmartlabs.com/member.

Installation

You can install walmartAPI from github with:

# install.packages("devtools")
devtools::install_github("EmilHvitfeldt/walmartAPI")

Examples

This package provides a handful for functionalities. We are able to look up a specific product based on an ID.

library(tidyverse)
library(walmartAPI)

key <- "************************"

walmartAPI::lookup(id = 19336123, key = key)
#> # A tibble: 1 x 15
#>     itemId                                               name   msrp
#>      <int>                                              <chr>  <dbl>
#> 1 19336123 Intex Krystal Clear Saltwater System 15,000 Gallon 299.99
#> # ... with 12 more variables: salePrice <dbl>, upc <chr>,
#> #   categoryPath <chr>, longDescription <chr>, thumbnailImage <chr>,
#> #   productTrackingUrl <chr>, standardShipRate <dbl>, marketplace <lgl>,
#> #   productUrl <chr>, availableOnline <lgl>, offerType <chr>,
#> #   shippingPassEligible <lgl>

search in products using plain text

walmartAPI::search("ipod", key = key)
#> # A tibble: 10 x 15
#>       itemId
#>        <int>
#>  1  42608125
#>  2  42608121
#>  3  22288784
#>  4 541357139
#>  5  49802795
#>  6  54203936
#>  7  50689211
#>  8  12510108
#>  9 173544522
#> 10 172440769
#> # ... with 14 more variables: name <chr>, msrp <dbl>, salePrice <dbl>,
#> #   upc <chr>, categoryPath <chr>, longDescription <chr>,
#> #   thumbnailImage <chr>, productTrackingUrl <chr>,
#> #   standardShipRate <dbl>, marketplace <lgl>, productUrl <chr>,
#> #   availableOnline <lgl>, offerType <chr>, shippingPassEligible <lgl>

and locate stores in your area

store_locator(city = "Houston", key = key)
#> # A tibble: 86 x 12
#>       no                                name country       lon      lat
#>    <int>                               <chr>   <chr>     <dbl>    <dbl>
#>  1  5959                     Houston Walmart      US -95.40132 29.77282
#>  2  5612         Houston Walmart Supercenter      US -95.31293 29.71622
#>  3  4526         Houston Walmart Supercenter      US -95.37707 29.82985
#>  4  3640         Houston Walmart Supercenter      US -95.46515 29.78876
#>  5  3584         Houston Walmart Supercenter      US -95.46501 29.72305
#>  6  2718                     Houston Walmart      US -95.45750 29.67688
#>  7  2066         Houston Walmart Supercenter      US -95.51169 29.73549
#>  8  5094 Houston Walmart Neighborhood Market      US -95.49547 29.67444
#>  9  2257         Houston Walmart Supercenter      US -95.50908 29.85391
#> 10  2724        Pasadena Walmart Supercenter      US -95.21038 29.69344
#> # ... with 76 more rows, and 7 more variables: streetAddress <chr>,
#> #   city <chr>, stateProvCode <chr>, zip <chr>, phoneNumber <chr>,
#> #   sundayOpen <lgl>, timezone <chr>
Metadata

Version

0.1.5

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows