I'm curious if the search results from the API is calculated the same way as the searches from within the sites themselves?  

Is there a difference between the two?  If so, what are the differences?