# Stats

Stats offers a straightforward collection of API requests that give you the latest figures on your subscriber numbers, detailing both active and unsubscribed counts. Additionally, this information can be segmented for deeper insights. 


> These endpoints are designed exclusively for backend implementation. To integrate them properly, ensure they are used in your server-side code, which should then relay the relevant data to the front end in a manner that aligns with your specific requirements.


## Available Endpoints


| Method                                                      | Endpoint                                                           | Name                                               |
|-------------------------------------------------------------|--------------------------------------------------------------------|---------------------------------------------------|
|  |     | [Get Site Stats](/docs/stats#get-site-stats)       |
|  |  | [Get Segment Stats](/docs/stats#get-segment-stats) |
|  |   | [Get Report Stats](/docs/stats#get-report-stats)   |

## The Stats Model


    The stats model offers straightforward totals and specific stats for your convenience. These data keys are accessible whether you're querying across the entire account or by individual segments.

  
    ### Properties
    
      - **user_count** (`integer`): 
        Total count of users in the account or segment.
      
      - **subscriber_count** (`integer`): 
        Active user count for the account or segment.
      
      - **unsubscriber_count** (`integer`): 
        Number of subscribers that have unsubscribed in the account or segment.
      
    
  


---

## Get Site Stats {{ tag: 'GET', label: '/v1/stats/site' }}


  
    Returns a list of site stats.

    ### Required Attributes
    
      - **site_uuid** (`string`): 
        The UUID of the site to get stats for.
      
    

  
  
    
  

<br/><br/>

  
    ### Response
    Returns site statistics including user, subscriber, and unsubscribed counts.

  
  
    
  


---

## Get Segment Stats {{ tag: 'GET', label: '/v1/stats/segment' }}


  
    Returns a list of a segment's stats.

    ### Required Attributes
    
      - **site_uuid** (`string`): 
        The UUID of the site to get stats for.
      
      - **segment_id** (`string`): 
        The id of the segment to get stats for.
      
    

  
  
    
  

<br/><br/>

  
    ### Response
    Returns segment statistics including user, subscriber, and unsubscribed counts.

  
  
    
  


---

## Get Report Stats {{ tag: 'GET', label: '/v1/stats/report' }}


  
    Returns an object containing data for a specific report.

    ### Required Attributes
    
      - **site_uuid** (`string`): 
        The UUID of the site to get stats for.
      
      - **report_id** (`string`): 
        The id of the report to get stats for.
      
    

  
  
    
  

<br/><br/>

  
    ### Response
    Returns a data blob containing the report statistics.