AB Analytics API endpoints provide seamless application interaction and extensive analytical Franchisee data curated by AB Analytics.
These endpoints provide a structured and efficient approach to accessing and retrieving Franchisee detail data. Emphasizing top-tier performance, robust security measures, and unparalleled flexibility, these endpoints facilitate the seamless integration of AB Analytics across a spectrum of applications.
This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with W3C spec. And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
AB Analytics API offers two forms of authentication, both of them are required for authentication:
The Franchisee endpoints plays a pivotal role within our API infrastructure by providing users with detailed insights into the franchisee landscape.
The Franchisee resource provides a rich dataset that goes beyond mere contact details, including owned, serviced, and blacklisted zip codes associated with each franchisee.
| brand_abbreviation | string Brand Abbreviation (optional) |
| date | string Date in the format 'YYYY-MM-dd' (default: today's date, optional) |
| franchisee_name | string Franchisee Name (optional) |
| page | string Page number (default: 1, optional) |
| per_page | string Items per page (default: 20, max allowed: 100, optional) |
import requests url = 'https://ab-analytics-api.dev.dw.theauthoritybrands.com/dev/franchisee' cert = ('/path/to/dw-dev-analytic-client.pem', '/path/to/dw-dev-analytic-client.key') api_key = 'x-api-key provided by us' headers = { 'x-api-key': api_key } response = requests.get(url, headers=headers, cert=cert) print(response.text)
{- "_metadata": {
- "page": 0,
- "per_page": 0,
- "page_count": 0,
- "total_count": 0,
- "links": {
- "self": "string",
- "first": "string",
- "next": "string",
- "last": "string"
}
}, - "data": [
- {
- "franchisee_id": 0,
- "brand_name": "string",
- "brand_abbreviation": "string",
- "franchisee_name": "string",
- "primary_franchisee_name": "string",
- "associated_franchisee_name": "string",
- "parent_reporting_id": "string",
- "reporting_id": "string",
- "territory_name": "string",
- "license_no": "string",
- "full_location_name": "string",
- "location_name": "string",
- "address": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "zipcode": "string",
- "country": "string",
- "mobile": "string",
- "phone": "string",
- "phone1_extn": "string",
- "email_id": "string",
- "fax": "string",
- "store_website": "string",
- "contact_first_name": "string",
- "contact_last_name": "string",
- "general_manager": "string",
- "general_managers_email": "string",
- "is_retail": true,
- "opening_date": "string",
- "mailing_address": "string",
- "mailing_city": "string",
- "mailing_state": "string",
- "mailing_zip_code": "string",
- "franchisee_status": "string",
- "store_status": "string",
- "store_phone": "string",
- "transfer_date": "string",
- "termination_approve_date": "string",
- "terminated_date": "string",
- "securitization_termination_date": "string",
- "owned_zipcode": "string",
- "serviced_zipcode": "string",
- "blacklisted_zipcode": "string",
- "owners": [
- {
- "owner": "string",
- "email": "string",
- "phone": "string",
- "mobile": "string"
}
], - "callcap_campaign_phone_number": [
- {
- "campaign_name": "string",
- "main_number": "string",
- "destination_number": "string"
}
], - "additional_attributes": {
- "scorpion_client_id": "string",
- "pulsem_id": "string",
- "devhub_id": 0,
- "devhub_url": "string",
- "hubspot_id": "string",
- "netsuite_id": "string",
- "google_places_id": "string",
- "lead_routing_email": "string",
- "payment_type_offered": "string",
- "franchisee_location_website_url": "string",
- "ferocious_media_acct": "string",
- "career_plug_url": "string",
- "GMB_link": "string",
- "facebook_url": "string",
- "twitter_url": "string",
- "youtube_url": "string",
- "yelp_url": "string",
- "instagram_url": "string",
- "ANGI_url": "string",
- "hours_of_operation": "string",
- "business_name_DBA": "string",
- "services_provided": "string",
- "license_number": "string",
- "areas_served": "string"
}
}
]
}The Brand endpoints plays a pivotal role within our API infrastructure by providing users with detailed insights into the brand landscape.
The Brand resource offering the capability to retrieve a comprehensive list of all available brands. The data retrieved from the Brands endpoint is very specific, including a unique identifier for each brand, a concise short abbreviation, and the brand's full name.
| per_page | string Items per page (default: 20, max allowed: 100, optional) |
| page | string Page number (default: 1, optional) |
import requests url = 'https://ab-analytics-api.dev.dw.theauthoritybrands.com/dev/brand' cert = ('/path/to/dw-dev-analytic-client.pem', '/path/to/dw-dev-analytic-client.key') api_key = 'x-api-key provided by us' headers = { 'x-api-key': api_key } response = requests.get(url, headers=headers, cert=cert) print(response.text)
{- "_metadata": {
- "page": 0,
- "per_page": 0,
- "page_count": 0,
- "total_count": 0,
- "links": {
- "self": "string",
- "first": "string",
- "next": "string",
- "last": "string"
}
}, - "data": [
- {
- "brand_id": 0,
- "brand_name": "string",
- "brand_abbreviation": "string"
}
]
}