You're providing the clientid as key, which is not correct.
If you go to the page where you can manage your application you'll need to copy the key:
Key
Pass this as
key
when making requests against the Stack Exchange API to receive a higher request quota.
This is not considered a secret, and may be safely embed in client side code or distributed binaries.