Skip to content

C# Web Library for Yelp (Fusion API v3 from 2017). Currently targets .NETCoreApp 1.1. Yelp's (v3) Fusion API allows you to get the best local business information and user reviews of over million businesses in 32 countries.

Notifications You must be signed in to change notification settings

Pinski/Yelp.Api.Web

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yelp.API.Web

C# Web Library for Yelp (Fusion API v3 from 2017). Currently targets .NETCoreApp 1.0 and 1.1. Yelp's (v3) Fusion API allows you to get the best local business information and user reviews of over million businesses in 32 countries.

How to use the Yelp API in your .NET based Web App

Integrating this API is very easy.

  1. Register yourself with Yelp's developer program

  2. Add the Yelp Api Web client from NuGet to your project or register in the NuGet console with:

    Install-Package Yelp.Api.Web

  3. Call the API via the Client object in your code. See below for examples:

    var client = new Yelp.Api.Client("API_KEY");
    var results = await client.SearchBusinessesAllAsync("cupcakes", 37.786882, -122.399972);

or if you want to perform a more advanced search, use the SearchParameters object.

    var request = new Yelp.Api.Models.SearchRequest();
    request.Latitude = 37.786882;
    request.Longitude = -122.399972;
    request.Term = "cupcakes";
    request.MaxResults = 40;
    request.OpenNow = true;

    var client = new Yelp.Api.Client("API_KEY");
    var results = await client.SearchBusinessesAllAsync(request);
  1. Look for more examples in the Example project.

About

C# Web Library for Yelp (Fusion API v3 from 2017). Currently targets .NETCoreApp 1.1. Yelp's (v3) Fusion API allows you to get the best local business information and user reviews of over million businesses in 32 countries.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 89.8%
  • HTML 9.5%
  • Other 0.7%