How To Get Your Blogs Posts Using Blogger API


By using blogger api, we can get all our blogger posts. Every blog has one id, By using below url we can get the posts.

Replace blogger id in blogeer_id, In php simplexml_load_file() we can fetch the posts here is code.

		<title>Blogger Api Example</title>
			$blogeer_id = '1234567980481307770';
			$URL = "".$blogeer_id."/posts/default";
			$xmlData = simplexml_load_file($URL);
			foreach($xmlData->entry as $postList){
				echo '<div>';
				echo '<h2>'.$postList->title.'</h2>'; // This is post title
				echo '<p>'.$postList->content.'</p>'; // This is post content
				echo '</div>';
				echo '<hr>';




You might also like:

Functions in javascript

25-05-2018 functions javascript es5 es6 arrow functions named functions Closures Nested Functions Callbacks Arrow functions.

How to submit form using javascript or jquery.

16-04-2017 javascript jquery submit form

How to make an http request in node js

14-03-2017 http module node js

Filter for insert HTML in Angular Js

06-03-2017 filter show html angular js html

Filter for change Date Time format (MM-dd-yyyy HH:mm) in Angular Js

05-03-2017 mm-dd-yyyy HH:MM date formats angular js