| |
|
| Parameter | Description |
|---|---|
| accesskey | You access key |
| ua | UserAgentString (optional) |
| ip | IP address (v.4 or v.6) - (optional) |
POST accesskey=XXXXXX&ua=Mozilla%2F5.0+%28compatible%3B+Googlebot%2F2.1%3B+%2Bhttp%3A%2F%2Fwww.google.com%2Fbot.html%29&ip=66.249.64.1 to http://api.udger.com/isbot
Answer format includes selection of following values (encoded in UTF-8):
| Variable | Value | Description |
|---|---|---|
| flag | "0" "2" "4" "6" "99" | Return code of communication: OK ip address is not valid incorrect acceskey exceeded the maximum number of queries BAD REQUEST |
| errortext | string type value | Error descriptoon, for flag "2", "4", "6" and "99" only |
| is_bot | "true" "false" | This is crawler This is not crawler (crawler by IP address takes precedence) |
| bot_by_ua | "true" "false" | This is crawler by UserAgemtString This is not crawler by UserAgemtString |
| bot_by_ip | "true" "false" | This is crawler by IP address This is not crawler by IP address |
| harmony_ua_ip | "true" "false" | bot_by_ua and bot_by_ip is true bot_by_ua or bot_by_ip is false |
| bot_name | "null" "Name" | crawler name |
| bot_udger_url | "null" "URL" | URL to udger UA list |
{
"flag": 4,
"errortext": "incorrect acceskey"
}
{
"flag": 0,
"is_bot": true,
"bot_by_ua": true,
"bot_by_ip": true,
"harmony_ua_ip": true,
"bot_name": "Googlebot\/2.1",
"bot_udger_url": "http:\/\/udger.com\/resources\/ua-list\/bot-detail?bot=Googlebot"
}