Daily Front_Minhhk

postman (OpenWeather API) 본문

Code개발일지

postman (OpenWeather API)

Minhhk 2022. 12. 5. 16:50

 

 

Postman API Platform | Sign Up for Free

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.

www.postman.com

 

 

Сurrent weather and forecast - OpenWeatherMap

Access current weather data for any location on Earth including over 200,000 cities! The data is frequently updated based on the global and local weather models, satellites, radars and a vast network of weather stations. how to obtain APIs (subscriptions w

openweathermap.org

 


 

 

api.openweathermap.org/data/2.5/weather?id={city id}&appid={your api key}

 

 

중괄호를 없애고 city id 와 api key를 넣으면 실행이 된다 

위와 같이 JSON 형식 선택,, 

GET -> 서울 아이디 1835848 -> 서울 데이터를 받아온다

 

'Code개발일지' 카테고리의 다른 글

[REACT] StatesAirline Server  (0) 2022.12.08
[React] 클라이언트 AJAX,, useEffect( )  (0) 2022.12.07
REST API  (0) 2022.12.02
HTTP / 네트워크  (0) 2022.11.30
[React] props, state  (0) 2022.11.30