How to get a tag's description (excerpt) via the Stack Exchange API?
Asked
Active
Viewed 186 times
0
-
Call [`api.stackexchange.com/2.2/tags/php/wikis?site=stackoverflow&filter=!6JEVX4hBMf8fz`](//api.stackexchange.com/2.2/tags/php/wikis?site=stackoverflow&filter=!6JEVX4hBMf8fz) (replace `php` with the tag you want. excerpt is the description, body is the wiki). Play with it in [the API documentation](https://api.stackexchange.com/docs/wikis-by-tags). – double-beep Apr 06 '20 at 06:01
-
I have another question. I need to have list of tags with 3 fields: 1) tag_name 2) tag_description 3) counter_of_posts. Since counter_of_posts is a field of tag-object and "tag_description" (excerpt) is a field of tag_wiki - how can I get needed information through 1 query? I know how to do it in SQL - SELECT from 2 TABLES, but here? Seperate question created - https://stackoverflow.com/questions/61055161/stack-exchange-api-how-to-get-information-from-different-objects-in-1-query – max stripakoff Apr 06 '20 at 08:25
1 Answers
0
Call
api.stackexchange.com/2.2/tags/php/wikis?site=stackoverflow&filter=!6JEVX4hBMf8fz
(replacephp
with the tag you want. excerpt is the description, body is the wiki). Play with it in the API documentation.
Thanks to double-beep!

double-beep
- 5,031
- 17
- 33
- 41

max stripakoff
- 13
- 4