API Request URL for listing the articles within a GitHub repo wiki #102891
-
Select Topic AreaQuestion BodyI would like to get a list of wiki articles that are contained within a GitHub wiki. I can't find any documentation of this on the REST API docs, nor does appending |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
Here's a step-by-step approach using the GitHub REST API:
Please note that GitHub's APIs might have been updated after my last knowledge update in January 2022, and it's a good idea to check the latest GitHub API documentation for any new features or changes. As an alternative, consider using the GitHub GraphQL API, as it might offer more flexibility in querying for specific data. The GraphQL API allows you to request only the data you need, which can be beneficial for complex queries. |
Beta Was this translation helpful? Give feedback.
-
Hello dkt, thanks for the response to this. Unfortunately, your suggestion didn't work, likewise I didn't find anything on the REST API docs to suggest that the structure or format would change. There's no presence of the wiki article markdown files in the output. However, I recognize that this might be as a result of the repository having a Despite the repository having a wiki with an article, there is no presence of "wiki" or "tamper" in the output. |
Beta Was this translation helpful? Give feedback.
-
Hi @theballaam96, Thanks so much for reaching out in our community. Unfortunately, there are no APIs for repository wikis, only a |
Beta Was this translation helpful? Give feedback.
-
I've ran into this problem too so I made this tool: /~https://github.com/Netflix/Hystrix/wiki => https://wiki.forgithub.com/Netflix/Hystrix/wiki Soon, I'll also make it a part of the https://uithub.com website so you can browse it as raw text (Good for LLM) but for now you can use other CLIs for that. |
Beta Was this translation helpful? Give feedback.
Hi @theballaam96,
Thanks so much for reaching out in our community. Unfortunately, there are no APIs for repository wikis, only a
has_wiki
field when looking at a repository that identifies if a repository has a wiki. If you would like, I can open a feature request for this on your behalf.