The following API inputs significantly improve scoring and the overall user experience while analyzing clicks, users, and transactions with IPQS:
- user_agent (string): We strongly recommend passing the user_agent string associated with the IP address. This data point allows our scoring algorithms to better detect bots, abusive users, and high-risk IPs by analyzing the browser information. Including the full user agent can improve scoring by over 20%.
- user_language (string): Further enhances scoring based on the user's device.
- mobile (true/false): If you cannot pass the user agent but know that the request originated from a mobile device, we recommend setting this value as true to improve scoring accuracy.
Example request with recommended starting options
Replace IP_ADDRESS , USER_AGENT , and USER_LANGUAGE with the appropriate values.