Example API request: ./api.php?q=gentoo&p=2&type=0
"q" is the keyword
"p" is the result page (the first page is 0)
"type" is the search type (0=text, 1=image, 2=video, 3=torrent)
The results are going to be in JSON format.
The API supports both POST and GET requests.