fac26 / Dominic_Natalia_http

This World GeoData app draws statistics from two different APIs on countries around the world. Created by Natalia Rusu and Dominic Simpson
0 stars 0 forks source link

find API #2

Closed nataliarusu closed 2 years ago

nataliarusu commented 2 years ago

find free APIs for the project

nataliarusu commented 2 years ago

@DominicSimpson

  1. we can display the bitcoin currency on our project. To achieve this we should create a "get bitcoin value now" button that will return the bitcoin currency to the current time. The API link: https://api.coindesk.com/v1/bpi/currentprice.json
  2. we can display the currency exchange, a user enters the 'amount and currency from' and 'currency to', and as a result, the user gets the currency exchange displayed on our project. The API is https://rapidapi.com/natkapral/api/currency-converter5/details. The problem is request has been blocked by CORS policy: No 'Access-Control-Allow-Origin'_. It might be the API key is required.
nataliarusu commented 2 years ago

@DominicSimpson

  1. since you suggested that you would like the project to be about countries we can use this API https://restcountries.com/v3.1/name/. I've tested it already. what we get back is information about the country ['GB', 'UK', 'Great Britain'], area: 242900, borders: ['IRL'], capital: ['London']car: {signs: Array(1), side: 'left'}, continents: ['Europe'] currencies: {GBP: {…}}, languages: {eng: 'English'} name: {common: 'United Kingdom', official: 'United Kingdom of Great Britain and Northern Ireland', population: 67215293 {…}} population: 67215293
nataliarusu commented 2 years ago

@DominicSimpson

Our project should reflect a mashup of different data

  1. we can try to use https://documenter.getpostman.com/view/1134062/T1LJjU52#4829d16f-0f4e-43ec-886e-68ebad1221d8 and get the data about cities of the country a user has chosen.

Are you happy to use APIs 3 and 4?

DominicSimpson commented 2 years ago

I'm happy to start with 3 and 4.

nataliarusu commented 2 years ago

Great, thank you, Dominic.