Target store finder API
Target stores near a city, ZIP or address, with hours and address.
GET /v1/target/stores1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/target/stores?query=Minneapolis",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "query": "Minneapolis", "count": 3, "stores": [ { "status": "Open", "store_id": "1375", "is_test_location": false, "location_name": "Mpls Nicollet Mall", "distance": 0.46, "main_voice_phone_number": "612-338-0085", "mailing_address": { "address_line1": "900 Nicollet Mall", "city": "Minneapolis", "country_code": "US", "region": "MN", "state": "Minnesota", "postal_code": "55403-2530" }, "geographic_specifications": { "iso_time_zone_code": "America/Chicago", "time_zone_code": "CST", "time_zone_utc_offset_name": "UTC-06" }, "rolling_operating_hours": { "main_hours": { "days": [ { "…": "4 fields" }, { "…": "4 fields" }, "… 12 more" ] } } }, { "status": "Open", "store_id": "3200", "is_test_location": false, "location_name": "Minneapolis Dinkytown", "distance": 1.52, "main_voice_phone_number": "612-355-3857", "mailing_address": { "address_line1": "1329 5th St SE", "city": "Minneapolis", "country_code": "US", "region": "MN", "state": "Minnesota", "postal_code": "55414-1390" }, "geographic_specifications": { "iso_time_zone_code": "America/Chicago", "time_zone_code": "CST", "time_zone_utc_offset_name": "UTC-06" }, "rolling_operating_hours": { "main_hours": { "days": [ { "…": "4 fields" }, { "…": "4 fields" }, "… 12 more" ] } } }, "… 1 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
queryquery · required | string | City, ZIP or address. Example: Minneapolis. |
Response fields
200 with a TargetStores, in the JSON Target’s own site reads.
| Field | Type | Description |
|---|---|---|
query | string | |
count | number | |
stores | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | Stores. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The item, category or place does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Target is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Target is a trademark of Target Brands, Inc. We are not affiliated with or endorsed by Target.