Dollar General
Dollar General Store Locator API
Dollar General stores near a US ZIP code or coordinates, nearest first (up to 25): store number, address, phone, coordinates, distance in miles, opening hours and services. Pass a upc and one call returns that product's unit count at every store in the list. Costs 1 credit per request.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonzipstringUS ZIP code to search around. Pass this, or latitude and longitude.
Example: 75203
latitudenumberLatitude to search around.
Example: 32.74
longitudenumberLongitude to search around.
Example: -96.79
radiusnumberSearch radius in miles, 1-100. Defaults to 25.
Example: 25
upcstringProduct UPC. When set, every store also carries its unit count of that product.
Example: 030772156629
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.dollar_general.stores(zip="75203", upc="030772156629")["data"]
# One call: the product's unit count at up to 25 nearby stores
for s in res["stores"]:
print(s["store_id"], s["address"], s["distance_miles"], "mi", "units:", s["quantity"])Response