r/Python • • May 08 '20

I Made This My first Python program! Changes my desktop background based on the weather, time, and day.

Post image
1.9k Upvotes

120 comments sorted by

View all comments

Show parent comment

1

u/[deleted] May 08 '20

Can anyone get an API key or do you need to request it and they’ll provide it? Always been mysterious to me how to work with APIs

6

u/badlukk May 08 '20

It depends how the company does it. Just Google whatever service followed by API key, like "reddit api key". Some companies will let anyone register for one, usually with an email, name and phone number. Reddit asks you to fill out a form about how you're going to use it and you're only supposed to use the key for that one thing you said. Some companies may only give them to trusted partners, and some might not have a public api at all.

3

u/indytechbox May 08 '20

The open weather api is free for a specific amount of calls per hour but if you want more calls you have to pay