# Import form data from external website

**URL:** <https://community.hubspot.com/t/import-form-data-from-external-website/20190>\
**Category:** Lead Capture Tools\
**Created:** [April 19, 2020, 2:38pm UTC](https://community.hubspot.com/t/import-form-data-from-external-website/20190 "2020-04-19T14:38:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ziik](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ziik/32/1529_2.png) [@Ziik](https://community.hubspot.com/u/Ziik)\
**Post date:** [April 19, 2020, 2:38pm UTC](https://community.hubspot.com/t/import-form-data-from-external-website/20190/1 "2020-04-19T14:38:41Z")

</div>

What is the best way to get data from external website into Hubspot. It would be both contact and company data.

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [April 20, 2020, 12:48am UTC](https://community.hubspot.com/t/import-form-data-from-external-website/20190/2 "2020-04-20T00:48:11Z")

</div>

Hi @Ziik

Can you export the data to a CSV files?

Then you can import the data into HubSpot and create a Contact and a Company, with an association between the two.

In your case you would want to [Import one file with multiple object types](https://knowledge.hubspot.com/crm-setup/import-objects#import-one-file-with-multiple-object-types) – the objects being Contact and Company.

Does that work for you?

Mike

p.s. the error report is your friend – don’t panic if you see errors at the end of an import… the errors are usually easy to fix

---

<div class="post-metadata">

**Author:** ![Ziik](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ziik/32/1529_2.png) [@Ziik](https://community.hubspot.com/u/Ziik)\
**Post date:** [April 21, 2020, 5:47am UTC](https://community.hubspot.com/t/import-form-data-from-external-website/20190/3 "2020-04-21T05:47:40Z")

</div>

Hi Mike,

Thanks for your answer. In fact we want to set it up in realtime, so I suppose it should be through the Hubspot API.

Per

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [April 22, 2020, 12:24am UTC](https://community.hubspot.com/t/import-form-data-from-external-website/20190/4 "2020-04-22T00:24:22Z")

</div>

Hi @Ziik

Yes, the [HubSpot API](https://developers.hubspot.com/docs/overview) will be the best way to update data in real time.

Have fun

Mike
