# Retreiving a wobj definition from Robot Web Services

**URL:** <https://tech-community.robotics.abb.com/t/retreiving-a-wobj-definition-from-robot-web-services/8323>\
**Category:** Robot Controller\
**Tags:** web-service, wobjdata\
**Created:** [June 20, 2018, 4:05pm UTC](https://tech-community.robotics.abb.com/t/retreiving-a-wobj-definition-from-robot-web-services/8323 "2018-06-20T16:05:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Humphrey](https://avatars.discourse-cdn.com/v4/letter/h/c77e96/32.png) [@Humphrey](https://tech-community.robotics.abb.com/u/Humphrey)\
**Post date:** [June 20, 2018, 4:05pm UTC](https://tech-community.robotics.abb.com/t/retreiving-a-wobj-definition-from-robot-web-services/8323/1 "2018-06-20T16:05:50Z")

</div>

Does anyone know how to get the wobj definition from the REST API? More precisely: what REST URL gives me the x,y,z,q1,q2,q3,q4 values of a certain wobj that is loaded in the controller?

Scenario:  
-I load a RAPID program with a wobj: ‘WobjTable’ for example  
-I adjust this wobj with the flexpendant and the 3 point method  
-Now I would like to retreive this new wobj definition from the Robot Web Services REST API

I was looking under

```auto
/rw/rapid/ 

```

but couldn’t find it there so far..

---

<div class="post-metadata">

**Author:** ![Humphrey](https://avatars.discourse-cdn.com/v4/letter/h/c77e96/32.png) [@Humphrey](https://tech-community.robotics.abb.com/u/Humphrey)\
**Post date:** [August 1, 2018, 3:05pm UTC](https://tech-community.robotics.abb.com/t/retreiving-a-wobj-definition-from-robot-web-services/8323/2 "2018-08-01T15:05:28Z")

</div>

Ok, apparently there is no function to do this directly, however you can get it by searching through the module text:

First loop over all modules:

```auto
/rw/rapid/modules?task=T_ROB1

```

then search for the wobjdata definitions:

```auto
/rw/rapid/modules/PUT_MODULENAME_HERE?task=T_ROB1&startrow=0&startcol=0&text=wobjdata

```

then with the results you can get the actual text where the wobj is defined:

```auto
/rw/rapid/modules/PUT_MODULENAME_HERE?task=T_ROB1&startrow=PUT_RESULTS_HERE&startcol=PUT_RESULTS_HERE&endrow=PUT_RESULTS_HERE&endcol=PUT_RESULTS_HERE

```
