APIs & Integrations

Venkateshwar
Participant | Partner
Participant | Partner

How to implement external api in templates and landing pages

I want to use this
GET
https://orion.nfusioncatalog.com/service/price/all?currency=CAD&withretailtiers=true&withwholesaleti...

API in hubspot please help me to do and get values in UI

0 Upvotes
5 Replies 5
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

How to implement external api in templates and landing pages

Hi @Venkatesh_Srikanth,

if you’re using jQuery:
https://www.w3schools.com/jquery/ajax_ajax.asp
Or with plain Javascript:

An Example of AJAX With Vanilla JavaScript

Following on from our introduction to AJAX, here’s an example which uses the XMLHttpRequest API to initialize an AJAX request. AJAX Example Have a look at the following basic structure: ...

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

How to implement external api in templates and landing pages

Hi @Venkatesh_Srikanth,

If you’re trying to show the response on your website, you should be able to make an AJAX request to that API and display the response on your landing/website pages. If instead you’re trying to show the response within the HubSpot UI, that isn’t possible. The only way to make the items returned by that API accessible within the HubSpot UI would be to create a HubDB table and push the items into that table. Then, you could create website pages and request the items from the HubDB table. Here’s some documentation on HubDB:

https://developers.hubspot.com/docs/methods/hubdb/hubdb_overview

Venkateshwar
Participant | Partner
Participant | Partner

How to implement external api in templates and landing pages

Thank you @Derek_Gervais,

Any example for Ajax request to that api and display the response on my landing/website pages.

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

How to implement external api in templates and landing pages

Hi @Venkatesh_Srikanth,

What exactly are you trying to do with that API? Are you trying to pull information on your website? Or pull data into your HubSpot portal?

0 Upvotes
Venkateshwar
Participant | Partner
Participant | Partner

How to implement external api in templates and landing pages

https://orion.nfusioncatalog.com/Account/ApiDocs

I want to show the product name / Price in User Interface. Just display in HubSpot landing pages and templates

0 Upvotes