Questions tagged [search-api]

API, an abbreviation of application program interface, is a set of routines, protocols, and tools for building software applications.When using the search API, we typically used the KeywordQuery or FullTextSqlQuery classes.

Filter by
Sorted by
Tagged with
0 votes
1 answer
45 views

SharePoint Rest API for search functionality on list level

I was wondering is there any rest api endpoint available to utilize the search functionality directly in a list level? SharePoint is proviiding an option to search/find an item in list view. But is it ...
user avatar
0 votes
0 answers
20 views

Use SharePoint Search API on Custom Content Type with Multi-select Managed Metadata Columns

I'm using Power BI to query a custom SharePoint list based on a custom content type including a site column which is a multi-select managed metadata column. The result of the SharePoint search api ...
user avatar
1 vote
1 answer
317 views

Get all site collections listed in SharePoint Admin center using Rest / Search / Graph api

Does anyone know how to fetch all site collections from my SharePoint admin center by using rest api / search api / graph api? I have tired using search and graph api : let query = SearchQueryBuilder(&...
user avatar
  • 15
0 votes
0 answers
14 views

Showing recent documents for currently logged in user

I have a task to show recent documents viewed for currently logged in user on a classic sharepoint page. Im looking for some options here and would appreciate any feedback. The options im thinking are ...
user avatar
  • 4,080
2 votes
1 answer
335 views

SP Online generate refresh token for testing REST api calls in Postman

I'm refining SPO API calls intended for a mobile app project using Postman, and all is fine except the access token keeps expiring after maybe a day. How do I get the "refresh token" to work ...
user avatar
  • 559
0 votes
1 answer
194 views

Viewslifetime is getting blank when we hit the sharepoint page using rest search api. It is giving data length 0 for some of the SharePoint pages

We need to display viewslifetime (page view count) in our SharePoint page using search API. But when we are hitting the search API query it is giving data for some of the sharepoint pages. but when it ...
user avatar
0 votes
1 answer
63 views

SharePoint Serach Rest API How to get People column value by email or User Id

I'm using SharePoint Serach Rest API to get CreatedBy column data, Where I have used Name in Query text Var searchdata = { { '__metadata': { 'type': 'Microsoft.Office.Server.Search.REST....
user avatar
1 vote
1 answer
213 views

Search API exclude null Birthday records in SharePoint Online

I am building a birthday webpart. I am using search api to get the user details as below: var birthday = 'RefinableDate00'; fetch(this.props.SPUrl + "/_api/search/query?querytext=%27*%27&...
user avatar
  • 1,124
1 vote
0 answers
29 views

How do I search for ü using the search api

I have been trying to search for ü in the title field of documents using the search api. It doesn't return any results. https://mysite.domain.com/_api/search/query?querytext='Title:"ü"'&sourceid='...
user avatar
0 votes
1 answer
111 views

_api/search/query title field changed

We are using the below URL to search the data. /_api/search/query?querytext='test''&selectproperties='UniqueId, Title, OriginalPath, ServerRedirectedEmbedURL, ServerRedirectedPreviewURL'&...
user avatar
0 votes
1 answer
40 views

Why does the query to the Sharepoint API search on the internet explorer not work?

I am using the api search to make a query and get the value of a refinablestring. A basic example of the query I am doing is the following. https://mysite.sharepoint.com/_api/search/query?querytext='...
user avatar
  • 13
0 votes
1 answer
51 views

Search api when executed from communication site are not returning team sites results

Let's say we have /sites/hub-1 which is a hub site and template is team site. Then we have 2 sites associated to sites/hub-1 /sites/team-1 which is a team site /sites/comm-1 which is a communication ...
user avatar
0 votes
2 answers
245 views

Sharepoint API authentication without OAuth

I'm trying to make an integration work between JIRA and Sharepoint to populate values in a custom field in JIRA from querying the Sharepoint API, but the JIRA Addon I'm using to does not support ...
user avatar
  • 25
0 votes
1 answer
36 views

How to store user search queries in SharePoint Online in a list

I want to store the user search queries which are entered in the search box in a list and display them in a page without duplicates. I know I can get the excel report from popularity and search ...
user avatar
  • 45
0 votes
0 answers
198 views

Refinablestring Date Column Range Results using Search Rest API

We have a Document Library in SharePoint Online with Date Column and it was mapped to RefinableString00 Managed property. currently we are getting the search result using the below api url "/_api/...
user avatar
  • 2,818
0 votes
1 answer
35 views

SharePoint Online Search

How could I filter by range in a managed property of type number in a sharepoint search? I'm using pnp-js-core Thanks so much.
user avatar
1 vote
1 answer
449 views

Search API not returning lookup column values

I want to retrieve all the library items of a content type "Prod Request". I am using REST API for this. I am not able to get lookup column values.In below query my lookup column name is LookUp1. I ...
user avatar
  • 83
0 votes
1 answer
340 views

Search/REST API only showing all results to Farm admin

I want to retrieve all the library items of a content type "Prod Request". I am using REST API. Here is my query: $.ajax({ url: https://mysite.domain.com/_api/search/query?...
user avatar
1 vote
0 answers
195 views

Refinement filter to look at the Title and Path properties with REST Search API

I have a POST search using the following select properties: Path,Title,Size,Author,Description,FileExtension,Rank,DocId,WorkId,ParentLink,FileType,ServerRedirectedEmbedURL,ServerRedirectedPreviewURL,...
user avatar
  • 225
2 votes
1 answer
687 views

Search API get team and communication sites

How do I search for Team Sites and Communication Sites using SharePoint Search REST API?
user avatar
  • 178
2 votes
1 answer
207 views

Need help with Search API

I have below search query: http://siteURL/_api/search/query?querytext='ContentType:"CTName" AND AirDateOWSDATE<2018-12-07T05:00:00.000Z'&trimduplicates=false&rowlimit='500'&...
user avatar
  • 1,807
1 vote
0 answers
41 views

How to process sharepoint page (site pages) data returned from rest api, i.e fetch title comments likes etc ,

How to process the html(ish) content returned by rest API while fetching site pages from Sharepoint , and is there any better approach to fetch page data. Trying the same with search api fetches ...
user avatar
  • 11
0 votes
1 answer
3k views

Sharepoint REST api search for a querytext in a list

I am having issue while searching using query text in a specific list for cross-domain. Also I am not able to search in a specific site, when I use the following get query, url: appweburl + "/_api/...
user avatar
1 vote
1 answer
466 views

SharePoint 2013 Search API not returning png result

I am attempting to search a SharePoint instance using the search api. I have two files in a document library called AddDoc.docx and AddPic.png. However, when I search using Add* only AddDoc.docx is ...
user avatar
  • 13
0 votes
1 answer
614 views

Exclude Forms/DispForm.aspx? from search results Search api Sharepoint online

How can i exclude "Forms/DispForm.aspx?" from search results using the search api for SharePoint Online? I tried the following querytext: $querytext= path: *: // * /DispForm.aspx* But it is not ...
user avatar
0 votes
1 answer
207 views

How to add multiple filters to a property in Search api Sharepoint

Below is my querytext to get items from pages library and document library. $quertText="createdby:XXX AND contentclass:STS_ListItem_850 AND STS_ListItem_DocumentLibrary" But it is returning 0 ...
user avatar
0 votes
1 answer
220 views

Filter site pages , AllItems.aspx from Search results using search API powershell

I have to get data from sharepoint tenant based on createdby using Search api powershell .In search results there are allitems.aspx and sitepages,Pages,Forms/Allitems.aspx,calendar.aspx also .How can ...
user avatar
0 votes
1 answer
366 views

Get Site URL using Keyword query Search api

I want to get Site URL using Keyword Query power shell.. Below are properties(b and lastmodifiedtime) im retrieving using keyword query ..likewise i want to get Site URL using below approach,how can ...
user avatar
1 vote
1 answer
974 views

Get page views of a page in SharePoint using Javascript

Is there a way to get the total number of page views of a page in SharePoint using Rest API or JSOM? I tried using Search API http://SiteUrl/sites/_api/search/query?querytext='home' But in all the ...
user avatar
0 votes
1 answer
459 views

Getting the data from a search result using the web/lists/getbyTitle/items REST API end point

I can't believe this is so difficult. Here is what I need and I just seem to be chasing my tail and not getting anywhere. In my local database I have stored the path and the file id of files that ...
user avatar
  • 225
1 vote
2 answers
38 views

Is it possible to get a list of all content types in a site collection using search api?

I have a few site collections and I would like to retrieve the content types of each site collection and display them as a list and I was wondering if it can be achieved using search api?
user avatar
  • 1,316
2 votes
1 answer
30 views

How to allow all users to execute search API call for group members info

I'm having an issue with SharePoint 2013, In js file deployed on search page I need to check the users group by this API /_api/web/sitegroups/getbyname('X')/Users The problem is that the users don'...
user avatar
1 vote
1 answer
2k views

500 Internal Server Error Search REST API

I am trying to call search REST apis from an spfx webpart, but I am getting this: GET http://servername/_api/search/query?querytext=%27*%27 My code looks like this: let query = `${this.context....
user avatar
0 votes
1 answer
187 views

Can i get all items of all content types within a site collection using search API?

I want to show all Created BY and Modified BY users of all items of all content types within a site collection. Currently I'm using the _api/search/query?querytext=''&refiners='...
user avatar
  • 302
1 vote
1 answer
202 views

I really need to query SharePoint Online search API from an on-premise site

Is this possible? We have an intranet hosted in Office 365 using SharePoint Online, however the performance is not that great. I wanted to migrate it to on-prem however for some of the functionality ...
user avatar
0 votes
1 answer
337 views

How to get all list items from all list (list having same name) in various sub sites using rest search api sharepoint 365

I am trying to get all list items in same name lists across the all sub sites having same names list. example list name: 'Action' Now I want to get all 'Action' lists items across the all sub sites. ...
user avatar
  • 323
0 votes
1 answer
1k views

Add a negation refinement filter

Using Search Query tool, I need to generate a query to retrieve items from a SharePoint list by filtering item properties based on a dropdown values(-,A,B,C,D). My results should not include items ...
user avatar
0 votes
1 answer
191 views

Custom Content Type Missing from Search API results

I am trying to return all items with my custom content type applied but all the ContentType property is set to Item. Not sure what I am missing here. I have added my content type to my list and ...
user avatar
1 vote
1 answer
511 views

Suggest endpoint in the Search REST service in SharePoint 2013

I was trying to build a search box with suggestions as user typing using this endpoint "/_api/search/suggest" documentation in SharePoint Search REST API overview. However it doesn't seems work for ...
user avatar
  • 127
0 votes
1 answer
391 views

fetching fields using Sharepoint search Api

I have a content type called News Item Below is my Search Api query http://spsite/sites/Intranet/_api/search/query?querytext='ContentType:News*'&selectproperties='Title,IsPromoted' I am trying ...
user avatar
0 votes
2 answers
1k views

How search inside all folders in Document Library

How can I search thought REST API all files in Document Library(DocLib), inside sub-folders included. Let's say I have: Folder 1A Folder 1.1 File A; Folder 2 File AA; File AAA; And I search a ...
user avatar
2 votes
1 answer
205 views

SharePoint Online API for trending documents in mysite

Is there any API to fetch all the trending documents in My Site.
user avatar
  • 480
1 vote
0 answers
296 views

How to retrieve all list items from all site collections under a SharePoint tenant using Search Api

I need to fetch all list items with the conditions as The item could be of any content type (OOB content types or custom content types). The item could be in any site collection under my SharePoint ...
user avatar
1 vote
1 answer
2k views

Filtering a Search Query REST

I am trying to use REST to return items from a list, the search query needs to be filtered by Managed Properties, by Path and by type to ensure only List Items are returned. The Managed Property ...
user avatar
1 vote
1 answer
49 views

SPO - Simulate search being down

I'm creating an notification message to let users know if SharePoint Online search is down. What's the best way to simulate this? Right now, I'm thinking to call an AJAX request to https://mySPOsite/...
user avatar
  • 566
2 votes
3 answers
27k views

how to filter fields using contains in sharepoint search api

I was using Sharepoint Rest api and the query looked like the one below http://sitename/HR/_api/web/lists/GetByTitle('Employee')/Items?$top=4000&$filter=( substringof('100',Title) and substringof(...
user avatar
3 votes
2 answers
2k views

Get managed metadata column value in sharepoint search result using search js with keyword query

I have retrieve SharePoint search results using javascript on SharePoint Online with following code: var keywordQuery = new Microsoft.SharePoint.Client.Search.Query.KeywordQuery(context); ...
user avatar
  • 3,197
2 votes
0 answers
50 views

Find page url for image

Creating an image gallery. If a user clicks on a thumbnail the bigger image is loaded into a modal and they can pinch/zoom to see detail. If the title of the image is clicked it'll take them to the ...
user avatar
  • 121
3 votes
3 answers
945 views

Is JSON Light supported for the SharePoint Search REST API?

I read about JSON Light support for SharePoint REST APIs and tried to use it to save some bytes when calling the SharePoint Search REST API (/_api/search). I get unexpected behavior with nearly all ...
user avatar
1 vote
0 answers
50 views

SharePoint Search: How to tell SharePoint to NOT send me its managed properties in the result set?

I'm calling the SharePoint Search REST API like this, saying I want only the value of managed property SomeProperty: https://sharepoint/_api/search/query?querytext='trololo'&trimduplicates=false&...
user avatar