I am new to api development, so don’t know whether this is feasible or not.
I have a website(http://www.mysite.com/) which consists of data and i need to develop an api or somehow use this site’s data to use it in another websites.
My requirement is other external websites(http://www.externalwebsites.com) need to search the data from my main site (http://www.mysite.com/). http://www.externalwebsites.com/ will send search string to http://www.mysite.com/ and it will send back result and show them in http://www.externalwebsites.com/.
i need to use ajax calls in http://www.externalwebsites.com/ for searching data, so my question is
- Is this whole process feasible ?
Sure, you can use JSONP, supported by default in libraries like jQuery.
http://docs.jquery.com/Release:jQuery_1.2/Ajax#Cross-Domain_getJSON_.28using_JSONP.29