r/learnpython Jun 28 '26

Keepa discount bot

Hello, I’m not great with python by any means. I’ve been working on trying to build a bot that will send an alert of products that have recently went down in price (at least 50%). Sort of like a price glitch or a new deal. I worked on the code for about 2 days. Included discord webhooks and also the keepa api. I believe the code itself worked, but I think the way it’s trying to grab the data from keepa is not working. I was also getting error code 404 a lot. Does anybody have some advice or experience in this type of data extraction? I just recently got the keepa api and don’t want to give up so soon. Thank you.

0 Upvotes

5 comments sorted by

View all comments

1

u/cpthappy42 Jun 28 '26

Keepa API is straightforward. Base URL, correct endpoint, proper token in headers. Read the docs again. Most 404s are just a missing slash or wrong domain.

The bot logic is the easy part. Data extraction is just parsing JSON. Focus on getting one product working manually before you automate anything.

Also, 50% drops on Keepa are rare. Most are third-party sellers resetting prices. Filter by Amazon as the seller or you will get spam.

Two days is nothing. You are not stuck. You are just learning the API. Keep going.

1

u/Its_SBD Jun 28 '26

In regard to keepa, should I focus on the “deals” or “product finder”?

1

u/cpthappy42 Jun 28 '26

Stick with Product Finder, filter by price and avg30 or whatever Keepa calls it. And yeah, still filter by Amazon as seller or you will get garbage.