Check out the latest documentation.

Updating Device Data

Keeping device data up-to-date is almost as important as regularly installing security updates as it affects your customers. Correctly identifying the latest devices, Operating Systems and browsers allows you to provide your customers with the most relevant version of your website and content. Our data team work tirelessly to update our database on a daily basis.

We understand that manually downloading the latest data file is time consuming and inefficient, so we have introduced automatic updates functionality. This allows your API to automatically retrieve the latest data file from our servers using your licence key and update your current device data file with the latest version.

If you are a Premium or Enterprise customer you can get started with automatic data updates straight away, see the next section for more details. Lite data users are welcome to test drive automatic updates by contacting us for a free evaluation programme. When trialling the Premium and Enterprise data file versions you can experience the  benefits of having more properties and device combinations as well as more frequent updates.  Compare the features offered by each data file.

For general information about the auto update feature see the Automatic Data Updates documentation page.

Node.js Specific Information

Premium and Enterprise Subscriptions

Automatic updates will replace the locally stored 51Degrees data file when a new one is published. To enable automatic updates the licence key needs to be added to your configuration. The provider will automatically reload the data without requiring the Node process to restart.

To enable automatic updates, change the JSON config object in the node.js start script. For example, in (Github) Device-Detection/node.js/examples/client.js :

								
...
var fiftyonedegrees = require("fiftyonedegreescore");

									
									var config = {“Licence”:“YOUR_KEY”};
									
								

...

								

In the above example 'YOUR_KEY' should be replaced with the licence key provided by 51Degrees.

Lite Users

Lite does not include an option to automatically update the data file. Instead the latest data file is available via the following NPM links:

51Degrees Lite Pattern

51Degrees Lite Trie