Get popular posts using Blogger API V3 - google-blogger-api

How to get Popular Posts with 'All Time'|'LAST_YEAR'|'30 Days'|'7 Days' filter in Blogger API V3.
Can someone point me to the similar endpoint in Blogger API?

Currently, there is no endpoint available in Blogger API (https://developers.google.com/blogger/docs/3.0/reference/) which exposes the Popular Posts data for a blog. Google has acknowledged this and accepted it as a feature request (dating back to 2012) but till now no such public endpoint has been made available for the same.
I don't believe we expose the popular pages for a blog in any of our APIs at this point. I'll take this as a feature request =)
Refer to https://groups.google.com/d/msg/bloggerdev/G1Ew5ezZOhU/VhReyn5NXO8J

Related

Is there a way for Blogger-Twitter integration using javascript?

IFTTT is a great third party platform for blogger-twitter integration. However IFTTT allows only 25 Tweets per day from it's platform which is a trouble for me. I'm searching for a way if blogger and twitter could be integrated using javascript such that for every new post, a tweet is tweeted with post title and post url.

Twitter API V2 video url

I'm trying to fetch a tweet's video url using API V2.
Using API V1.1 I can use
https://api.twitter.com/1.1/statuses/show.json?id=<ID>&include_entities=true
and get the direct mp4 urls in the response at
extended_entities.media[0].video_info.variants
But using API V2 I can't seem to find any ways to get those, I was only able to get the video thumbnail but not the actual video.
I've tried it with both the lookup and the recent search endpoints but couldn't find a way to do that.
In lookup docs twitter says:
This endpoint was recently graduated from Twitter Developer Labs, and is the replacement of v1.1 statuses/show, v1.1 statuses/lookup, and Labs Tweet lookup. If you are currently using any of these endpoints, you can use our migration materials to start working with this new endpoint.
but that doesn't seem to be the case, is that feature not included ? Also if there is any other way to be able to embed a twitter video in a web page (without the tweet text) that'd be helpful.
The videos are not currently available in the Twitter API v2 at this time. This is a known request.
For those who still looking for an answer, you can do it on the V2 by adding the following parameters :
expansions=attachments.media_keys
media.fields=variants
Your final link should give https://api.twitter.com/2/users/{{uid}}/tweets?expansions=attachments.media_keys&media.fields=variants
Source : https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/media
Progress on twitter-api-v2 media handling, Maybe this will allow the video URLs too in the response.
https://twittercommunity.com/t/v1-1-media-endpoints-available-for-essential-access-in-the-twitter-api-v2/171664

Is Wikipedia geocoding API deprecated/down?

I've been playing around with the Wikipedia reverse geocoding API listed at:
https://www.mediawiki.org/wiki/Extension:GeoData
The specific API request I make is of the type:
https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gsradius=10000&gscoord=37.786971|-122.399677&format=json
The API worked great in the past. Today, somehow, the API returns an empty JSON object. Is the API deprecated or down? I can't seem to find any details on the page or the API help page or the MediaWiki page.
If deprecated, is there any alternative I can use?
Apparently it was just a temporary stop: https://bugzilla.wikimedia.org/show_bug.cgi?id=72559#c4

Post on Google+ Stream using Google+ API

Any one have idea about how to post on our Google+ Stream using Google+ API? I need to post on the stream.
There is still no "public" officially supported way to post on a Google+ stream using an API. (You can post using the +1 or Share buttons, and some people have used unofficial APIs or leveraged the SMS posting methods, but this isn't what you're looking for.)
For details on what you can currently do with the limited API you can look at https://developers.google.com/+/api/
Here is an unofficial Google+ API written in js. https://github.com/mohamedmansour/google-plus-extension-jsapi

Tumblr Integration: What is best practice for caching data from API?

I have a websites that has a blog section, which pulls the data using the Tumblr API.
My client just updates her Tumblr blog and the website would just access the Tumblr API to populate the blog page on the website. Also, any blog items tagged as news will show up on the home page.
I could be wrong, but I am sure there are limits to the rate of accessing the API, and so I am thinking I should somehow store the data in a database or even json file.
What would be a good way to "cache" the Tumblr API data so that I am not accessing the API everytime somebody views the website?
thank you!
phpTumblr has a caching class (class.read.tublr.cache.php)