Convert Javascript to PHP Code to get JSON Data from API

Completed Posted Feb 5, 2015 Paid on delivery
Completed Paid on delivery

I am currently getting JSON data from an API. The data is being parsed with Javascript. Everything works the way it should with the JS code, but I need to retrieve the JSON data from the API on the server side in PHP. I need the current javascript variables to be PHP variables that I can call on the page to get the values I need in order to set the page title, META description and META keywords for each item.

There are 4 PHP files that display data and 1 PHP file with the "master" javascript that retrieves data from the API. These are the only files that should need to be modified.

I will provide the 5 PHP files with Javascript code in-lined and the API documentation. The JS code is commented and described in each file. Using the javascript method, everything is working perfectly except for the following:

- page title is being changed after page load (bad for SEO and indexing)

- need to create a META description tag using info from variables in the JSON data

- need to create a META keywords tag using info from variables in the JSON data

Since these variables need to be unique and come from the server side, using javascript to parse the API, while 100% working, is not really an option.

Retrieving the JSON data from API using PHP and then storing the current javascript variables as PHP variables should solve this issue.

HTML JavaScript jQuery / Prototype PHP

Project ID: #7091775

About the project

28 proposals Remote project Active Feb 5, 2015

Awarded to:

simik

Hi! I can rewrite the API calls from javascript to PHP for you. I can do a sample page change and host it at my website so you can I see I can do the job. Send me the pages via chat, and I'll do it in a few hours.

$255 USD in 2 days
(41 Reviews)
4.9

28 freelancers are bidding on average $480 for this job

kchg

Hi, I am a top 7th full-stack freelancer. Please get in touch and discuss in detail. I can get started right now. Thanks. Sincerely!

$721 USD in 10 days
(263 Reviews)
8.7
superior5

George here based from Los Angeles, USA. I am expert in desired skills for this project and have done similar tasks already. Please get back to me, so I can show you some of the work I have done.

$747 USD in 9 days
(172 Reviews)
7.9
rinsadsl

Hi Good Day I have worked a lot with JSON data parsing with API. I clearly understand what you need. I can do it on a fair price. Looking forward to hear from you. Thanks Rinsad

$263 USD in 4 days
(483 Reviews)
7.7
rajeshsonisl

Hello! With 99% completion rate, 750 successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page https://www.freelancer.com/u More

$473 USD in 2 days
(567 Reviews)
7.6
neoconcepts

expert api developer here. i can fetch jsaon api by php and do further processing. ready to start. thanks

$555 USD in 10 days
(130 Reviews)
7.4
mituld

Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start Thanks

$515 USD in 15 days
(179 Reviews)
7.4
marchingantssl

Hi there, I’ve read your brief and I am really willing to work with you. I am just interested in more details that you might give about the project. We have enough experience to help you with this project, o More

$368 USD in 11 days
(139 Reviews)
7.1
programer218

Hello. I am a PHP developer. I can work for you. Please look my reviews and send me a message. Thank you.

$526 USD in 5 days
(121 Reviews)
6.9
mobiletech1604

Hi there Thank you for posting this project. I could complete this project within 5 days. Looking forward to hear from you. Thanks & B/R

$722 USD in 7 days
(22 Reviews)
5.9
anshangtai

Dear Sir. i am a skilled PHP expert having worked for 9 yrs. I reviewed your job requirement carefully then placed a bid. I have good technical experience in completing such jobs. I can convert javascript More

$527 USD in 10 days
(16 Reviews)
5.8
khoahuynhpro

Hello you! i can do it and finish 3 days. Please let me know.I looking forward on work your project. Thanks! Mr Khoa

$526 USD in 10 days
(76 Reviews)
5.6
taskmanageryd

Hello, I am an expert and experienced Developer.. I am perfect developer for this JOB.. I have many many many times have done work on API .. expecting your quick and +ve reply.. Thanks

$250 USD in 3 days
(63 Reviews)
5.2
Tiatechnologies

Hello , I have read your project requirement and i am having more the 6+ years of experience team for PHP, JS developers are here and we are comfortable to convert js to php code to get json data from api . could More

$526 USD in 10 days
(3 Reviews)
4.6
rockeykhan

Hi Sir I have read your project and ready to do this for you. I am a PHP developer kindly have a look at my profile for an idea of my work I will code this in 300$ and deliver it in 5 days kindly reply regards Ro More

$300 USD in 5 days
(9 Reviews)
4.5
Hana2015

A proposal has not yet been provided

$500 USD in 10 days
(1 Review)
3.9
kasianand

Hi, I have gone through your requirements and I can call the api from php, parse it and assign title and metadata. The response can be reused in javascript to avoid another api call from javascript. The only dra More

$555 USD in 10 days
(10 Reviews)
3.8
cinza

A proposal has not yet been provided

$250 USD in 3 days
(10 Reviews)
3.7
phpdeveloper3

Hello, I can do it as you want. I am on mobile so can't write much but you can see my previous and ongoing projects for any clearance. Kindly contact for further discussion. Thanks skype: ashishzworld

$250 USD in 2 days
(6 Reviews)
3.6
mangaldinesh

hello, I am very much excited to work with you. also if you will give me this opportunity I will be ready to work only for 150$. waiting for your positive response thanks, dinesh

$250 USD in 2 days
(3 Reviews)
1.8
echoinnovate

Hello there, Hope all is well with you. I have gone through with your requirement and i am glad to let you know that we can certainly assist you in your requirement. We have developed many websites so far on More

$526 USD in 10 days
(0 Reviews)
0.0