Unknown macro: {html}

<div class="alt" id="cgm-header" role="banner">
<div class="wrapper">

<h1 class="logo">
<a rel="home" href="http://developer.citygridmedia.com/">
<img alt="CityGrid Media Developer Center" height="22" src="http://www.citygridmedia.com/developer/wp-content/themes/broccoli/img/citygrid-developer-center.png" width="219" />
</a>
</h1>
<div class="navigation-header">
<ul class="menu" id="menu-header-navigation">
<li class="menu-item" id="menu-item-173">
<a href="http://www.citygridmedia.com/developer/blog/">Blog</a>

</li>
<li class="menu-item current-menu-item" id="menu-item-174">
<a href="http://docs.citygridmedia.com/display/citygridv2/CityGrid+APIs">Docs</a>
</li>
<li class="menu-item" id="menu-item-175">
<a href="http://www.citygridmedia.com/developer/forum/">Forum</a>
</li>
<li class="menu-item" id="menu-item-176">

<a href="http://developer.citygridmedia.com/dashboard/">Dashboard</a>
</li>
</ul>
</div>
</div>
</div>

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Introduction

Content by CityGrid is an API suite providing local content for over 18 million businesses. As a CityGrid publisher, you can easily access this information from within your applications, giving your users the ability to easily find and learn about local places.

The suite is comprised of three Content APIs:

  • The Places API provides functionality for information on local businesses, including search, detail, user content submission, and predictive text.
  • The Offers API provides coupons and special offers from businesses based on geography and category.
  • The Reviews API provides access to customer reviews for businesses selected by id or by geography or category.

Search and Detail

Both the Places and Offers APIs provide search and detail endpoints. The search endpoint allows you to query based on information such as category and geographic location, and returns one or more items that match the search, each with a small amount of information suitable for creating a convenient search result display. Each result contains an ID that you can use in a detail query. When the ID is passed to the detail endpoint, detailed information about that particular place or offer is returned.

Search and detail endpoints can be used together in several ways. For example, an application could show a map with icons at the locations of local coffee shops by using the Places Search endpoint (which returns latitudes and longitudes). When an end user clicks an icon, a Places Detail query can retrieve detailed information on the selected coffee shop. In addition, a user could search for offers within a given category (e.g., movies) and a given municipality (e.g., Los Angeles) by using the Offers Search endpoint. When a user selects an offer, the application queries the Offers Detail endpoint to display the details of that offer, including the expiration date and redemption code.

Place IDs

In addition to using the Place IDs returned from Places Search, you can query the Places Detail API using the Place ID supplied by one of the many sources of data merged and aggregated by CityGrid. This functionality is not yet supported in other APIs. When querying by ID, supply the source of the ID in the id_type parameter. Place IDs from the following companies' data are supported:

Id Type

Name

cg

CityGrid Public Id

cs

Citysearch

allm

AllMenus

dforce

Demandforce

fdata

Factual

fsquare

Foursquare

mobo

GoMobo

grub

GrubHub

iusa

InfoUSA

spaf

SpaFinder

ta

TripAdvisor

  • No labels