Skip to main content

TargetAPI

Interact with Target's API

Installation

Download from PyPi with pip install TargetAPI

Usage

  • Import with from TargetAPI import Target
  • Initialize with target = Target(api_key="myapikeyhere")

Examples:

  • Get stores: stores = target.stores
  • Search for a product: results = target.search(keyword="PlayStation 5 game console")
  • Product reviews: reviews = results[0].reviews
  • Product price: price = results[0].price
  • Product availability: availability = results[0].availability
  • Products on-hand: print(availability.onhand)
  • Availability locations: locations = availability.locations
  • Location phone number: print(locations[0].store.phone_number)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TargetAPI-0.2.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TargetAPI-0.2.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file TargetAPI-0.2.0.tar.gz.

File metadata

  • Download URL: TargetAPI-0.2.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for TargetAPI-0.2.0.tar.gz
Algorithm Hash digest
SHA256 05521d0106bd972c22a1383be9e1512334b8d2ba853f588090f836744ace80d8
MD5 5472b31ffb07242fdf1c16b11baa4c29
BLAKE2b-256 cffee1c8bae9038f2b671059bb8c77c2260a98db066f34f84ffb18e1d4774347

See more details on using hashes here.

File details

Details for the file TargetAPI-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: TargetAPI-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for TargetAPI-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a46df955288ae77059c3e761c6ee4828565893f6d002c7c64989bcf0b5dd60e
MD5 c9d6228be9c3d2c3323dd67e6a9d60f7
BLAKE2b-256 8a3de56412a8dc1e5c4a512a099dab5c86d521d9ce790b16a7bb4cca5faec6cc

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page