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
50 views

Searching a SharePoint Library for attribute value from XML document

I'm trying to search within XML files in a document library for a search term but i'm not getting the results. For example if I search for 'title' or 'paragraph' it finds the file but NOT if I search ...
Dave G's user avatar
  • 1
0 votes
0 answers
79 views

Help with KQL query search not returning any result

I have installed the search query tool and i'm sure i have the properties Birthday and Department updated in my SharePoint user profile. But using the below queries yields no result To list everyone ...
naijacoder's user avatar
  • 4,272
0 votes
0 answers
36 views

I need help with KQL search query - I want to list peoples birthday

I need a KQL something similar below to list users who were born in the current month Birthday:"this month" -ContentClass=urn:content-class:SPSPeople The above doesn't return anything When ...
naijacoder's user avatar
  • 4,272
0 votes
0 answers
38 views

401 (Unauthorized) When calling Sharepoint Query

I am currently getting this error 401 when I try to call my Sharepoint Endpoint. It occurred after I added the following Access-Control-Allow-Origin into the IIS header. I am unsure if this is an ...
Tim3's user avatar
  • 1
0 votes
1 answer
74 views

Sharepoint online calling search API using Rest API

I was tried many times, I am not able to calling rest Api call, when i was tried with ajax call then it's work fine, but when i tried with rest api then it's not working. so can you help me to find ...
Ashish Prajapati's user avatar
0 votes
1 answer
271 views

SharePoint Online REST API - searching with external user

In my application, I'm getting the list of all sites with this search API call: /_api/search/query?querytext='contentclass:STS_Site' However, it does not work for external users, despite having all ...
privm's user avatar
  • 23
0 votes
0 answers
255 views

Sharepoint API PictureThumbnailURL returns unauthenticated

I use the sharepoint search API to get the latest newsarticles from sharepoint. This works for me https://tentant.sharepoint.com/_api/search/query?querytext='PromotedState:2' I also get returned an ...
Jbadminton's user avatar
0 votes
1 answer
3k 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 ...
Jefin Mathew's user avatar
1 vote
1 answer
2k 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(&...
Paul's user avatar
  • 15
2 votes
1 answer
776 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 ...
matt's user avatar
  • 589
0 votes
1 answer
403 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 ...
Gaurav Kumar's user avatar
0 votes
1 answer
133 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....
Akshay Dattatray Nangare's user avatar
1 vote
1 answer
355 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&...
love thakker's user avatar
  • 1,136
1 vote
0 answers
34 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='...
user89485's user avatar
0 votes
1 answer
211 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'&...
Zoltán Bányai's user avatar
0 votes
1 answer
103 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='...
Manuel's user avatar
  • 13
0 votes
1 answer
94 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 ...
Kunal Valecha's user avatar
0 votes
2 answers
668 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 ...
Paul0PT's user avatar
  • 25
0 votes
1 answer
100 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 ...
Suhas Yerramsetty's user avatar
0 votes
0 answers
318 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/...
TARUN's user avatar
  • 2,856
0 votes
1 answer
37 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.
Fabio Valencia's user avatar
1 vote
1 answer
750 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 ...
Rameez's user avatar
  • 83
0 votes
1 answer
434 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?...
user81497's user avatar
1 vote
0 answers
314 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,...
john's user avatar
  • 235
2 votes
1 answer
1k views

Search API get team and communication sites

How do I search for Team Sites and Communication Sites using SharePoint Search REST API?
Szybki's user avatar
  • 178
2 votes
1 answer
287 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'&...
Deepmala's user avatar
  • 1,857
1 vote
0 answers
42 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 ...
Ajay Rn's 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/...
user79174's user avatar
1 vote
1 answer
576 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 ...
A.W.'s user avatar
  • 13
0 votes
1 answer
838 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 ...
Swetha's user avatar
  • 389
0 votes
1 answer
325 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 ...
Swetha's user avatar
  • 389
0 votes
1 answer
266 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 ...
Swetha's user avatar
  • 389
0 votes
1 answer
526 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 ...
Swetha's user avatar
  • 389
1 vote
1 answer
1k 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 ...
Vignesh Subramanian's user avatar
0 votes
1 answer
721 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 ...
john's user avatar
  • 235
1 vote
2 answers
40 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?
Burre Ifort's user avatar
  • 1,337
2 votes
1 answer
35 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'...
A. Kwiatkowski's 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....
Brittany Rutherford's user avatar
0 votes
1 answer
246 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='...
Vijay's user avatar
  • 302
1 vote
1 answer
253 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 ...
Christopher Bruce's user avatar
0 votes
1 answer
417 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. ...
Y. Jagtap's user avatar
  • 323
0 votes
1 answer
2k 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 ...
y.l.n.sudheera's user avatar
0 votes
1 answer
218 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 ...
ExceptionLimeCat's user avatar
1 vote
1 answer
607 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 ...
Alan's user avatar
  • 127
0 votes
1 answer
420 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 ...
Vignesh Subramanian's user avatar
0 votes
2 answers
2k 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 ...
Bruno Gibellino's user avatar
2 votes
1 answer
251 views

SharePoint Online API for trending documents in mysite

Is there any API to fetch all the trending documents in My Site.
gachCoder's user avatar
  • 480
1 vote
0 answers
298 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 ...
Ashwin Kheta's user avatar
1 vote
1 answer
3k 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 ...
Curtis Hennessy's user avatar
1 vote
1 answer
51 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/...
kei's user avatar
  • 586