0

How can I use an api to get all users with a specific text (hashtag) in their user profile field "about me"?

Is this the correct way?

https://mysite/_api/search/query?querytext=%27aboutme:%22*myhashtag*%22%27&sourceid=%27B09A7990-05EA-4AF9-81EF-EDFAB16C4E31%27

How can I search for #myhashtag instead of myhashtag?

1

Try using %23 in place of the hashtag. That is the ASCII representation, the same way %22 replaces the quotes in your example...

Updated query:

https://mysite/_api/search/query?querytext=%27aboutme:%22%23myhashtag*%22%27&sourceid=%27B09A7990-05EA-4AF9-81EF-EDFAB16C4E31%27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.