[Python] Why do I get a HTTP Error 403: Forbidden when trying to use the OECD API

Discussão em 'Python' iniciado por Stack, Abril 1, 2025.

  1. Stack

    Stack Membro Participativo

    I'm just trying to use the OECD API to pull a couple of datasets, nothing dramatic, but when I even use their example, I get an error message with HTTP Error 403: Forbidden.

    The documentation is here, and the example code I've taken directly from there is:

    import pandas as pd

    url = 'https://sdmx.oecd.org/public/rest/data/OECD.SDD.STES,DSD_STES@DF_CLI/.M.LI...AA...H?startPeriod=2023-02&dimensionAtObservation=AllDimensions&format=csvfilewithlabels'
    df = pd.read_csv(url)


    As far as I can tell, there's no API key required or anything, so any insight would be much appreciated

    Continue reading...

Compartilhe esta Página