Dollar General
Dollar General Search API
Search Dollar General products at one store and get that store's price and original price, units on hand (available_quantity), the raw inventory_status code, rating and review count, categories, digital coupons and promotions, UPC and product URL. Prices are in dollars. store_id is required. 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/jsonquerystringrequiredSearch keywords.
Example: paper towels
store_idstringrequiredDollar General store number. Prices and unit counts are that store's. Find numbers with /api/v1/dollargeneral/stores.
Example: 12629
pageintegerResults page, 1-based. Defaults to 1. 24 results per page.
Example: 1
sortstringrecommended (default), price_low, price_high or rating.
in_stock_onlybooleanOnly products with units on hand at the store. Defaults to false.
Example: true
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.dollar_general.search(query="paper towels", store_id="12629")["data"]
for p in res["products"]:
print(p["upc"], p["title"], p["price"], "was", p["original_price"], "on hand:", p["available_quantity"])Response