Skip to main content

1. Start the Server

If you installed the Client SDK:
npx camera-remote-web-api --port 8080
The server discovers cameras connected via USB or network automatically.

2. Discover Cameras

curl http://localhost:8080/api/cameras
Note the camera id from the response — you’ll use it in all subsequent calls.

3. Connect

curl -X POST http://localhost:8080/api/cameras/{id}/connection \
  -H "Content-Type: application/json" \
  -d '{"mode": "remote"}'

4. Take Control

curl -X PUT http://localhost:8080/api/cameras/{id}/priority-key \
  -H "Content-Type: application/json" \
  -d '{"setting": "pc-remote"}'
Priority key must be set to pc-remote before the camera accepts remote commands.

5. Shoot

curl -X POST http://localhost:8080/api/cameras/{id}/actions/af-shutter

6. Disconnect

curl -X DELETE http://localhost:8080/api/cameras/{id}/connection

Next Steps