How to get the ThingSpeak API Key
ThingSpeak provides API keys that let you read from or write to your channels. Here's how you get one:
Step by step
- Sign up / Log in at ThingSpeak.
- Once logged in, go to Channels (top menu).
- Click New Channel (if you don't have one).
- Give your channel a name and description.
- Create fields (up to 8 per channel)—these are your data fields.
- After creating a channel:
- Go to your Channel Settings page.
- Look under API Keys.
- You'll see Write API Key (for sending data).
- You'll see Read API Key (for reading data).

Complete guide
For further reading see this conclusive guide.