APIs for Connected Experiences

Build solutions combining in-app chat, live notifications, device control, and more.

Free plan includes 1 million transactions per month and all major features.

APIs for Connected Experiences
geo sync
car
chat notifications
ongoing chat

Chat

Powerful chat APIs

Powerful chat APIs, for secure and reliable private and group messaging on a massive scale.

Live Notifications

Live Notifications

APIs to deliver realtime alerts including push notifications, in-app alerts, SMS and more.

Device Control

IoT Devices Control

IoT APIs to trigger device action, monitor status, and process pub/sub data.

2,000+ of the World's Most Successful Companies, Big and Small, Trust PubNub.

ZOLL

PubNub is reliable. It’s efficient. It’s fast. It’s everything we were looking for. In the EMS/911 space, efficiency is key because how quickly the first responders and public safety agencies respond determines life or death. PubNub has all of that.

Jason Brock

Director of Software Development
One Call

From testing, to 1,500 rides a day today, to an estimated 15,000 rides a day in the coming months, we’re confident PubNub can handle that growth.

Kabir Chandhoke

COO of SourceFuse
Pocket Gem

DevOps isn’t our core competency. I’d much rather work with a dedicated service like PubNub to fulfill a well-defined need, like quickly transmitting data between players, so our engineering team can focus on the hard problems that are unique to our business.

David Underhill

VP of Engineering
  • JavaScript
  • .Net
  • Obj-C
  • Swift
  • Android/Java
  • // send a message
  • pubnub.publish({
  • channel: 'chatChannel',
  • message: { foo : 'bar' }
  • }, function ( status, response ) {
  • console.log( status.error, response )
  • })
  • Dictionary<string, string> chatMessage = new Dictionary<string, string>();
  • chatMessage.Add("foo", "bar");
  • pubnub.Publish<string>(
  • channel:"chatChannel",
  • message: chatMessage,
  • userCallback: DisplayPublishReturnMessage,
  • errorCallback: DisplayErrorMessage);
  • - (void)client: (PubNub *)client didReceiveStatus: (PNStatus *)status {
  • if (status.operation == PNSubscribeOperation && status.category == PNConnectedCategory) {
  • [self.client publish: @{@"foo": @"bar"} toChannel: @"chatChannel"
  • withCompletion:^(PNPublishStatus *publishStatus) {
  • if (!publishStatus.isError) {
  • NSLog(@"Published!");
  • }
  • else {
  • NSLog(@"Publish did fail with error: %@",
  • status.errorData.data?: status.errorData.information);
  • }
  • }];
  • }
  • }
  • func client(client: PubNub, didReceiveStatus status: PNStatus) {
  • if status.operation == .SubscribeOperation && status.category == .PNConnectedCategory {
  • client.publish(["foo": "bar"], toChannel: "chatChannel",
  • withCompletion: { (publishStatus) in
  • if !publishStatus.error {
  • print("Published!")
  • }
  • else {
  • print("Publish did fail with error: \(status.errorData.data ?? status.errorData.information)")
  • }
  • })
  • }
  • }
  • Map message = new HashMap();
  • message.put("foo", "bar");
  • pubnub.publish()
  • .channel("chatChannel")
  • .message(message)
  • .async(new PNCallback<PNPublishResult>() {
  • @Override
  • public void onResponse(PNPublishResult result, PNStatus status) {
  • if (status.isError()) {
  • System.out.println(status);
  • } else {
  • System.out.println("Published!");
  • }
  • }
  • });
Publish
  • JavaScript
  • .Net
  • Obj-C
  • Swift
  • Android/Java
Subscribe
Functions
  • export default request => {
  • request.message.hello = 'world!'
  • return request.ok()
  • }

Best-in-class Performance and Compliance

2 TrillionMonthly Transactions

< 1/4 SecondLatency Worldwide

330 MillionUnique Monthly Devices

99.999%Uptime SLAs

AICPA SOCHIPPAGDPRPrivacy Shield Framework

Ready To Get Started?

Contact Sales