Skip to main content
Home
PetHub Dev Net (Alpha)

Main navigation

  • Home
  • APIs
  • Widget
  • Apply
User account menu
  • Log in

Breadcrumb

  1. Home

Integration Code

Step for integrating into website / web app / mobile app.

Copy the code below and paste it into the appropriate location of your webpage / web app / mobile app to embed the "powered by PetHub" widget. Height and width iFrame parameters are fully customizable.

Replace the #PARTNERCODE# in the below string with your partner code.

To get the partner code, please complete our request form.

Sandbox

For our Sandbox (testing) environment, the code snippet would be:

<iframe
     height="850px"
     id="pbph-widget"
     src="https://#PARTNERCODE#-sandbox.pethub.io/"
     style="border: 0px !important;" width="98%">
</iframe>

Production

For our Production (public) environment, the code snippet would be:

<iframe
     height="850px"
     id="pbph-widget"
     src="https://#PARTNERCODE#-widget.pethub.io/"
     style="border: 0px !important;" width="98%">
</iframe>

Widget Display Types

PetHub offers two variations of its front end widget: full and mini widget. The full widget is optimized for 740px height while the mini widget is optimized for 400px height.

To configure the mini widget, append ?widget_type=mini in the source URL.

Widget Docs Index

  • Introduction
  • Widget Docs
    • Integration Code
    • Appending Data
      • Approach 1
      • Approach 2
      • Approach 3
    • Style Elements
  • Support

Footer

  • Contact
  • Terms of Use
  • API Documentation
  • Widget Documentation
  • Frequently Asked Questions
  • Support

Copyright 2025, PetHub, Inc. All rights reserved.