https://github.com/fablecode/wikia-core
Wikia is a C# .Net 6.0 library that makes it easy to access Wiki data.
https://github.com/fablecode/wikia-core
nuget wikia wikia-api wikiapi
Last synced: 11 months ago
JSON representation
Wikia is a C# .Net 6.0 library that makes it easy to access Wiki data.
- Host: GitHub
- URL: https://github.com/fablecode/wikia-core
- Owner: fablecode
- License: mit
- Created: 2019-03-28T15:28:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-18T06:14:51.000Z (over 3 years ago)
- Last Synced: 2025-05-09T01:06:18.413Z (11 months ago)
- Topics: nuget, wikia, wikia-api, wikiapi
- Language: C#
- Homepage:
- Size: 126 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Wikia-Core
Wikia is a C# .Net 6.0 library that provides resource oriented interfaces and clients for the Wikia Api.
## How?
Every wiki has its API accessible through URL: {wikidomain}/api/v1/.
For example:
1. [http://www.wikia.com/api/v1/](http://www.wikia.com/api/v1/)
2. [http://yugioh.fandom.com/api/v1/](http://yugioh.fandom.com/api/v1/)
3. [http://naruto.fandom.com/api/v1/](http://naruto.fandom.com/api/v1/)
4. [http://elderscrolls.fandom.com/api/v1/](http://elderscrolls.fandom.com/api/v1/)
## NuGet
PM> Install-Package wikia.core
## Quickstart
```csharp
// wiki domain
string domainUrl = "http://yugioh.fandom.com";
// Article endpoint
IWikiArticleList articles = new WikiArticleList(domainUrl);
// Get all Yugioh card tips ordered alphabetically
var result = articles.AlphabeticalList("Card Tips");
```
##### To get information about a specific article
```csharp
// Get articles by id
IWikiArticle article = new WikiArticle(domainUrl);
var articleId = 50
// Detail info
var articleDetailsResult = article.Details(articleId);
```
## Endpoints
For a list of all endpoints, visit wiki api using {wikidomain}/api/v1/ format.
Example: For Yugioh Wiki Api endpoints, i'd use [http://yugioh.fandom.com/api/v1/](http://yugioh.wikia.com/api/v1/).
Notice the domain is "http://yugioh.fandom.com" and the suffix is "/api/v1/"
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details.