Last updated: April 7, 2026

API stands for Application Programming Interface.

In the WebRTC context, the API refers to the set of JavaScript interfaces defined by the W3C that developers use to build real-time communication applications in the browser.

Core WebRTC APIs

  • PeerConnection (RTCPeerConnection): The main API for establishing peer-to-peer connections, handling SDP negotiation, ICE connectivity, and media exchange
  • getUserMedia (MediaDevices.getUserMedia): Accesses camera and microphone
  • getDisplayMedia: Captures screen content for screen sharing
  • Data Channel (RTCDataChannel): Peer-to-peer data transfer
  • getStats: Real-time session quality metrics
  • Insertable Streams (WebRTC Encoded Transform): Access to encoded media for custom processing

These APIs abstract away the complexity of the underlying protocol stack (RTP, SRTP, DTLS, ICE), allowing developers to build communication features with relatively simple JavaScript code.

Additional reading

Looking to learn more about WebRTC? 

Check my WebRTC training courses

About WebRTC Glossary

The WebRTC Glossary is an ongoing project where users can learn more about WebRTC related terms. It is maintained by Tsahi Levent-Levi of BlogGeek.me.