Skip to content

Instantly share code, notes, and snippets.

@coolacid
Created April 28, 2015 15:01
Show Gist options
  • Select an option

  • Save coolacid/c1c032640dc5a7a0db17 to your computer and use it in GitHub Desktop.

Select an option

Save coolacid/c1c032640dc5a7a0db17 to your computer and use it in GitHub Desktop.
Example Logstash Phishtank API response
{
"message" => "http://200.98.128.73/syscefo.php",
"@version" => "1",
"@timestamp" => "2015-04-28T01:45:43.903Z",
"type" => "generated",
"host" => "homer",
"sequence" => 0,
"phishtank" => {
"meta" => {
"timestamp" => "2015-04-28T01:45:49+00:00",
"serverid" => "e56defcc",
"status" => "success",
"requestid" => "192.168.0.109.553ee64dba13f6.46319160"
},
"results" => {
"url" => "http://200.98.128.73/syscefo.php",
"in_database" => true,
"phish_id" => "3155925",
"phish_detail_page" => "http://www.phishtank.com/phish_detail.php?phish_id=3155925",
"verified" => true,
"verified_at" => "2015-04-27T20:39:11+00:00",
"valid" => true
}
}
}
@ReyanshKharga

ReyanshKharga commented May 21, 2018

Copy link
Copy Markdown

Can you give a simple example to get this kind of json response because I am not able to get the response in json format. No matter what I do I always get the response in XML.

here is what I tried,
https://checkurl.phishtank.com/checkurl/index.php?url=http://ascures.at.ua/notifications.htm&format=json

This gives me XML response

@MaurizioCasciano

Copy link
Copy Markdown

Hi @coolacid, how did you get the JSON response? I'm trying
http://checkurl.phishtank.com/checkurl/?url=http://verificatie2dehandsbe.online/&format=json
but it always returns an XML no matter the format parameter.
Schermata da 2019-08-09 15-15-28

@coolacid

Copy link
Copy Markdown
Author

This isn't even JSON - Put it into a JSON Parser and it'll barf.

As the description says, it's the output of logstash.

@flashadvocate

Copy link
Copy Markdown

Hi @coolacid, how did you get the JSON response? I'm trying
http://checkurl.phishtank.com/checkurl/?url=http://verificatie2dehandsbe.online/&format=json
but it always returns an XML no matter the format parameter.
Schermata da 2019-08-09 15-15-28

You have to provide an API key in order to get anything other than XML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment