[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10266":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":34,"discoverSource":35},10266,"pokeapi","PokeAPI\u002Fpokeapi","PokeAPI","The Pokémon API","https:\u002F\u002Fpokeapi.co",null,"Python",5228,1138,70,187,0,2,14,88,9,84.97,"BSD 3-Clause \"New\" or \"Revised\" License",false,"master",[26,27,28,29,5,30],"api","beginner-friendly","graphql","hacktoberfest","pokemon","2026-06-12 04:00:49","\u003Cbr\u002F>\n\n\u003Cdiv align=\"center\">\n\t\u003Cimg height=\"200\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FPokeAPI\u002Fmedia\u002Fmaster\u002Flogo\u002Fpokeapi.svg?sanitize=true\" alt=\"PokeAPI\">\n\n[![build status](https:\u002F\u002Fimg.shields.io\u002Fcircleci\u002Fproject\u002Fgithub\u002FPokeAPI\u002Fpokeapi\u002Fmaster.svg)](https:\u002F\u002Fcircleci.com\u002Fgh\u002FPokeAPI\u002Fpokeapi)\n[![data status](https:\u002F\u002Fimg.shields.io\u002Fcircleci\u002Fbuild\u002Fgithub\u002FPokeAPI\u002Fapi-data?label=data)](https:\u002F\u002Fgithub.com\u002FPokeAPI\u002Fapi-data)\n[![deploy status](https:\u002F\u002Fimg.shields.io\u002Fcircleci\u002Fbuild\u002Fgithub\u002FPokeAPI\u002Fdeploy?label=deploy)](https:\u002F\u002Fgithub.com\u002FPokeAPI\u002Fdeploy)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FPokeAPI\u002Fpokeapi.svg)](https:\u002F\u002Fgithub.com\u002FPokeAPI\u002Fpokeapi\u002Fblob\u002Fmaster\u002FLICENSE.md)\n[![Backers on Open Collective](https:\u002F\u002Fopencollective.com\u002Fpokeapi\u002Fbackers\u002Fbadge.svg)](https:\u002F\u002Fopencollective.com\u002Fpokeapi)\n[![Sponsors on Open Collective](https:\u002F\u002Fopencollective.com\u002Fpokeapi\u002Fsponsors\u002Fbadge.svg)](https:\u002F\u002Fopencollective.com\u002Fpokeapi)\n\n\u003Cbr\u002F>\n\n\u003C\u002Fdiv>\n\n\u003Cbr\u002F>\n\nA RESTful API for Pokémon - [pokeapi.co](https:\u002F\u002Fpokeapi.co)\n\n> Beta GraphQL support is rolling out! Check out the [GraphQL paragraph](#graphql) for more info.\n\n\n## Table of Contents\n\n- [Setup](#setup)\n- [Database setup](#database-setup)\n- [Docker and Compose](#docker-and-compose)\n- [GraphQL](#graphql)\n- [Kubernetes](#kubernetes)\n- [Wrappers](#wrappers)\n- [Donations](#donations)\n- [Join Us On Slack!](#join-us-on-slack)\n- [Contributing](#contributing)\n\n## Setup \u003Ca id=\"setup\">\u003C\u002Fa> &nbsp; [![pyVersion313](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-3.13-blue.svg)](https:\u002F\u002Fwww.python.org\u002Fdownloads\u002Frelease\u002Fpython-3137\u002F)\n\n- Download this source code into a working directory, be sure to use the flag `--recurse-submodules` to clone also our submodules.\n\n- Install the requirements using pip:\n\n    ```sh\n    make install\n    # This will install all the required packages and libraries for using PokeAPI\n    ```\n\n- Set up the local development environment using the following command:\n\n    ```sh\n    make setup\n    ```\n\n- Run the server on port `8000` using the following command:\n\n    ```sh\n    make serve\n    ```\n\n## Database setup\n\nTo build or rebuild the database by applying any CSV file update, run\n\n```sh\nmake build-db\n```\n\nVisit [localhost:8000\u002Fapi\u002Fv2\u002F](http:\u002F\u002Flocalhost:8000\u002Fapi\u002Fv2\u002F) to see the running API!\n\nEach time the `build-db` script is run, it will iterate over each table in the database, wipe it, and rewrite each row using the data found in data\u002Fv2\u002Fcsv.\n\nIf you ever need to wipe the database use this command:\n\n```sh\nmake wipe-sqlite-db\n```\n\nIf the database schema has changed, generate any outstanding migrations and apply them\n\n```sh\nmake make-migrations\nmake migrate\n```\n\nRun `make help` to see all tasks.\n\n## Docker and Compose \u003Ca id=\"docker-and-compose\">\u003C\u002Fa> &nbsp; [![docker hub](https:\u002F\u002Fimg.shields.io\u002Fdocker\u002Fv\u002Fpokeapi\u002Fpokeapi?label=tag&sort=semver)](https:\u002F\u002Fhub.docker.com\u002Fr\u002Fpokeapi\u002Fpokeapi)\n\nThere is also a multi-container setup, managed by [Docker Compose V2](https:\u002F\u002Fdocs.docker.com\u002Fcompose\u002F). This setup allows you to deploy a production-like environment, with separate containers for each service, and is recommended if you need to simply spin up PokéAPI.\n\nStart everything by\n\n```sh\nmake docker-setup\n```\n\nIf you don't have `make` on your machine you can use the following commands\n\n```sh\ndocker compose up -d\ndocker compose exec -T app python manage.py migrate --settings=config.docker-compose\ndocker compose exec -T app sh -c 'echo \"from data.v2.build import build_all; build_all()\" | python manage.py shell --settings=config.docker-compose'\n```\n\nBrowse [localhost\u002Fapi\u002Fv2\u002F](http:\u002F\u002Flocalhost\u002Fapi\u002Fv2\u002F) or [localhost\u002Fapi\u002Fv2\u002Fpokemon\u002Fbulbasaur\u002F](http:\u002F\u002Flocalhost\u002Fapi\u002Fv2\u002Fpokemon\u002Fbulbasaur\u002F) on port `80`.\n\nTo rebuild the database and apply any CSV file updates, run\n\n```sh\nmake docker-build-db\n```\n\nIf the database schema has changed, generate the migrations and apply those\n\n```sh\nmake docker-make-migrations\nmake docker-migrate\n```\n\n## GraphQL \u003Ca id=\"graphql\">\u003C\u002Fa> &nbsp; \u003Ca href=\"ttps:\u002F\u002Fgithub.com\u002Fhasura\u002Fgraphql-engine\">\u003Cimg height=\"29px\" src=\"https:\u002F\u002Fgraphql-engine-cdn.hasura.io\u002Fimg\u002Fpowered_by_hasura_blue.svg\"\u002F>\u003C\u002Fa>\n\nWhen you start PokéAPI with the above Docker Compose setup, an [Hasura Engine](https:\u002F\u002Fgithub.com\u002Fhasura\u002Fgraphql-engine) server is started as well. It's possible to track all the PokeAPI tables and foreign keys by simply\n\n```sh\n# hasura cli needs to be installed and available in your $PATH: https:\u002F\u002Fhasura.io\u002Fdocs\u002Flatest\u002Fgraphql\u002Fcore\u002Fhasura-cli\u002Finstall-hasura-cli.html\n# hasura cli's version has to greater than v2.48.1\nmake hasura-apply\n```\n\nWhen finished browse http:\u002F\u002Flocalhost:8080 and you will find the admin console. The GraphQL endpoint will be hosted at http:\u002F\u002Flocalhost:8080\u002Fv1\u002Fgraphql.\n\nA free public GraphiQL console is browsable at the address https:\u002F\u002Fbeta.pokeapi.co\u002Fgraphql\u002Fconsole\u002F. The relative GraphQL endpoint is accessible at https:\u002F\u002Fbeta.pokeapi.co\u002Fgraphql\u002Fv1beta\n\nA set of examples is provided in the directory [\u002Fgraphql\u002Fexamples](.\u002Fgraphql\u002Fexamples) of this repository.\n\n## Kubernetes \u003Ca id=\"kubernetes\">\u003C\u002Fa> &nbsp; [![Build Docker image and create k8s with it](https:\u002F\u002Fgithub.com\u002FPokeAPI\u002Fpokeapi\u002Factions\u002Fworkflows\u002Fdocker-k8s.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FPokeAPI\u002Fpokeapi\u002Factions\u002Fworkflows\u002Fdocker-k8s.yml)\n\n[Kustomize](https:\u002F\u002Fkubernetes.io\u002Fdocs\u002Ftasks\u002Fmanage-kubernetes-objects\u002Fkustomization\u002F) files are provided in the folder https:\u002F\u002Fgithub.com\u002FPokeAPI\u002Fpokeapi\u002Ftree\u002Fmaster\u002FResources\u002Fk8s\u002Fkustomize\u002Fbase\u002F. Create and change your secrets:\n\n```sh\ncp Resources\u002Fk8s\u002Fkustomize\u002Fbase\u002Fsecrets\u002Fpostgres.env.sample Resources\u002Fk8s\u002Fkustomize\u002Fbase\u002Fsecrets\u002Fpostgres.env\ncp Resources\u002Fk8s\u002Fkustomize\u002Fbase\u002Fsecrets\u002Fgraphql.env.sample Resources\u002Fk8s\u002Fkustomize\u002Fbase\u002Fsecrets\u002Fgraphql.env\ncp Resources\u002Fk8s\u002Fkustomize\u002Fbase\u002Fconfig\u002Fpokeapi.env.sample Resources\u002Fk8s\u002Fkustomize\u002Fbase\u002Fconfig\u002Fpokeapi.env\n# Edit the newly created files\n```\n\nConfigure `kubectl` to point to a cluster and then run the following commands to start a PokéAPI service.\n\n```sh\nkubectl apply -k Resources\u002Fk8s\u002Fkustomize\u002Fbase\u002F\nkubectl config set-context --current --namespace pokeapi # (Optional) Set pokeapi ns as the working ns\n# Wait for the cluster to spin up\nkubectl exec --namespace pokeapi deployment\u002Fpokeapi -- python manage.py migrate --settings=config.docker-compose # Migrate the DB\nkubectl exec --namespace pokeapi deployment\u002Fpokeapi -- sh -c 'echo \"from data.v2.build import build_all; build_all()\" | python manage.py shell --settings=config.docker-compose' # Build the db\nkubectl wait --namespace pokeapi --timeout=120s --for=condition=complete job\u002Fload-graphql # Wait for Graphql configuration job to finish\n```\n\nThis k8s setup creates all k8s resources inside the _Namespace_ `pokeapi`, run `kubectl delete namespace pokeapi` to delete them. It also creates a _Service_ of type `LoadBalancer` which is exposed on port `80` and `443`. Data is persisted on `12Gi` of `ReadWriteOnce` volumes.\n\n## Wrappers\n\n| Official wrapper | Repository | Features |\n| --- | --- | --- |\n| Node server-side | [PokeAPI\u002Fpokedex-promise-v2](https:\u002F\u002Fgithub.com\u002FPokeAPI\u002Fpokedex-promise-v2) | _Auto caching_ |\n| Browser client-side | [PokeAPI\u002Fpokeapi-js-wrapper](https:\u002F\u002Fgithub.com\u002FPokeAPI\u002Fpokeapi-js-wrapper) | _Auto caching_, _Image caching_ |\n| Java\u002FKotlin | [PokeAPI\u002Fpokekotlin](https:\u002F\u002Fgithub.com\u002FPokeAPI\u002Fpokekotlin) | |\n| Python 2\u002F3 | [PokeAPI\u002Fpokepy](https:\u002F\u002Fgithub.com\u002FPokeAPI\u002Fpokepy) | _Auto caching_ |\n| Python 3 | [PokeAPI\u002Fpokebase](https:\u002F\u002Fgithub.com\u002FPokeAPI\u002Fpokebase) | _Auto caching_, _Image caching_ |\n\n|Wrapper|Repository|Features|\n|---|---|---|\n|.Net Standard |[mtrdp642\u002FPokeApiNet](https:\u002F\u002Fgithub.com\u002Fmtrdp642\u002FPokeApiNet)|Auto caching |\n|Dart|[prathanbomb\u002Fpokedart](https:\u002F\u002Fgithub.com\u002Fprathanbomb\u002Fpokedart)| |\n|Go|[mtslzr\u002Fpokeapi-go](https:\u002F\u002Fgithub.com\u002Fmtslzr\u002Fpokeapi-go)|Auto caching |\n|Go|[JoshGuarino\u002FPokeGo](https:\u002F\u002Fgithub.com\u002FJoshGuarino\u002FPokeGo) |Auto caching |\n|Haxe|[KinoCreatesGames\u002Fpoke-api](https:\u002F\u002Fgithub.com\u002FKinoCreatesGames\u002Fpoke-api) |Auto caching |\n|PHP |[lmerotta\u002Fphpokeapi](https:\u002F\u002Fgithub.com\u002Flmerotta\u002Fphpokeapi)|Auto caching, lazy loading |\n|PowerShell|[Celerium\u002FPokeAPI-PowerShellWrapper](https:\u002F\u002Fgithub.com\u002FCelerium\u002FPokeAPI-PowerShellWrapper)| |\n|Python|[beastmatser\u002Faiopokeapi](https:\u002F\u002Fgithub.com\u002Fbeastmatser\u002Faiopokeapi)|Auto caching, asynchronous |\n|Ruby|[rdavid1099\u002Fpoke-api-v2](https:\u002F\u002Fgithub.com\u002Frdavid1099\u002Fpoke-api-v2)| |\n|Rust|[lunik1\u002Fpokerust](https:\u002F\u002Fgitlab.com\u002Flunik1\u002Fpokerust)|Auto caching |\n|Scala |[juliano\u002Fpokeapi-scala](https:\u002F\u002Fgithub.com\u002Fjuliano\u002Fpokeapi-scala)|Auto caching |\n|Spring Boot |[dlfigueira\u002Fspring-pokeapi](https:\u002F\u002Fgithub.com\u002Fdlfigueira\u002Fspring-pokeapi)|Auto caching |\n|Swift |[kinkofer\u002FPokemonAPI](https:\u002F\u002Fgithub.com\u002Fkinkofer\u002FPokemonAPI)| |\n|Typescript server-side\u002Fclient-side|[Gabb-c\u002FPokenode-ts](https:\u002F\u002Fgithub.com\u002FGabb-c\u002Fpokenode-ts)|Auto caching |\n\n## Donations\n\nHelp to keep PokéAPI running! If you're using PokéAPI as a teaching resource or for a project, consider sending us a donation to help keep the service up. We get 1+ billion requests a month!\n\nThank you to all our backers! [Become a backer](https:\u002F\u002Fopencollective.com\u002Fpokeapi#backer)\n\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fpokeapi#backers\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fpokeapi\u002Fbackers.svg?width=890\">\u003C\u002Fa>\n\n## Join Us On Slack!\n\n> **Warning**\n> Currently no maintainer has enough free time to support the community on Slack. Our Slack is in an unmaintained status.\n\nHave a question or just want to discuss new ideas and improvements? Hit us up on Slack. ~~Consider talking with us here before creating a new issue.~~\nThis way we can keep issues here a bit more organized and helpful in the long run. Be excellent to each other :smile:\n\n[Sign up](https:\u002F\u002Fjoin.slack.com\u002Ft\u002Fpokeapi\u002Fshared_invite\u002Fzt-38w145rww-I_ROYnZME2n1c7mQXppEAQ) easily!\n\nOnce you've signed up visit [PokéAPI on Slack](https:\u002F\u002Fpokeapi.slack.com)\n\n## Contributing\n\nThis project exists thanks to all the people who [contribute](https:\u002F\u002Fgithub.com\u002FPokeAPI\u002Fpokeapi\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md)\n\n\u003Ca href=\"graphs\u002Fcontributors\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fpokeapi\u002Fcontributors.svg?width=890\" \u002F>\u003C\u002Fa>\n\nAll contributions are welcome: bug fixes, data contributions, and recommendations.\n\nPlease see the [issues on GitHub](https:\u002F\u002Fgithub.com\u002FPokeAPI\u002Fpokeapi\u002Fissues) before you submit a pull request or raise an issue, someone else might have beat you to it.\n\nTo contribute to this repository:\n\n- [Fork the project to your own GitHub profile](https:\u002F\u002Fhelp.github.com\u002Farticles\u002Ffork-a-repo\u002F)\n\n- Download the forked project using git clone:\n\n    ```sh\n    git clone --recurse-submodules git@github.com:\u003CYOUR_USERNAME>\u002Fpokeapi.git\n    ```\n\n- Create a new branch with a descriptive name:\n\n    ```sh\n    git checkout -b my_new_branch\n    ```\n\n- Write some code, fix something, and add a test to prove that it works. *No pull request will be accepted without tests passing, or without new tests if new features are added.*\n\n- Commit your code and push it to GitHub\n\n- [Open a new pull request](https:\u002F\u002Fhelp.github.com\u002Farticles\u002Fcreating-a-pull-request\u002F) and describe the changes you have made.\n\n- We'll accept your changes after review.\n\nSimple!\n","PokeAPI 是一个提供宝可梦数据的RESTful API。它使用Python编写，支持GraphQL查询（测试版），并且拥有庞大的宝可梦数据库，包括精灵、技能、道具等信息。项目具有友好的开发者文档和易于上手的特点，同时支持通过Docker进行快速部署。适用于游戏开发、教育软件或任何需要集成宝可梦相关信息的应用场景中。","2026-06-11 03:27:29","top_topic"]