« Catégorie:Api » : différence entre les versions
Aucun résumé des modifications Balise : Révoqué |
Aucun résumé des modifications Balise : Révoqué |
||
| Ligne 9 : | Ligne 9 : | ||
<syntaxhighlight lang="bash" copy> | <syntaxhighlight lang="bash" copy> | ||
curl "https://api.exchangerate-api.com/v4/latest/EUR" | jq '.rates.USD' | curl "https://api.exchangerate-api.com/v4/latest/EUR" | jq '.rates.USD' | ||
</syntaxhighlight> | |||
==== Météo ==== | |||
open-meteo.com | |||
<syntaxhighlight lang="bash" copy> | |||
curl -s "https://api.open-meteo.com/v1/forecast?latitude=48.85&longitude=2.35¤t_weather=true" | jq '.current_weather' | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[category:Dev]] | [[category:Dev]] | ||