LoginSignup
3
5

More than 3 years have passed since last update.

SharePoint検索APIでアクセス数ランキングを取得するURL

Last updated at Posted at 2017-05-16

管理プロパティ : 'ViewsLifeTime' がアクセス数っぽい

Schema

https://{Web-Url}/_api/search/query?querytext='path:https://{Target-Url} (IsDocument:True OR contentclass:STS_ListItem)'&sortlist='ViewsLifeTime:descending'&selectproperties='Title,Path,ViewsLifeTime'&RowLimit={Result-count}&trimduplicates=false

※ 以下は環境に合わせる
{Web-Url} : Url of SharePoint site
{Target-Url} : Url of Scope (Tenant or SiteCollection or Web or List/Library)
{Result-count} : Count of result limit

※ (IsDocument:True OR contentclass:STS_ListItem) を入れてるとリストアイテムとドキュメントに限定される。抜いたら全部のページが対象

※ その他にも色々指定可能
SharePoint 検索 REST API の概要

example(All Tenant scope)

https://art365.sharepoint.com/sites/SpecialDevDept/_api/search/query?querytext='path:https://art365.sharepoint.com (IsDocument:True OR contentclass:STS_ListItem)'&sortlist='ViewsLifeTime:descending'&selectproperties='Title,Path,ViewsLifeTime'&RowLimit=20&trimduplicates=false

3
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
5