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)

Metadata

Release files for TargetAPI 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TargetAPI 0.2.0
File Size Uploaded
TargetAPI-0.2.0.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TargetAPI 0.2.0
File Interpreter ABI Platform
TargetAPI-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / TargetAPI-0.2.0.tar.gz

Download URL TargetAPI-0.2.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
05521d0106bd972c22a1383be9e1512334b8d2ba853f588090f836744ace80d8
BLAKE2b-256 checksum
How to use checksums
cffee1c8bae9038f2b671059bb8c77c2260a98db066f34f84ffb18e1d4774347
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / TargetAPI-0.2.0-py3-none-any.whl

Download URL TargetAPI-0.2.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a46df955288ae77059c3e761c6ee4828565893f6d002c7c64989bcf0b5dd60e
BLAKE2b-256 checksum
How to use checksums
8a3de56412a8dc1e5c4a512a099dab5c86d521d9ce790b16a7bb4cca5faec6cc
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page