Title: API connection unsuccessful
Last modified: August 24, 2016

---

# API connection unsuccessful

 *  Resolved [tasker204](https://wordpress.org/support/users/tasker204/)
 * (@tasker204)
 * [11 years ago](https://wordpress.org/support/topic/api-connection-unsuccessful/)
 * I have installed the plugin, and added my API Key to the media setting page, 
   but I can’t connect to the API. I get this message on the media settings page:
 * API connection unsuccessful
 * I have confirmed that my server has cURL enabled.
    What am i missing?
 * Thanks
 * [https://wordpress.org/plugins/tiny-compress-images/](https://wordpress.org/plugins/tiny-compress-images/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * (@tinypng)
 * [11 years ago](https://wordpress.org/support/topic/api-connection-unsuccessful/#post-6097671)
 * Unfortunately the error reporting is not very helpful here. But you can find 
   out what goes wrong by attempting to compress one image. You can do this by going
   to your media library and hitting “Compress” on one of your images, or uploading
   a new one. You should see a more descriptive message. Can you see what the reported
   error is?
 *  Plugin Author [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * (@tinypng)
 * [11 years ago](https://wordpress.org/support/topic/api-connection-unsuccessful/#post-6097821)
 * Hi,
 * Any information on the error message?
    Thanks!
 *  Thread Starter [tasker204](https://wordpress.org/support/users/tasker204/)
 * (@tasker204)
 * [11 years ago](https://wordpress.org/support/topic/api-connection-unsuccessful/#post-6097822)
 * Unfortunately I was not getting any error messages.
 * I think I realized what was happening though. I was testing this on my staging
   server which is protected by HTTP AUTH.
 * When I tried on my my production server, everything was fine.
 * Thanks
 *  Plugin Author [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * (@tinypng)
 * [11 years ago](https://wordpress.org/support/topic/api-connection-unsuccessful/#post-6097823)
 * Great to hear that it is working!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘API connection unsuccessful’ is closed to new replies.

 * ![](https://ps.w.org/tiny-compress-images/assets/icon-256x256.png?rev=3448487)
 * [TinyPNG - JPEG, PNG & WebP image compression](https://wordpress.org/plugins/tiny-compress-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tiny-compress-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tiny-compress-images/)
 * [Active Topics](https://wordpress.org/support/plugin/tiny-compress-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tiny-compress-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tiny-compress-images/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/api-connection-unsuccessful/#post-6097823)
 * Status: resolved