Using the Chitika Pay-Per-Call API
Updated: 2012-02-17 16:05:12
-
Parameter Required Accepts Description client Yes String This is your account name or API key. To acquire a Pay-Per-Call API account, please contact support@chitika.com.If you have an existing Chitika Publisher account you will need a separate account to use the Pay-Per-Call API. We are currently working to merge these two accounts. category Yes String The business category you're searching for.
Example: Photographerswhere Yes String The city and state you're searching for, comma separated.
Example: Boston, MAnump No Integer The maximum number of listings you'd like returned. Default is 10. callback No String For JSONP style calls, the listings will be wrapped in a callback function of this name. -
Example Usage and Response
The base URL for the Pay-Per-Call API is http://hg.chitika.net/ppcall/
Currently the only response data format available is JSON.
Request URI:
http://hg.chitika.net/ppcall/?client=DEMO_ACCOUNT_APIKEY&category=Photographers&where=Boston,%20MA&nump=3
Response JSON:
{ "listings": [ { "city": "Amesbury", "name": "Litewave Studio", "phone": "6174499067", "street": "55 Congress Street, Suite 177", "state": "MA", "zip": "01913", "rating": "5.0", "description": "Litewave Studio is a locally owned and owner operated business since 2009, with well over 5 years combined product knowledge in the industry! Able to help you with all your photo needs anytime you call!", }, { "city": "Natick", "name": "Gallery 55", "phone": "8573667373", "street": "55 South Main Street", "state": "MA", "zip": "01760", "rating": "5.0", "description": "John Mottern is an award-winning international photographer covering major stories, sporting events and advertising projects for editorial and commercial clients. His 25-year career as a photojournalist started at The Boston Globe in the late 80's and continued as a contract photographer for Agence France-Presse until 2007. His photographs have been published in virtually all major newspapers and many magazines across the globe. He has covered every presidential election since George Bush Sr., often working in the exclusive White House Press Corps' tight pool. He was honored by Pictures of the Year with a first place prize for portrait photography from a series about children injured by war in El Salvador. As a freelancer, he is currently writing a series of stories with photographs about America's growing homeless population and is working as a commercial photographer in Boston.", }, { "city": "Boston", "name": "Emily O'Brien Photography", "phone": "8666211398", "street": "130 Dartmouth Street, Unit 418", "state": "MA", "zip": "02116", "rating": "5.0", "description": "With years of experience in digital photography, Emily O’Brien Photography offers our cutting-edge services to corporate and private clients throughout Boston and the surrounding areas. \n\nOur expertise includes; photography for advertisements, catalogs, web sites, brochures, annual reports, construction, architectural and industrial photography, hotel and restaurant photography, food and drink, product, still life photography, and editorial photography.", }, ] }
