If there a way to get the count of “Ask A Expert” questions raised by every user on the system, we need this to incentivize those who ask questions there by adding to the knowledge base. More like a leaderboard of who asked the most question in a period of time.
Hi question-created
event type).
Hi
The data is available here incase you whish to check
https://docs.google.com/spreadsheets/d/1Gvdw_GIsAelBSo21qWVbgQANxyPkplwbyGjwXNPkUEs/edit?usp=sharing
We used this link.
https://api.getguru.com/api/v1/teams/ce3aca53-e8c3-480e-9410-65977225a6fe/analytics
I have full Admin access to the platform if this information is of any help to you.
Hi
This is an awesome idea! Do you have an example of a user who has asked a question since September 9th, that is not showing up in the analytics endpoint? For troubleshooting purposes, it would be helpful to know the email address of a user who has asked a question since that date. Feel free to private message me an example and we can help you figure this out
Thanks!
Hi
Thanks
I think I see what’s happening here. Our API results are paginated, meaning that if you call one of our API endpoints and the result set is large, we split up the response over multiple pages.
In short, when there are subsequent result pages, we will return a response header called “Link”, which contains a URL to the next page of results. If you call that URL using the same authentication, you should see more results.
Here is what the response header looks like:
<https://api.getguru.com/api/v1/teams/ce3aca53-e8c3-480e-9410-65977225a6fe/analytics?token=RAe2wzWHo13UGFPnAsgls1nxXX4flbLvxwIphTe650gvFbB6GxX_flXiQoiOIBTgPaOrLlD4Jfo8qJojXzTQOJwbZfhIFv-Iwdbu4UVb1aC8n1UNm_aEJg%3D%3D>; rel="next-page"; title="Next Page"; type="application/json"
You’ll want to parse out just the URL from the response header for the next API call:
https://api.getguru.com/api/v1/teams/ce3aca53-e8c3-480e-9410-65977225a6fe/analytics?token=RAe2wzWHo13UGFPnAsgls1nxXX4flbLvxwIphTe650gvFbB6GxX_flXiQoiOIBTgPaOrLlD4Jfo8qJojXzTQOJwbZfhIFv-Iwdbu4UVb1aC8n1UNm_aEJg%3D%3D
Let me know if this makes sense!
Hi
Hi
What are you using to make the API call?
If you use Postman, you can click on the “Headers” button in the response section after you make the API call. Here is a screenshot:
If you are using python to make your API call, you can see the response headers by using the print(response.headers)
function, similar to the example below:
import requests
url = "https://api.getguru.com/api/v1/{endpoint}"
payload={}
headers = {
'Accept': 'application/json',
'Authorization': 'Basic {token}'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
print(response.headers)
Let me know if either of these help - if not, let me know what method you are using to make the API call and I can give a specific example of how to see the response headers.
Thanks!
Hi
Hi
Apologies for the delay in response here.
Admittedly, to get to the question that was asked is a bit wonky. We store our questions as cards, so you can get to it using the /cards
endpoint. In your response from the /analytics
endpoint, you will see a factId
. You can use that ID in the endpoint below to get the question:
GET https://api.getguru.com/api/v1/cards/{factId}
The question will be stored in the preferredPhrase
field.
Let me know if this works for you!
Hi
Hi
Hi
Column B (“Content”) in your spreadsheet will not be filled in for questions. The question itself is in Column A.
As for the pagination link, it looks like you are getting a 401 Unauthorized code, which likely means there’s something wrong with your authentication method (username and token). Can you double check those and try again?
Are there any outstanding questions I haven’t answered here? If so, it might make more sense to jump on a call to discuss. I can DM you with a Calendly link if you’d like - let me know!
How do I get the Questions and Answers in that excel with the other analytics data?
Also, please do share the Calendly along with the answer to this query and if I still have a issue post working with the team tomorrow I’ll will set up a call with you for a one shot conversation and solution.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.