Title: EMPTY api-answer: No JSON received
Last modified: April 19, 2020

---

# EMPTY api-answer: No JSON received

 *  Resolved [rodolfost](https://wordpress.org/support/users/rodolfost/)
 * (@rodolfost)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/empty-api-answer-no-json-received/)
 * Hello,
    I am trying to grab data of my web radio. I use this: [jsoncontentimporter
   url=http://eu1.reliastream.com:2199/api.php?xm=server.getstatus&f=json&a[username]
   =xxxxxxxxxx&a[password]=xxxxxxxxxx debugmode=10] test [/jsoncontentimporter]
 * What i get is this:
    EMPTY api-answer: No JSON received – is the API down? Check
   the URL you use in the shortcode!
 * When i put the link in a browser it opens it up normal and i can copy/paste the
   code in the json editor.
 * Thank You!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fempty-api-answer-no-json-received%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/empty-api-answer-no-json-received/#post-12697312)
 * Hi,
 * My guess: you must urlencode the [ and ]
    Wordpress thinks, the shortcode ends
   at ] Try %5B and %5D instead…
 * And place the debugmode=10 right after Jsoncontentimporter…
 * And replace the & by &
 * Bernhard
 *  Thread Starter [rodolfost](https://wordpress.org/support/users/rodolfost/)
 * (@rodolfost)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/empty-api-answer-no-json-received/#post-12697347)
 * Hello and thank you for your quick answer.
 * “And replace the & by &”
 * You mean & by & ?
 * My code looks like this now:
    [jsoncontentimporter debugmode=10 url=http://eu1.
   reliastream.com:2199/api.php?xm=server.getstatus&f=json&a%5Busername%5D=mondobon&
   a%5Bpassword%5D=14569fmfmf ] test [/jsoncontentimporter]
 * and now i get this:
    DEBUG: Cache is NOT active DEBUG: try to retieve this url:
   [http://eu1.reliastream.com:2199/api.php?xm=server.getstatus&f=json&a%5Busername%5D=mondobon&a%5Bpassword%5D=14569fmfmf](http://eu1.reliastream.com:2199/api.php?xm=server.getstatus&f=json&a%5Busername%5D=mondobon&a%5Bpassword%5D=14569fmfmf)
   DEBUG: wp_remote_get to [http://eu1.reliastream.com:2199/api.php?xm=server.getstatus&f=json&a%5Busername%5D=mondobon&a%5Bpassword%5D=14569fmfmf](http://eu1.reliastream.com:2199/api.php?xm=server.getstatus&f=json&a%5Busername%5D=mondobon&a%5Bpassword%5D=14569fmfmf)
   DEBUG: arguments: Array ( [timeout] => 5 )
 * DEBUG: error getting URL: cURL error 7: Failed connect to eu1.reliastream.com:
   2199; Connection refused
    DEBUG: no data received: check url of json-feed
 * EMPTY api-answer: No JSON received – is the API down? Check the URL you use in
   the shortcode!
 * [/jsoncontentimporter]
 *  Thread Starter [rodolfost](https://wordpress.org/support/users/rodolfost/)
 * (@rodolfost)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/empty-api-answer-no-json-received/#post-12697350)
 * I mean this: & a m p ;
    -  This reply was modified 6 years, 2 months ago by [rodolfost](https://wordpress.org/support/users/rodolfost/).
    -  This reply was modified 6 years, 2 months ago by [rodolfost](https://wordpress.org/support/users/rodolfost/).
 *  Thread Starter [rodolfost](https://wordpress.org/support/users/rodolfost/)
 * (@rodolfost)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/empty-api-answer-no-json-received/#post-12697373)
 * I also tried by usin this more simple url: [jsoncontentimporter debugmode=10 
   url=http://eu1.reliastream.com:2199/rpc/mondobon/streaminfo.get
    ] test [/jsoncontentimporter]
 * And I get this:
    DEBUG: error getting URL: cURL error 7: Failed connect to eu1.
   reliastream.com:2199; Connection refused DEBUG: no data received: check url of
   json-feed
 * DEBUG: Cache is NOT active
    DEBUG: try to retieve this url: [http://eu1.reliastream.com:2199/rpc/mondobon/streaminfo.get](http://eu1.reliastream.com:2199/rpc/mondobon/streaminfo.get)
   DEBUG: wp_remote_get to [http://eu1.reliastream.com:2199/rpc/mondobon/streaminfo.get](http://eu1.reliastream.com:2199/rpc/mondobon/streaminfo.get)
   DEBUG: arguments: Array ( [timeout] => 5 )
 * DEBUG: error getting URL: cURL error 7: Failed connect to eu1.reliastream.com:
   2199; Connection refused
    DEBUG: no data received: check url of json-feed
 * EMPTY api-answer: No JSON received – is the API down? Check the URL you use in
   the shortcode!
    -  This reply was modified 6 years, 2 months ago by [rodolfost](https://wordpress.org/support/users/rodolfost/).
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/empty-api-answer-no-json-received/#post-12697471)
 * “Connection refused” means, that your wordpress-server asks [http://eu1.reliastream.com:2199](http://eu1.reliastream.com:2199)
   and this fails.
    My guess: There are some security-settings-preventing your wordpress
   connecting this server. Usually your hoster knows more about that.

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

The topic ‘EMPTY api-answer: No JSON received’ is closed to new replies.

 * ![](https://ps.w.org/json-content-importer/assets/icon-256x256.png?rev=3464653)
 * [Get Use APIs - JSON Content Importer](https://wordpress.org/plugins/json-content-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-content-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-content-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/json-content-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-content-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-content-importer/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/empty-api-answer-no-json-received/#post-12697471)
 * Status: resolved