Title: Empty API-answer
Last modified: June 19, 2020

---

# Empty API-answer

 *  Resolved [doshisahil](https://wordpress.org/support/users/doshisahil/)
 * (@doshisahil)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/)
 * I am trying to access a server for a certain JSON Api. But I am getting the Empty
   API-answer: No JSON Recieved for the same.
 * When I access that URL in the web browser by typing the url directly, it works.
 * But it doesn’t work here.
 * [jsoncontentimporter url=”[http://103.224.247.200:7500/m/sahil&#8221](http://103.224.247.200:7500/m/sahil&#8221);
   numberofdisplayeditems=””]
    - {file}[/jsoncontentimporter]
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fempty-api-answer%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13009475)
 * Hi,
 * try
    [jsoncontentimporter url=http://103.224.247.200:7500/m/sahil]{file}[/jsoncontentimporter]
 * The quotationmarks in your posting creat a invalid URL.
 * see [http://wptest.kux.de/103-224-247-2007500/](http://wptest.kux.de/103-224-247-2007500/)
 * Bernhard
 *  Thread Starter [doshisahil](https://wordpress.org/support/users/doshisahil/)
 * (@doshisahil)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13010391)
 * Hi, I’m getting the same error. I changed the url inside the shortcode but it
   didn’t change the result
 *  Thread Starter [doshisahil](https://wordpress.org/support/users/doshisahil/)
 * (@doshisahil)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13010476)
 * I even disabled all the themes and the plugins except the json content importer
   but it still didn’t work.
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13011035)
 * try to copypaste this:
    `[jsoncontentimporter url=http://103.224.247.200:7500/
   m/sahil debugmode=10]{file}[/jsoncontentimporter]`
 * Can I then see the Page you using it?
    -  This reply was modified 5 years, 11 months ago by [berkux](https://wordpress.org/support/users/berkux/).
 *  Thread Starter [doshisahil](https://wordpress.org/support/users/doshisahil/)
 * (@doshisahil)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13011853)
 * Hi,
 * I have added this code. Please check out this page:
 * [http://www.agri10x.com/dummy-page](http://www.agri10x.com/dummy-page)
 * It is showing a connection timed out error however, when you open this URL in
   the browser, it works. So, that is not an issue.
 * Please sort this. Thanks
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13012585)
 * Hi,
 * Try another url like [http://worldtimeapi.org/api/timezone/Europe/Berlin](http://worldtimeapi.org/api/timezone/Europe/Berlin)
   
   If this works: maybe your serverhoster configured php to be unable to retrieve
   special urls, like the one on port 7500
 * If thisis not working: has your hoster blockedall requests.
 * Bernhard
 *  Thread Starter [doshisahil](https://wordpress.org/support/users/doshisahil/)
 * (@doshisahil)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13012595)
 * It is being able to access other APIs. But just not this one. What settings could
   be a potential issue? Could you please check?
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13012647)
 * Ask your webserver-hoster if there are any security settings that forbid php-
   requests on port 7500
 *  Thread Starter [doshisahil](https://wordpress.org/support/users/doshisahil/)
 * (@doshisahil)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13013070)
 * But how will that affect my api? The api is on the data server that I was calling.
   There is no authentication on that api and all ports are open where the data 
   server is because I am able to access this api with a web browser
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13013478)
 * Access to an url via web browser and via php-wordpress-server might be very different.
   
   My guess is still: the php on the webserver can‘t load the url due to port 7500.
   To verify that you also can try a php script on your server using [https://www.php.net/manual/de/function.file-get-contents.php](https://www.php.net/manual/de/function.file-get-contents.php)
 *  Thread Starter [doshisahil](https://wordpress.org/support/users/doshisahil/)
 * (@doshisahil)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13013605)
 * I tried out the PHP script. I get a blank page.
 * Also, if a web browser is able to access the API, that means that there are no
   port issues because the connection between the browser and the server is happening.
   The JSON file is showing properly. So, I dont think it is the webserver issue
   at all.
 * By webserver, you mean where the 103.224.247.200:7500 is right?
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13013972)
 * You might have a temp login to Your wordpress which you can post at
    [https://jsoncontentimporter.freshdesk.com/widgets/feedback_widget/new?searchArea=no](https://jsoncontentimporter.freshdesk.com/widgets/feedback_widget/new?searchArea=no)
   in private?
 * << Also, if a web browser is able to access the API, that means that there are
   no port issues because the connection between the browser and the server is happening.
   >>
    this is true in 99,9% of all situations. But not always… In the end a browser
   creates an http-get request with his http-requestsoftware. When using wordpress,
   php, jci the request is done with other techniques.
 *  Thread Starter [doshisahil](https://wordpress.org/support/users/doshisahil/)
 * (@doshisahil)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13014051)
 * I have sent my admin creds to access the backend wp-admin for this. Please feel
   free to check it out. I am using the file called agri10x.com/data-server.php 
   to access the data servers API
 *  Thread Starter [doshisahil](https://wordpress.org/support/users/doshisahil/)
 * (@doshisahil)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13014853)
 * Any luck?

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

The topic ‘Empty API-answer’ 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/)

 * 14 replies
 * 2 participants
 * Last reply from: [doshisahil](https://wordpress.org/support/users/doshisahil/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/empty-api-answer/#post-13014853)
 * Status: resolved