Glassdoor .NET SDK

by Janglin Software

Version 2.0.0

A .NET-based SDK for the Glassdoor API which separates HTTP request overhead from business logic and front end formatting. Optimized for application development so the creation of URLs, HTTP Requests, and managing of paginated responses as well as HTTP exceptions are all managed by this SDK so you can get on with your XAML based app development.

Please review the Glassdoor API Documentation .

Make sure that you aquire partner key and ID from Glassdoor .


Hello, World.

// Instantiate the client:
var client = new Client (partnerId, partnerKey);

// The methods all tend to have large parameter lists with most parameters having default (usually null) values,
// So we recommend using named parameter syntax.

var jobstats = client.GetJobsStatsAsync(returnStates: true);

// Make sure that you specify what information you want returned using the 'return' parameters.
// If you don't ask for Employer or City information, nothing will be returned.

var developerjobstats = client.GetJobsStatsAsync(queryPhrase: "Developer",
returnEmployers: true,
returnCities: true,
returnJobTitles: true,
returnStates: true);

// Do other work here.

// All calls are asychronous, so either call them in an async method, or wait for the task result.
var result = jobstats.Result;

// Then see what you've got.
foreach (var state in result.States)
System.Diagnostics.Debug.WriteLine(state.Value.Name + " " + state.Value.NumberOfJobs);

Best Practices

Frequently Asked Questions

Why are most methods asychronous?

Use of asychronous methods allows other work to be done while waiting for the HTTP request to complete. The .NET Threading Task library makes this easy.

Why are some methods not asychronous?

Some method are not asychnronous because they return collections of data that are continuously concatenated from paged responses. Large collections of data are typically paged where information regarding how many records and how many pages and therefore how many more HTTP requests will be needed to retrieve all of the data are returned with the actual data. Some methods return a collection with a custom enumerator which will keep track of the pagination, whether more data is available and then retrieve that data seamlessly until no more pages are available. This helps app developers worry more about binding to a single collection without having to worry about whether there is more data in more pages and then having to process a new HTTP request.

Release Notes

Now supporting Windows Universal Platform.


Feel free to view the source code at JanglinSoftware/GlassDoorSDK

Get the NuGet package at Janglin Glassdoor API SDK for .NET