api: implemented add_url.