WordPress Import Plugin

This out of the box plugin allows for the importing of a WordPress site, including new users, images, YouTube, and DailyMotion.
Use the URL existence API.  It handles the URL variations that just querying for an exact string does not.
UrlService.prototype.existsForType

Then if it exists you can do a loadbyvalue for retrieval.