[Python] using API in QGIS

Discussão em 'Python' iniciado por Stack, Março 29, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to use data from the Fogo Cruzado API, which uses JWT pattern, available at https://api.fogocruzado.org.br/docs

    My intention is to obtain the polygons of the areas dominated by factions or militias and load these polygons into QGIS, this data can be viewed at https://fogocruzado.org.br/mapadosgruposarmados I have little experience using APIs, what I have managed to do so far was to register on the Fogo Cruzado website to obtain a login and password, I created the following script within QGIS to obtain the token insert the image description here [​IMG]

    but from there I have been unable to advance.

    The API documentation gives examples of data from states, municipalities and occurrences but does not provide an example of how to load the areas dominated by factions/militias, which is exactly what I am interested in.

    Continue reading...

Compartilhe esta Página