I need to get full info by given site url.

For example:

```
$href = 'http://example.com/news/news-1'; 

```

I can get post id by

```
$post_id = url_to_postid( $href );

```

Then I can get post type by

```
$post_type = get_post_type( $post_id );

```

But it gives me nothing if it's a category url. So is there any other way to get info on given site url? Is this page even exist? Is it a page or a post? Is it a category?