API Endpoint
GET /v1/search/query
Query Parameters
All query parameters are optional
qa Guru Query Language query string specifying the filters to apply to the query. See the Guru Query Language reference for details. Be sure to URL encode the query to make it safe for inclusion as a query parametersearchTermssearch terms found in the card title, content, and other propertiesshowArchiveda boolean value (trueorfalseindicating whether to show archived cards. If set totrue, thesearchTermsparameter will be ignored.maxResultsthe maximum number or results to be returned by the query. Can not exceed50sortFieldthe field to sort the results by. Available fields are...lastModifiedthe date the card was last modified. This is the default sort field with default sort order of descendinglastModifiedBythe user that last modified the cardboardCountthe number of boards the card is onverificationStatethe trust status (Trusted, Stale, Needs Verification) of the cardcopyCountthe number of times the card has been copiedviewCountthe number of times the card has been viewedfavoriteCountthe number of times the card has been favoriteddateCreatedthe date the card was createdverificationIntervalthe frequency in days the card needs to be verifiedverifierthe user or group that is responsible for verifying the cardownerthe user that created the cardlastVerifiedBythe user that last verified the cardlastVerifiedthe date the card was last verifiedpopularitya Guru metric indicating how popular the card istitlethe title of the card
sortOrdereitherascfor ascending order ordescfor descending order
Sample Request
A call to get up to 10 cards that were modified in the last 7 days would include a query lastModified < 7_days_ago and would look like this
https://api.getguru.com/api/v1/search/query?q=lastModified%20%3C%207_days_ago&maxResults=10
Sample Response
The response will include an array of card objects, including title, content, id, and other relevant information for the cards
Results for these calls can be paged. See the Paging documentation for more information
[ {
"content" : "Instant access to the knowledge your team needs to do its job, everywhere it's done. Move faster and more confidently, together.",
"owner" : {
"email" : "gary.t.goat@getguru.com",
"firstName" : "Gary",
"lastName" : "Goat",
},
"lastModified" : "2016-01-02T00:00:00.000+0000",
"id" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"lastVerified" : "2016-01-02T00:00:00.000+0000",
"lastVerifiedBy" : {
"email" : "gary.t.goat@getguru.com",
"firstName" : "Gary",
"lastName" : "Goat",
},
"verifiers" : [ {
"type" : "user",
"user" : {
"email" : "gary.t.goat@getguru.com",
"firstName" : "Gary",
"lastName" : "Goat",
},
"id" : "gary.t.goat@getguru.com"
} ],
"lastModifiedBy" : {
"email" : "gary.t.goat@getguru.com",
"firstName" : "Gary",
"lastName" : "Goat",
},
"dateCreated" : "2016-01-01T12:30:45.150+0000",
"preferredPhrase" : "What is Guru?",
"shareStatus" : "TEAM",
"verificationInterval" : 90,
"verificationState" : "TRUSTED",
"cardType" : "CARD"
},
...
]
Additional Use Cases

Comments
0 comments
Please sign in to leave a comment.