Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

There seems to be no way of getting all images for certain forms?

未关闭
#1,281 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
领域
api

调研方向

先从 pokemon/deerling 和 pokemon-form/10068-10070 的 API 响应开始,然后将其与 PokeAPI/sprites 仓库中的对应文件进行比较。确定替代形态的图像是如何表示和提供的;当受影响的形态提供一种一致且有文档说明的方式来获取其可用图像时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

I apologize if this mentioned somewhere, I'm new to the the API. But I didn't see any clear answer to this in the docs or in existing issues. It seems like there's images for certain forms that are not exposed by the API directly. I namely noticed this with Deerling, but it almost certainly applies elsewhere

If you check https://pokeapi.co/api/v2/pokemon/deerling, the sprites field only has data for the default (spring) form. The Pokemon has 3 other forms however:

Each of these forms does have a sprites field as well, but they contain considerably less images than the pokemon endpoint provides, only providing the default sprites

Despite this, images for other platforms DO exist for these forms. Such as:

But it seems like these images are not exposed by the API? The pokemon-form endpoints all point back to the same base form (spring), and none of the alternate forms seem to have dedicated pokemon entries

I suspect this issue applies to all Pokemon with multiple forms where the forms do not have dedicated pokemon entries, not just Deerling. I also noticed this same issue with Flabebe, as if has multiple forms and images for other platforms but seemingly no way to get the images from the API?

主要语言
Python
星标
5.4k
派生
1.2k
平均合并
2 天 4 小时
30 天内合并 PR
15

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PokeAPI/pokeapi 的其他 Issue

查看 PokeAPI/pokeapi 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。