Talk:REST API

Jump to: navigation, search

About this board

Latency of hourly vs daily endpoints?

1
Aldebrn (talkcontribs)

Who could I ask about the latency of some of the REST endpoints? I see that I can get very recent pageviews data, e.g.

https://wikimedia.org/api/rest_v1/metrics/pageviews/aggregate/en.wikipedia/all-access/all-agents/hourly/2018031600/2018031800

accessed now, at 2018/03/17 0230 UTC, gives me an hourly pageviews on the English Wikipedia at timestamp "2018031623", so about ~3.5 hours latency, very nice!

In contrast, asking for the daily number of edits via

https://wikimedia.org/api/rest_v1/metrics/edits/aggregate/en.wikipedia/all-editor-types/all-page-types/daily/20180225/20180317

only gives me data up to the end of February. This makes me think the daily datasets are generated only once a month? Who can I ask about this latency, and whether more recent "rest_v1/metrics/edits" data can be obtained? Thanks!

Reply to "Latency of hourly vs daily endpoints?"
Tomayac (talkcontribs)

I would love to learn about your plans for Service Worker support for the API.

GWicke (talkcontribs)

The REST API is primarily targeted at serving the data consumed by increasingly fatter clients, including those taking advantage of ServiceWorkers.

We are also looking into leveraging ServiceWorkers to improve performance and offline support. As part of this effort, we have done some research and prototyping into a) a node environment for running unmodified serviceworker code on behalf of older clients, and b) streaming HTML transformation / composition tooling. We do intend to develop a PWA targeted at mobile web over the next 12 months which might use some of this research, but expect this PWA to be limited to an opt-in beta feature until at least mid 2018.

193.236.58.24 (talkcontribs)

ujyhhynjuhnjhunhjhn

Reply to "Service Workers"
Xover (talkcontribs)

Are there any plans to make the per-user Special:Watchlist available?

197.218.88.81 (talkcontribs)
Reply to "Watchlist access?"
GreenC (talkcontribs)
GWicke (talkcontribs)

When an end point is deprecated, "it means that it has not been useful to clients and will consequently be removed in the near future." These end points were experimental or unstable before, and have been deprecated as part of a larger clean-up effort in preparation for the 1.0 release.

So no, please do not use those end points any more. They are about to be removed in early May.

Reply to "Deprecated?"
There are no older topics