Skip to content
StatusConsole

API reference

/useragent returns the browser User-Agent we currently recommend, as plain text. It needs no clientKey and is free. The userAgent field of hCaptcha tasks accepts only this value, and using it when you visit the target site also helps tokens pass.

GEThttps://api.yescaptcha.com/useragentGlobal endpoint
GEThttps://cn.yescaptcha.com/useragentChina endpoint
curl -s https://api.yescaptcha.com/useragent

Response (value on 2026-10-15; it changes with browser releases):

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36
  • If a result contains a userAgent, submit the token with that value.