---
title: "RTCStatsReport | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

# Interface RTCStatsReport

The **`RTCStatsReport`** interface of the WebRTC API provides a statistics report for a RTCPeerConnection, RTCRtpSender, or RTCRtpReceiver.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport)

interface RTCStatsReport {  
    [size](#size): number;  
    ["\[iterator\]"](#iterator-1)(): [MapIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MapIterator/)<\[string, any\]\>;  
    [entries](#entries-1)(): [MapIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MapIterator/)<\[string, any\]\>;  
    [forEach](#foreach-1)(  
        callbackfn: (value: any, key: string, parent: RTCStatsReport) \=> void,  
        thisArg?: any,  
    ): void;  
    [get](#get-1)(key: string): any;  
    [has](#has-1)(key: string): boolean;  
    [keys](#keys-1)(): [MapIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MapIterator/)<string\>;  
    [values](#values-1)(): [MapIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MapIterator/)<any\>;  
}

#### Hierarchy

-   ReadonlyMap<string, any\>
    -   RTCStatsReport

##### Index

### Properties[](#properties)

[size](#size)

### Methods[](#methods)

[\[iterator\]](#iterator) [entries](#entries) [forEach](#foreach) [get](#get) [has](#has) [keys](#keys) [values](#values)

## Properties[](#properties-1)

### `Readonly`size[](#size)

size: number

## Methods[](#methods-1)

### \[iterator\][](#iterator)

-   "\[iterator\]"(): [MapIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MapIterator/)<\[string, any\]\>[](#iterator-1)
    
    Returns an iterable of entries in the map.
    
    #### Returns [MapIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MapIterator/)<\[string, any\]\>
    

### entries[](#entries)

-   entries(): [MapIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MapIterator/)<\[string, any\]\>[](#entries-1)
    
    Returns an iterable of key, value pairs for every entry in the map.
    
    #### Returns [MapIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MapIterator/)<\[string, any\]\>
    

### forEach[](#foreach)

-   forEach(  
        callbackfn: (value: any, key: string, parent: RTCStatsReport) \=> void,  
        thisArg?: any,  
    ): void[](#foreach-1)
    
    #### Parameters
    
    -   callbackfn: (value: any, key: string, parent: RTCStatsReport) \=> void
    -   `Optional`thisArg: any
    
    #### Returns void
    

### get[](#get)

-   get(key: string): any[](#get-1)
    
    #### Parameters
    
    -   key: string
    
    #### Returns any
    

### has[](#has)

-   has(key: string): boolean[](#has-1)
    
    #### Parameters
    
    -   key: string
    
    #### Returns boolean
    

### keys[](#keys)

-   keys(): [MapIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MapIterator/)<string\>[](#keys-1)
    
    Returns an iterable of keys in the map
    
    #### Returns [MapIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MapIterator/)<string\>
    

### values[](#values)

-   values(): [MapIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MapIterator/)<any\>[](#values-1)
    
    Returns an iterable of values in the map
    
    #### Returns [MapIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MapIterator/)<any\>
