# Is it possible to automate API's and mobile automation using Robot framework?

**URL:** https://forum.robotframework.org/t/is-it-possible-to-automate-apis-and-mobile-automation-using-robot-framework/4935
**Category:** Robot Framework
**Created:** [13 November 2022 14:07 UTC](https://forum.robotframework.org/t/is-it-possible-to-automate-apis-and-mobile-automation-using-robot-framework/4935 "2022-11-13T14:07:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Dineshsampath05](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@Dineshsampath05](https://forum.robotframework.org/u/Dineshsampath05)
#### Post date: [13 November 2022 14:07 UTC](https://forum.robotframework.org/t/is-it-possible-to-automate-apis-and-mobile-automation-using-robot-framework/4935/1 "2022-11-13T14:07:30Z")

</div>

Hi Robot framework community,

Can we able to automate API’s using Robot framework?  
Please guide me how to start learning the API automation topics

Mobile automation is possible using Robot framework?  
Please guide me how to start learning the Mobile automation topics

---

<div class="post-metadata">

### Author: ![René](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ren%C3%A9/32/7_2.png) [@René](https://forum.robotframework.org/u/Ren%C3%A9)
#### Post date: [13 November 2022 14:42 UTC](https://forum.robotframework.org/t/is-it-possible-to-automate-apis-and-mobile-automation-using-robot-framework/4935/2 "2022-11-13T14:42:34Z")

</div>

RobotFramework is generic and the different technologies are handled by libraries.

For example Mobile testing by Appium

> **[GitHub - serhatbolsu/robotframework-appiumlibrary: AppiumLibrary is an appium...](https://github.com/serhatbolsu/robotframework-appiumlibrary)**
>
> AppiumLibrary is an appium testing library for RobotFramework - GitHub - serhatbolsu/robotframework-appiumlibrary: AppiumLibrary is an appium testing library for RobotFramework

Regarding API the question would be: “what api?”

---

<div class="post-metadata">

### Author: ![jsl](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/jsl/32/2076_2.png) [@jsl](https://forum.robotframework.org/u/jsl)
#### Post date: [18 November 2022 15:00 UTC](https://forum.robotframework.org/t/is-it-possible-to-automate-apis-and-mobile-automation-using-robot-framework/4935/3 "2022-11-18T15:00:11Z")

</div>

A very simple API client with no request body:

```
Library HttpCtrl.Client
Library HttpCtrl.Json

Set Local Variable ${HTTP_METHOD} GET # GET, POST, DELETE, ....
Set Local Variable ${MY_BASE_URL} www.robotframework.org
Set Local Variable ${URL_PATH} /path/to/my/api/call

 Initialize Client ${MY_BASE_URL}

 Set Request Header Authorization Bearer ${MY_TOKEN}
 Set Request Header Content-Type application/json
 Set Request Header Cache-Control no-cache

 Send HTTPS Request ${HTTP_METHOD}	${URL_PATH}

 ${RESPONSE_STATUS}= Get Response Status
 ${RESPONSE_BODY}= Get Response Body
 ${RESPONSE_HEADER}= Get Response Headers

```

As René states - the end result depends on what API you want to use.

---

<div class="post-metadata">

### Author: ![Dineshsampath05](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@Dineshsampath05](https://forum.robotframework.org/u/Dineshsampath05)
#### Post date: [20 November 2022 05:27 UTC](https://forum.robotframework.org/t/is-it-possible-to-automate-apis-and-mobile-automation-using-robot-framework/4935/4 "2022-11-20T05:27:00Z")

</div>

Thanks a lot 🙂
