Performance Problem Invoke REST-API

I am invoking some REST services from codeigniter 3.x on this site [login to view URL] the request that I make using this code is very slow (10 seconds aprox) both front-end and back-end are in the same server, but the performance is very slow.


public function callApi($url, $post_data=array()){

$str_data = json_encode($post_data);

$ch = curl_init($url);

curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_POSTFIELDS,$str_data);

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

$headers[] = 'Accept: application/json';

$headers[] = 'Content-Type: application/json';

$headers[] = 'Content-length: 0';

curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);

curl_close($ch); // Seems like good practice

return json_decode($result);


The API REST is here:

[login to view URL]

When I try this same request in POSTMAN the response time is very fast (attach image), could you help me that I am doing wrong please.

Evner: Codeigniter, JSON, PHP, RESTful, Web Hosting

Se mere: api vs database, rest api vs sql, how to speed up api calls, what is rest, improve rest api performance, how to make api faster, rest api database example, how to increase performance of rest api, coldfusion google maps api https, https www bankbiicoid, https www prox, https www translation web, iis isapi redirect https www httpsdomain, multi users photo uploading performance problem, flot performance problem, jquery mousemove performance problem firefox, fotolia api https, silverlight telerik report performance problem, https www behance net gallery 29366123 rice packaging designs, https www behance net gallery 30118837 earthnine website design

Om arbejdsgiveren:
( 30 bedømmelser ) MEXICO, Mexico

Projekt ID: #17521585

Tildelt til:


Hi, My name is Xiong Jie Zhao, live in China. I am a newbie in this guru, but I have a lot of experiences with web development. I found your bug already. Let you know when you hire me. Regards

$16 USD / time
(6 bedømmelser)

9 freelancere byder i gennemsnit $19/time for dette job


Hello, I am highly interested to work on this project as I have great experience working over different-2 API integration to websites based on client needs. I am a PHP expert and have been consistently helping Flere

$22 USD / time
(34 bedømmelser)

Dear client I have read your issues and I can solve your issue in the short time There maybe 3 problems for it 1/ Page rendering problem 2/ The parsing data after the apis work and get the response 3/ Other issues Flere

$22 USD / time
(29 bedømmelser)

Hi , It’s great to meet you. I’m Somya Tripathi, co-owner of Arkss Technologies Private Limited. We develop: kickass, cutting-edge software for web applications, mobile apps, Blockchain, Cryptocurrency, Tra Flere

$22 USD / time
(22 bedømmelser)

Hey!! Greeting of the day!! I am ready to resolve the Performance Problem Invoke REST.I have checked your attached file also and i am ready to do this task for you. Skills:-Codeigniter, JSON, PHP, RESTful, Web Flere

$16 USD / time
(18 bedømmelser)

Hi, I have been doing Mobile & Web development for the past 11+ years, I have plenty of experience and a great eye for software development. I had completed all job perfectly on Freelancer.com. I am proud of my 100 Flere

$22 USD / time
(2 bedømmelser)
$20 USD / time
(7 bedømmelser)

I am working as a senior web developer for 5 years. Dont worry, you will never waste your time. I hope full star and credit, but dont want much money. I am sure we will complete our project successfully. Thanks

$15 USD / time
(4 bedømmelser)

Hi there, Greetings!! I have 6 years of experience of Graphic Design, Logo Design, Web Design & Web Development,App Development. I can develop websites in different platforms like WORDPRESS, WO-Commerce, E-Commerce Flere

$15 USD / time
(0 bedømmelser)