« Catégorie:Api » : différence entre les versions

Aucun résumé des modifications
Balise : Révoqué
Contenu remplacé par « category:Dev »
Balises : Contenu remplacé Révocation manuelle
 
Ligne 1 : Ligne 1 :
==== openstreetmap ====
Recherche localisation
<syntaxhighlight lang="bash" copy>
curl "https://nominatim.openstreetmap.org/search?q=Eiffel+Tower&format=json" | jq
</syntaxhighlight>
==== Devises ====
Exchange Rates
<syntaxhighlight lang="bash" copy>
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&current_weather=true" | jq '.current_weather'
</syntaxhighlight>
[[category:Dev]]
[[category:Dev]]