Make your first request.
Identify your browser, operating system and device as useful JSON.
Make a request, read the JSON, then use the same pattern in your application.
Run a lookup
Copy this command into your terminal to identify curl, or open it in the API Explorer to identify your browser.
curl "https://api.parseapi.com/useragent" \
-H "X-API-Version: 2.2.0"Read the result
A successful lookup returns HTTP 200 and a JSON object with these fields.
- useragent
- The original User-Agent string sent by the client.
- device, os, browser
- The detected device type, operating system and browser. A
nullvalue means that detail could not be identified. - bot, mobile
- True or false flags for a recognized bot or mobile client.
Use your API key to receive the detail included with your plan. Read the full User-Agent reference.
Call another API
Copy a secret key from your dashboard and save it in your terminal environment as PARSEAPI_KEY. This request splits a name into useful fields.
How to set the key in your terminal
Run export PARSEAPI_KEY='your-secret-key', replacing your-secret-key with the key you copied. Then run the request below in the same terminal.
curl "https://api.parseapi.com/name/Ada%20Lovelace" \
-H "X-API-Key: $PARSEAPI_KEY" \
-H "X-API-Version: 2.1.0"The key goes in X-API-Key. X-API-Version pins the response contract your app expects. Keep secret keys on your server. For a browser or mobile app, choose the matching key type.
Questions? Email