API examples

Updated

Open-source sample projects for Voice Calling across supported platforms.

Agora provides open-source sample projects on GitHub to demonstrate basic and advanced Voice Calling features across supported platforms.

Sample project repositories

Use the following repositories to explore and test Voice SDK capabilities:

PlatformRepositoryNotes
WebAgoraIO/API-Examples-WebIncludes basic, advanced, plugin, and framework examples.
AndroidAgoraIO/API-ExamplesNative Android sample projects for Voice SDK features.
iOSAgoraIO/API-ExamplesNative iOS sample projects for Voice SDK features.
macOSAgoraIO/API-ExamplesNative macOS sample projects for Voice SDK features.
WindowsAgoraIO/API-ExamplesNative Windows sample projects for Voice SDK features.
React NativeAgoraIO-Extensions/react-native-agoraExample app for basic and advanced scenarios.
UnityAgoraIO-Extensions/Agora-Unity-QuickstartIncludes the API-Example-Unity project.
Unreal EngineAgoraIO-Extensions/Agora-Unreal-RTC-SDKIncludes both Blueprint and C++ API examples.

Web example structure

For Web projects, clone the repository locally:

git clone https://github.com/AgoraIO/API-Examples-Web
cd API-Examples-Web

The API-Examples-Web repository provides the following examples:

DescriptionPath
Basic examples/src/example/basic
Advanced examples/src/example/advanced
Plug-in examples/src/example/plugin
Other examples/src/example/others
Vue framework examples/src/example/framework/vue
React framework examples/src/example/framework/react

To run the Web examples:

npm install
npm run dev

Native and engine example locations

The native and engine repositories organize examples by platform:

PlatformExample path
React Native/example/src/examples/basic, /example/src/examples/advanced, /example/src/examples/hook
Unity/API-Example-Unity
Unreal Blueprint/Agora-Unreal-SDK-Blueprint-Example/Content/API-Example/Basic, /Agora-Unreal-SDK-Blueprint-Example/Content/API-Example/Advance
Unreal C++/Agora-Unreal-SDK-CPP-Example/Content/API-Example/Basic, /Agora-Unreal-SDK-CPP-Example/Content/API-Example/Advance

Next steps