Premier
API change historyThe GuideStar Premier API combines nonprofit-supplied data from the GuideStar Exchange program with data from other sources to provide comprehensive information about millions of organizations. API returns data in JSON/PDF format.
Get Premier v1
Premier API requires either EIN or an Organization Id as the parameter. Organization Id is an unique Id for an organization and can be retrieved using the Essentials (Search) API. To expedite the API experience, you are welcome to try and use the GuideStar's EIN 54-1774039 or Organization Id 7831216. Use either of these as a value to the "organization_id" parameter and try it out!
Try itRequest
Request URL
Request parameters
-
string
EIN or Organization Id. Organization Id is an unique Id for an organization and can be retrieved using the Essentials (Search) API.
Request headers
Request body
Responses
200 OK
OK
Representations
{
"code": 200,
"message": "OK",
"took": 0,
"errors": [
{
"resource": "string",
"reason": "string"
}
],
"data": {
"summary": {
"organization_id": 0,
"organization_name": "string",
"ein": "string",
"bridge_id": "string",
"address_line_1": "string",
"address_line_2": "string",
"city": "string",
"state": "string",
"zip": "string",
"fax": "string",
"govt_registered_name": "string",
"also_known_as": "string",
"fiscal_year_end": "string",
"fiscal_year_start": "string",
"affiliation_code": "string",
"affiliation_description": "string",
"contact_name": "string",
"contact_title": "string",
"contact_email": "string",
"contact_phone": "string",
"contact_fax": "string",
"gs_profile_update_level": "string",
"gs_profile_update_level_logo": "string",
"deductibility_code": "string",
"deductibility_description": "string",
"donation_to_ein": "string",
"donation_to_name": "string",
"areas_served_narrative": "string",
"ruling_year": "string",
"gs_public_report": "string",
"gs_premium_pdf": "string",
"impact_statement": "string",
"subsection_code": "string",
"subsection_description": "string",
"keywords": "string",
"logo_url": "string",
"mission": "string",
"is_national_hq": true,
"ntee_code": "string",
"website_url": "string",
"year_founded": "string",
"year_incorporated": "string",
"is_non_bmf_org": true,
"first_on_bmf_date": "2019-01-28T18:27:34.261Z",
"last_on_bmf_date": "2019-01-28T18:27:34.261Z",
"addresses": [
{
"address_line_1": "string",
"address_line_2": "string",
"city": "string",
"state": "string",
"postal_code": "string",
"country": "string",
"address_type": "string"
}
],
"affiliations": [
{
"row_id": "string",
"affiliation": "string",
"year": "string"
}
],
"awards": [
{
"awarding_external_org": "string",
"award_name": "string",
"award_year": "string"
}
],
"formerly_known_as": [
{
"former_name": "string",
"year": "string"
}
],
"forms_1023_1024": [
"string"
],
"letters_of_determination": [
{
"letter_of_determination_doc_name": "string",
"letter_of_determination_url": "string"
}
],
"letters_of_dissolution": [
{
"name": "string",
"year": "string",
"letter_of_dissolution_url": "string"
}
],
"ntee_codes": [
{
"ntee_code": "string",
"primary_code": "string",
"primary_description": "string",
"sub_code": "string",
"sub_description": "string"
}
],
"naics_code": {
"naics_code": "string",
"naics_description": "string"
},
"sic_codes": [
{
"sic_code": "string",
"sic_description": "string"
}
],
"platinum_evaluation_documents": [
{
"document_name": "string",
"document_year": "string",
"document_url": "string",
"document_type": "string"
}
],
"other_documents": [
{
"document_name": "string",
"document_year": "string",
"otherdocument_contents": "string",
"document_url": "string"
}
],
"photos": [
{
"picture_url": "string",
"caption": "string"
}
],
"social_media_urls": [
"string"
],
"telephone_numbers": [
{
"telephone_number": "string",
"telephone_type": "string"
}
],
"videos": [
{
"video_caption": "string",
"video_url": "string"
}
]
},
"programs": {
"programs": [
{
"name": "string",
"description": "string",
"target_population": "string",
"budget": "string",
"areas_served": [
"string"
]
}
],
"platinum_metrics": [
{
"metric": "string",
"years": [
{
"year": 0,
"value": 0
}
],
"target_population_served": [
"string"
]
}
],
"charting_impact_answers": [
{
"question": "string",
"answer": "string"
}
]
},
"financials": {
"most_recent_year_financials": {
"fiscal_year": 0,
"form_type": "string",
"data_source": "string",
"assets_total": 0,
"total_liabilities": 0,
"revenue_contributions": 0,
"revenue_govt_grants": 0,
"revenue_program_services": 0,
"revenue_investments": 0,
"revenue_special_events": 0,
"revenue_sales": 0,
"revenue_other": 0,
"total_revenue": 0,
"expense_administration": 0,
"expense_program_services": 0,
"expense_fundraising": 0,
"expense_accounting": 0,
"expense_advertising_promotion": 0,
"expense_info_technology": 0,
"expense_insurance": 0,
"expense_interest": 0,
"expense_investment_management": 0,
"expense_legal": 0,
"expense_pension_plan": 0,
"expense_professional_fundraising": 0,
"expense_professional_fees": 0,
"expense_publications": 0,
"expense_operating_admin": 0,
"expense_gifts_grants_paid": 0,
"total_expense_disbursements": 0,
"expenses_total": 0,
"net_gain_loss": 0,
"cash_and_equivalent_assets": 0,
"investments_us_government": 0,
"investments_stock": 0,
"investments_bonds": 0,
"investments_other": 0,
"land_buildings_equipment": 0,
"other_assets": 0
},
"f990_financials": [
{
"period_begin": "2018-03-15T13:43:14.419Z",
"period_end": "2018-03-15T13:43:14.419Z",
"membership_dues": 0,
"revenue_contributions": 0,
"revenue_govt_grants": 0,
"revenue_program_services": 0,
"revenue_investments": 0,
"revenue_special_events": 0,
"revenue_sales": 0,
"revenue_other": 0,
"other_revenue": 0,
"revenue_total": 0,
"affiliate_net_payments": 0,
"expense_program_services": 0,
"expense_administration": 0,
"expense_fundraising": 0,
"expenses_total": 0,
"net_gain_loss": 0,
"expense_accounting": 0,
"expense_advertising_promotion": 0,
"expense_info_technology": 0,
"expense_insurance": 0,
"expense_interest": 0,
"expense_investment_management": 0,
"expense_legal": 0,
"expense_pension_plan": 0,
"expense_publications": 0,
"expense_profesional_fundraising": 0,
"net_assets_eoy": 0,
"assets_total": 0,
"liabilities_total": 0,
"months_of_cash": 0,
"other_expense": 0,
"income_total": 0
}
],
"pf990_financials": [
{
"period_begin": "2018-03-15T13:43:14.42Z",
"period_end": "2018-03-15T13:43:14.42Z",
"cash_equivalent_investible_assets": 0,
"investments_us_state_government": 0,
"adjusted_net_income": 0,
"total_operating_expenses": 0,
"contributions": 0,
"total_expenses": 0,
"expense_accounting": 0,
"expense_interest": 0,
"expense_legal": 0,
"expense_professional_fees": 0,
"expense_pension_plans": 0,
"expense_publications": 0,
"investments_us_state_govt": 0,
"investments_stocks": 0,
"investments_bonds": 0,
"investments_other": 0,
"land_buildings_equipment": 0,
"other_assets": 0,
"total_assets": 0,
"total_liabilities": 0,
"net_assetss": 0
}
],
"f990ez_financials": [
{
"period_begin": "string",
"period_end": "string",
"accounting_method": "string",
"organization_type": "string",
"date_last_modified": "string",
"revenue_contributions": 0,
"revenue_program_services": 0,
"revenue_investments": 0,
"revenue_special_events": 0,
"revenue_sales": 0,
"revenue_other": 0,
"total_revenue": 0,
"expense_grants": 0,
"expense_salaries_employee_benefits": 0,
"expense_professional_fees": 0,
"expense_occupancy": 0,
"expense_printing_publications_postage": 0,
"expense_other": 0,
"total_expenses": 0,
"net_gain_loss": 0,
"cash_savings_investments_boy": 0,
"land_and_buidings_boy": 0,
"other_assets_boy": 0,
"total_assets_boy": 0,
"total_liabilities_boy": 0,
"net_assets_boy": 0,
"cash_savings_investments_eoy": 0,
"land_and_buidings_eoy": 0,
"other_assets_eoy": 0,
"total_assets_eoy": 0,
"total_liabilities_eoy": 0,
"net_assets_eoy": 0
}
],
"financial_documents": [
{
"form990_name": "string",
"form990_year": "string",
"form990_url": "string",
"form990_source": "string"
}
],
"forms_990T": [
{
"form990t_name": "string",
"form990t_url": "string"
}
],
"funding_needs": [
{
"funding_need": "string",
"amount_needed": "string"
}
],
"funding_sources": [
{
"funding_source": "string",
"funding_amount": "string"
}
],
"financial_statements": [
{
"fiscal_year_begin": "string",
"fiscal_year_end": "string",
"auditing_company": "string",
"doc_name": "string",
"document_url": "string"
}
],
"annual_reports": [
{
"doc_name": "string",
"contents": "string",
"year": "string",
"url": "string"
}
],
"accounting_ratios": [
{
"year": 0,
"months_of_cash": "string",
"liquidity": "string",
"fringe_rate": "string",
"net_gain_loss": "string"
}
]
},
"operations": {
"leader_name": "string",
"leader_profile": "string",
"co_leader_name": "string",
"co_leader_profile": "string",
"no_of_employees": 0,
"no_of_volunteers": 0,
"organization_email": "string",
"organization_details_year": 0,
"officers_directors_key_employees": [
{
"name": "string",
"title": "string",
"type": [
"string"
],
"compensation": 0,
"related_compensation": 0,
"other_compensation": 0,
"hours": "string"
}
],
"highest_paid_employees": [
{
"name": "string",
"title": "string",
"type": [
"string"
],
"compensation": 0,
"related_compensation": 0,
"other_compensation": 0,
"hours": "string"
}
],
"employees_greater_than_100K": 0,
"board_chair_name": "string",
"board_chair_affiliation": "string",
"board_chair_term_start": "string",
"board_chair_term_end": "string",
"board_co_chair_name": "string",
"board_co_chair_affiliation": "string",
"board_co_chair_term_start": "string",
"board_co_chair_term_end": "string",
"board_of_directors": [
{
"name": "string",
"title": "string",
"company": "string"
}
],
"board_leadership_practices": [
{
"question": "string",
"answer": "string"
}
],
"organization_demographics": {
"total_board_members": 0,
"total_fulltime_staff": 0,
"total_parttime_staff": 0,
"total_senior_staff": 0,
"tracks_staffboardvol_retention": true,
"tracks_staffboard_income": true,
"tracks_staffboard_age": true,
"tracks_vendor_diversity": true,
"has_diversity_committee": true,
"has_diversity_manager": true,
"diversity_manager_fulltime": true,
"diversity_plan": true,
"supports_diversity_via_other_methods": true,
"categories": [
{
"category": "string",
"org_does_not_collect_for": {},
"subcategories": [
{
"subcategory": "string",
"staff_levels": [
{
"staff_level": "string",
"count": 0
}
]
}
]
}
]
},
"contractors": [
{
"name": "string",
"address": "string",
"compensation": "string",
"service_type": "string"
}
],
"blog_url": "string",
"fundraising_contact_name": "string",
"fundraising_contact_title": "string",
"fundraising_contact_email": "string",
"fundraising_contact_phone": "string",
"preparer_firm_name": "string",
"preparer_firm_address": "string",
"preparer_firm_ein": "string",
"preparer_firm_phone": "string",
"senior_staff": [
{
"name": "string",
"title": "string",
"experience": "string"
}
],
"other_staff": [
{
"name": "string",
"title": "string",
"type": "string"
}
],
"accreditations": [
{
"accreditation": "string",
"year": "string"
}
]
},
"charitycheck": {
"organization_id": "string",
"organization_info_last_modified": "string",
"ein": "string",
"organization_name": "string",
"organization_name_aka": "string",
"address_line1": "string",
"address_line2": "string",
"city": "string",
"state": "string",
"state_name": "string",
"zip": "string",
"filing_req_code": "string",
"charity_check_last_modified": "string",
"pub78_church_message": "string",
"pub78_organization_name": "string",
"pub78_ein": "string",
"pub78_verified": "string",
"pub78_city": "string",
"pub78_state": "string",
"pub78_indicator": "string",
"organization_types": [
{
"organization_type": "string",
"deductibility_limitation": "string",
"deductibility_status_description": "string"
}
],
"most_recent_pub78": "string",
"most_recent_irb": "string",
"bmf_church_message": "string",
"bmf_organization_name": "string",
"bmf_ein": "string",
"bmf_status": "string",
"most_recent_bmf": "string",
"bmf_subsection": "string",
"subsection_description": "string",
"foundation_code": "string",
"foundation_code_description": "string",
"ruling_month": "string",
"ruling_year": "string",
"adv_ruling_month": "string",
"adv_ruling_year": "string",
"group_exemption": "string",
"exempt_status_code": "string",
"ofac_status": "string",
"revocation_code": "string",
"revocation_date": "string",
"reinstatement_date": "string",
"irs_bmf_pub78_conflict": "string",
"foundation_509a_status": "string",
"irb_organization_id": "string",
"bulletin_number": "string",
"bulletin_url": "string",
"effective_date": "string",
"irb_last_modified": "string",
"report_date": "string",
"foundation_type_code": "string",
"foundation_type_description": "string",
"parent_organizations": [
{
"ein": "string",
"organization_name": "string",
"group_exemption": "string"
}
]
}
}
}
{
"type": "object",
"properties": {}
}
{}
{
"type": "object",
"properties": {}
}
Code samples
@ECHO OFF
curl -v -X GET "https://apidata.guidestar.org/premier/v1/{organization_id}"
-H "Subscription-Key: {subscription key}"
--data-ascii "{body}"
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;
namespace CSHttpClientSample
{
static class Program
{
static void Main()
{
MakeRequest();
Console.WriteLine("Hit ENTER to exit...");
Console.ReadLine();
}
static async void MakeRequest()
{
var client = new HttpClient();
var queryString = HttpUtility.ParseQueryString(string.Empty);
// Request headers
client.DefaultRequestHeaders.Add("Subscription-Key", "{subscription key}");
var uri = "https://apidata.guidestar.org/premier/v1/{organization_id}?" + queryString;
var response = await client.GetAsync(uri);
}
}
}
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
public class JavaSample
{
public static void main(String[] args)
{
HttpClient httpclient = HttpClients.createDefault();
try
{
URIBuilder builder = new URIBuilder("https://apidata.guidestar.org/premier/v1/{organization_id}");
URI uri = builder.build();
HttpGet request = new HttpGet(uri);
request.setHeader("Subscription-Key", "{subscription key}");
// Request body
StringEntity reqEntity = new StringEntity("{body}");
request.setEntity(reqEntity);
HttpResponse response = httpclient.execute(request);
HttpEntity entity = response.getEntity();
if (entity != null)
{
System.out.println(EntityUtils.toString(entity));
}
}
catch (Exception e)
{
System.out.println(e.getMessage());
}
}
}
<!DOCTYPE html>
<html>
<head>
<title>JSSample</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>
<script type="text/javascript">
$(function() {
var params = {
// Request parameters
};
$.ajax({
url: "https://apidata.guidestar.org/premier/v1/{organization_id}?" + $.param(params),
beforeSend: function(xhrObj){
// Request headers
xhrObj.setRequestHeader("Subscription-Key","{subscription key}");
},
type: "GET",
// Request body
data: "{body}",
})
.done(function(data) {
alert("success");
})
.fail(function() {
alert("error");
});
});
</script>
</body>
</html>
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSString* path = @"https://apidata.guidestar.org/premier/v1/{organization_id}";
NSArray* array = @[
// Request parameters
@"entities=true",
];
NSString* string = [array componentsJoinedByString:@"&"];
path = [path stringByAppendingFormat:@"?%@", string];
NSLog(@"%@", path);
NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
[_request setHTTPMethod:@"GET"];
// Request headers
[_request setValue:@"{subscription key}" forHTTPHeaderField:@"Subscription-Key"];
// Request body
[_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
NSURLResponse *response = nil;
NSError *error = nil;
NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];
if (nil != error)
{
NSLog(@"Error: %@", error);
}
else
{
NSError* error = nil;
NSMutableDictionary* json = nil;
NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
NSLog(@"%@", dataString);
if (nil != _connectionData)
{
json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
}
if (error || !json)
{
NSLog(@"Could not parse loaded json with error:%@", error);
}
NSLog(@"%@", json);
_connectionData = nil;
}
[pool drain];
return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';
$request = new Http_Request2('https://apidata.guidestar.org/premier/v1/{organization_id}');
$url = $request->getUrl();
$headers = array(
// Request headers
'Subscription-Key' => '{subscription key}',
);
$request->setHeader($headers);
$parameters = array(
// Request parameters
);
$url->setQueryVariables($parameters);
$request->setMethod(HTTP_Request2::METHOD_GET);
// Request body
$request->setBody("{body}");
try
{
$response = $request->send();
echo $response->getBody();
}
catch (HttpException $ex)
{
echo $ex;
}
?>
########### Python 2.7 #############
import httplib, urllib, base64
headers = {
# Request headers
'Subscription-Key': '{subscription key}',
}
params = urllib.urlencode({
})
try:
conn = httplib.HTTPSConnection('apidata.guidestar.org')
conn.request("GET", "/premier/v1/{organization_id}?%s" % params, "{body}", headers)
response = conn.getresponse()
data = response.read()
print(data)
conn.close()
except Exception as e:
print("[Errno {0}] {1}".format(e.errno, e.strerror))
####################################
########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64
headers = {
# Request headers
'Subscription-Key': '{subscription key}',
}
params = urllib.parse.urlencode({
})
try:
conn = http.client.HTTPSConnection('apidata.guidestar.org')
conn.request("GET", "/premier/v1/{organization_id}?%s" % params, "{body}", headers)
response = conn.getresponse()
data = response.read()
print(data)
conn.close()
except Exception as e:
print("[Errno {0}] {1}".format(e.errno, e.strerror))
####################################
require 'net/http'
uri = URI('https://apidata.guidestar.org/premier/v1/{organization_id}')
request = Net::HTTP::Get.new(uri.request_uri)
# Request headers
request['Subscription-Key'] = '{subscription key}'
# Request body
request.body = "{body}"
response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
http.request(request)
end
puts response.body