Introduction🔗

The Getting Started Console examples show how to call 51Degrees device detection from a standalone command-line program. They are the shortest possible end-to-end walkthrough: build a pipeline, hand it a User-Agent (and optionally a set of User-Agent Client Hints), and print the resulting properties. Use them as the starting point for batch processing, ad-hoc lookups, automation scripts, or as a sanity check before wiring the pipeline into a larger application.

Two deployment models are covered:

  • Cloud — calls 51Degrees' hosted Cloud service over HTTPS. The simplest path to a working detection: a Resource Key configures the pipeline, no data file is needed locally. See Getting Started Console Cloud.
  • On-premise — runs the Hash engine inside your own process against a locally distributed data file. Suitable when network access is restricted or when you need the lowest per-call latency. See Getting Started Console On-premise.

Both examples are available across every supported language with a matching pattern, so the same logic can be compared side by side. If you intend to deploy inside a web framework rather than a console, see Getting Started - Web instead.

Getting Started Console Cloud

Getting Started Console On-premise