Easily connect to your Foscam IP cameras with this lightweight Java library. One command is all it takes. FoscamAPI is suitable for all Foscam IP cameras. It is tested on the FI9900P.

// Connect to the camera
Foscam camera = new Foscam("192.168.1.40", 88, "username", "password");

// Do whatever you want
camera.setSharpness(90);
...             

Supported devices

All IP cameras are known to support FoscamAPI, but there are some exceptions: These exceptions are also described in the Javadoc.


Maven dependency

Use FoscamAPI in your Maven project.

<repository>
  <id>foscamlib-mvn-repo</id>
  <url>https://raw.github.com/hypothermic/foscamapi/mvn-repo/</url>
</repository>

<dependency>
  <groupId>nl.hypothermic</groupId>
  <artifactId>foscamlib</artifactId>
  <!-- If you're using Maven3, specify version num -->
  <version>LATEST</version>
</dependency>


Gradle dependency

Use FoscamAPI in your Gradle or Android Studio project.

repositories {
    maven {
        url "https://raw.github.com/hypothermic/foscamapi/mvn-repo/"
    }
}

dependencies {
    // Note: use 'api' instead of 'compile' if you're using Android Studio.
    compile group: 'nl.hypothermic', name: 'foscamlib', version: '1.07-RELEASE'
}


Troubleshooting

If you are having issues with FoscamAPI or any component:
  1. Make sure your camera firmware is up to date. Do not ignore this step.
  2. Check the Javadoc or the GitHub Pages if you are using the method correctly.
  3. Open an issue where you describe the problem you're having. Include your camera model and firmware version.


Changelog

Changes made in the latest versions: See full changelog


Common sources

Useful information for fellow developers:


Back to top