Skip to content

AKShare 接口问题报告 #7180

@Jack-yang-star

Description

@Jack-yang-star

1.已阅读AKshare接口文档,发现接口macro_china_nbs_nation的目标地址已经更改,导致接口请求失败
Image
对应地址已经被修改成:https://data.stats.gov.cn/dg/website/page.html#/pc/national/monthData

2.目前AKshare版本是:1.18.49

3.操作系统:64位

4.python版本:3.13

5.调用代码:
def fetch_cpi(datespan):
cpi_df = ak.macro_china_nbs_nation(kind='月度数据',path='价格指数>居民消费价格分类指数(上年同月=100)>全国居民消费价格分类指数(上年同月=100)(2021-2025)',period=datespan)
return cpi_df
cpi_df = fetch_cpi("202504-202512")
6. 报错截图
Image

7.期望修复此问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions