# How do I connect to APIs in EasyMorph?

**URL:** <https://community.easymorph.com/t/how-do-i-connect-to-apis-in-easymorph/4012>\
**Category:** General Q&A\
**Created:** [October 31, 2022, 1:30pm UTC](https://community.easymorph.com/t/how-do-i-connect-to-apis-in-easymorph/4012 "2022-10-31T13:30:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeeshaanh](https://community.easymorph.com/letter_avatar_proxy/v4/letter/z/cab0a1/32.png) [@zeeshaanh](https://community.easymorph.com/u/zeeshaanh)\
**Post date:** [October 31, 2022, 1:30pm UTC](https://community.easymorph.com/t/how-do-i-connect-to-apis-in-easymorph/4012/1 "2022-10-31T13:30:05Z")

</div>

Hi,

I am new to using APIs and would appreciate some help in how to import data using API's.

I am using the Import from Web API action and I am using the website [My Store](https://rapidapi.com/iddogino1/api/my-store2/) to practice, Inside the Import from Web API action I click on add new connector, but not sure what to do next:

 ![image](https://community.easymorph.com/uploads/default/original/2X/8/849ad5aa3086d76722a99d32a03dfec08967d496.png)

Any help would be greatly appreciated!

Thanks.

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [October 31, 2022, 2:11pm UTC](https://community.easymorph.com/t/how-do-i-connect-to-apis-in-easymorph/4012/2 "2022-10-31T14:11:33Z")

</div>

This article should be a good starting point: [Making your data better with web APIs](https://community.easymorph.com/t/making-your-data-better-with-web-apis/1483)

Once you have more specific questions, just post them in this thread.

---

<div class="post-metadata">

**Author:** ![zeeshaanh](https://community.easymorph.com/letter_avatar_proxy/v4/letter/z/cab0a1/32.png) [@zeeshaanh](https://community.easymorph.com/u/zeeshaanh)\
**Post date:** [October 31, 2022, 5:51pm UTC](https://community.easymorph.com/t/how-do-i-connect-to-apis-in-easymorph/4012/3 "2022-10-31T17:51:46Z")

</div>

Thanks for the link to the article, I am still slightly confused as to what I need to input in these fields:

 ![image](https://community.easymorph.com/uploads/default/original/2X/6/63c772aeafead1804bf3b4d05bbad0fa53bb1159.png)

I am using this online API as a sample: [https://rapidapi.com/jpbermoy/api/list-movies/](https://rapidapi.com/jpbermoy/api/list-movies/)

Thanks.

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [October 31, 2022, 6:12pm UTC](https://community.easymorph.com/t/how-do-i-connect-to-apis-in-easymorph/4012/4 "2022-10-31T18:12:58Z")

</div>

The base URL usually includes the protocol, the host, and, optionally, one or more URL path segments. Examples of base URLs:

```
https://example.com/api/v3	
https://example.com/api
https://example.com/

```

The final URL of a web request is concatenated from two parts - the base URL specified in the "Web location" connector, and the URL path of the "Web request" action (or similar action).

See more details about how it works here: [WEB REQUEST [EasyMorph Help]](https://help.easymorph.com/doku.php?id=transformations:webrequest#path_setting)

In case of the movies API, the base URL for the "Web location" connector can be

```
https://list-movies.p.rapidapi.com

```

The URL path in the "Web request" action then would be

```
list_movies.json/false

```

---

<div class="post-metadata">

**Author:** ![zeeshaanh](https://community.easymorph.com/letter_avatar_proxy/v4/letter/z/cab0a1/32.png) [@zeeshaanh](https://community.easymorph.com/u/zeeshaanh)\
**Post date:** [November 2, 2022, 1:45pm UTC](https://community.easymorph.com/t/how-do-i-connect-to-apis-in-easymorph/4012/5 "2022-11-02T13:45:28Z")

</div>

So I have configured it like this:

 ![image](https://community.easymorph.com/uploads/default/original/2X/f/fcde541f683dbb93fae7bad00653496eaa206c03.png)

 ![image](https://community.easymorph.com/uploads/default/original/2X/4/440fc1e8c0d8c907c10acc5fabfc74336795d5cb.png)

It returns results, but the html:

![image](https://community.easymorph.com/uploads/default/original/2X/c/cb265204e0ca5fb0cf1c6c67e453d36d979f57ae.png)

I really appreciate the help on this! Thanks!

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [November 2, 2022, 5:51pm UTC](https://community.easymorph.com/t/how-do-i-connect-to-apis-in-easymorph/4012/6 "2022-11-02T17:51:13Z")

</div>

### "Web location" connector

The Base URL of the "Web location" connector is incorrect. It should be `https://my-store2.p.rapidapi.com`.

The Header name is incorrect too. It should be `X-RapidAPI-Key`.

### "Web Request" action

Make sure that in the tab "Headers" you've added the header `X-RapidAPI-Host` set to `my-store2.p.rapidapi.com`.
