# CURL commands for PTZ

**URL:** https://community.wowza.com/t/curl-commands-for-ptz/50342
**Category:** Wowza Developer Dojo
**Created:** [December 10, 2017, 9:56pm UTC](https://community.wowza.com/t/curl-commands-for-ptz/50342 "2017-12-10T21:56:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mihai\_Postelnicu](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Mihai\_Postelnicu](https://community.wowza.com/u/Mihai_Postelnicu)
#### Post date: [December 10, 2017, 9:56pm UTC](https://community.wowza.com/t/curl-commands-for-ptz/50342/1 "2017-12-10T21:56:15Z")

</div>

What is the correct curl syntax to use for PTZ commands. I am currently using [http://localhost:8087/v2/servers/](http://localhost:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/myStream/sourcecontrol/actions/panTilt?PanTiltRight

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)
#### Post date: [December 10, 2017, 10:26pm UTC](https://community.wowza.com/t/curl-commands-for-ptz/50342/2 "2017-12-10T22:26:56Z")

</div>

Below are some examples that will get you started.

Use Curl to GET stream file information

```auto
curl --digest -u "username:password" -X GET "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/streamfiles/Sony1/adv"

```

You then need to query the parameters for your camera before you can control it.

This would be for a live stream called “axis”

```auto
curl --digest -u "username:password" -X GET http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/axis/sourcecontrol

```

This would be a live stream called “Sony1”

```auto
curl --digest -u "username:password" -X GET http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/Sony1/sourcecontrol

```

Move a camera for the live stream “Sony2”.

```auto
curl --digest -u "username:password" -X PUT http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/test/instances/_definst_/incomingstreams/sony2/sourcecontrol/actions/panTilt?PanTiltUp

```

We have an article on how to make API documentation available.  
[https://www.wowza.com/docs/how-to-access-documentation-for-wowza-streaming-engine-rest-api](https://www.wowza.com/docs/how-to-access-documentation-for-wowza-streaming-engine-rest-api)

We also have a large number of articles on the Wowza Streaming Engine REST API.  
[https://www.wowza.com/docs/wowza-streaming-engine-rest-api](https://www.wowza.com/docs/wowza-streaming-engine-rest-api)
