{"info":{"_postman_id":"7e32dd45-0f15-4dcb-8533-64efe28876a3","name":"OpenWeatherMap API","description":"<html><head></head><body><h1 id=\"getting-started\">🔰 Getting Started</h1>\n<p>Welcome to the <strong>OpenWeatherMap API Sample Collection</strong>.</p>\n<p>This project showcases how to send and document API requests using <strong>Postman</strong>. It is designed for learning and portfolio-building, particularly for aspiring <strong>API Technical Writers</strong>.</p>\n<hr>\n<h4 id=\"📌-before-you-begin\">📌 Before You Begin</h4>\n<ol>\n<li><p><strong>Get an API Key:</strong></p>\n<p> Sign up at <a href=\"https://openweathermap.org/city/2643743\">OpenWeatherMap</a> and get your free API key.</p>\n</li>\n<li><p><strong>Set API Key in Postman:</strong></p>\n<ul>\n<li><p>Go to <strong>Collection &gt; Variables</strong> tab</p>\n</li>\n<li><p>Add a variable called <code>API_KEY</code></p>\n</li>\n<li><p>Paste your actual API key as the initial and current value</p>\n</li>\n<li><p>Use <code>{{API_KEY}}</code> in your requests instead of typing the key directly</p>\n</li>\n</ul>\n</li>\n</ol>\n<hr>\n<h4 id=\"📘-whats-covered-in-this-collection\">📘 What's Covered in This Collection</h4>\n<ul>\n<li><p>✅ Get Current Weather by City</p>\n</li>\n<li><p>✅ 5-Day Forecast by City</p>\n</li>\n<li><p>✅ Forward and Reverse Geocoding</p>\n</li>\n<li><p>✅ Sample Error Handling (401, 404, 429)</p>\n</li>\n</ul>\n<p>This is part of a beginner-friendly API writer portfolio project. Enjoy exploring and learning!</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"🔰 Getting Started","slug":"getting-started"}],"owner":"43353117","collectionId":"7e32dd45-0f15-4dcb-8533-64efe28876a3","publishedId":"2sB2cd4J9g","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-04-21T07:08:56.000Z"},"item":[{"name":"🔹 Current Weather","item":[{"name":"📍 Get Current Weather by City","id":"74e16775-360c-45ff-bf4c-685e52189f72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.openweathermap.org/data/2.5/weather?q=Trichy&appid={{}}&units=metric","description":"<p><strong>Endpoint:</strong><br /><code>GET /data/2.5/weather</code></p>\n<p><strong>Query Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>q</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Name of the city (e.g., <code>Trichy</code>, <code>London</code>)</td>\n</tr>\n<tr>\n<td><code>appid</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>Your API key (use <code>{{API_KEY}}</code>)</td>\n</tr>\n<tr>\n<td><code>units</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Units of measurement. Options: <code>standard</code> (default), <code>metric</code>, <code>imperial</code></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example:</strong><br /><code>https://api.openweathermap.org/data/2.5/weather?q=Trichy&amp;appid={{API_KEY}}&amp;units=metric</code></p>\n","urlObject":{"protocol":"https","path":["data","2.5","weather"],"host":["api","openweathermap","org"],"query":[{"key":"q","value":"Trichy"},{"key":"appid","value":"{{}}"},{"key":"units","value":"metric"}],"variable":[]}},"response":[],"_postman_id":"74e16775-360c-45ff-bf4c-685e52189f72"}],"id":"98b1bffb-7933-48dd-a55d-8b8e4fe8d03b","description":"<p>Contains requests to fetch real-time weather data based on city name. Returns temperature, humidity, and weather description.</p>\n","_postman_id":"98b1bffb-7933-48dd-a55d-8b8e4fe8d03b"},{"name":"🔹 Forecasts","item":[{"name":"🌤️ Get 5-Day Forecast by City","id":"6acc721f-25cc-4d04-a1fb-cfedde06852b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.openweathermap.org/data/2.5/forecast?q=trichy&appid={{API_KEY}}&units=metric","description":"<p><strong>Endpoint:</strong><br /><code>GET /data/2.5/forecast</code></p>\n<p><strong>Query Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>q</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>City name (e.g., <code>London</code>)</td>\n</tr>\n<tr>\n<td><code>appid</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>API key (use <code>{{API_KEY}}</code>)</td>\n</tr>\n<tr>\n<td><code>units</code></td>\n<td>string</td>\n<td>❌ No</td>\n<td>Units (<code>standard</code>, <code>metric</code>, <code>imperial</code>)</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example:</strong><br /><code>https://api.openweathermap.org/data/2.5/forecast?q=London&amp;appid={{API_KEY}}&amp;units=metric</code></p>\n","urlObject":{"protocol":"https","path":["data","2.5","forecast"],"host":["api","openweathermap","org"],"query":[{"key":"q","value":"trichy"},{"key":"appid","value":"{{API_KEY}}"},{"key":"units","value":"metric"}],"variable":[]}},"response":[],"_postman_id":"6acc721f-25cc-4d04-a1fb-cfedde06852b"}],"id":"84b6e1a6-9ad7-481f-aee5-200d391e2c2b","description":"<p>Includes 5-day weather forecast data in 3-hour intervals using city name as input.</p>\n","_postman_id":"84b6e1a6-9ad7-481f-aee5-200d391e2c2b"},{"name":"🔹 Geocoding","item":[{"name":"📍 Forward Geocoding by City","id":"ef3f7cdd-80f4-42c7-b91a-6682268a138a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.openweathermap.org/geo/1.0/direct?q=trichy&limit=1&appid={{API_KEY}}","description":"<p><strong>Endpoint:</strong><br /><code>GET /geo/1.0/direct</code></p>\n<p><strong>Query Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>q</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>City name</td>\n</tr>\n<tr>\n<td><code>limit</code></td>\n<td>number</td>\n<td>❌ No</td>\n<td>Max results (default: 5)</td>\n</tr>\n<tr>\n<td><code>appid</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>API key (use <code>{{API_KEY}}</code>)</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example:</strong><br /><code>https://api.openweathermap.org/geo/1.0/direct?q=Trichy&amp;limit=1&amp;appid={{API_KEY}}</code></p>\n","urlObject":{"protocol":"https","path":["geo","1.0","direct"],"host":["api","openweathermap","org"],"query":[{"key":"q","value":"trichy"},{"key":"limit","value":"1"},{"key":"appid","value":"{{API_KEY}}"}],"variable":[]}},"response":[],"_postman_id":"ef3f7cdd-80f4-42c7-b91a-6682268a138a"},{"name":"📍 Reverse Geocoding by Coordinates","id":"29303b13-1ea1-4b10-935d-953011293228","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.openweathermap.org/geo/1.0/reverse?lat=10.7905&lon=78.7047&appid={{API_KEY}}","description":"<p><strong>Endpoint:</strong><br /><code>GET /geo/1.0/reverse</code></p>\n<p><strong>Query Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>lat</code></td>\n<td>number</td>\n<td>✅ Yes</td>\n<td>Latitude</td>\n</tr>\n<tr>\n<td><code>lon</code></td>\n<td>number</td>\n<td>✅ Yes</td>\n<td>Longitude</td>\n</tr>\n<tr>\n<td><code>appid</code></td>\n<td>string</td>\n<td>✅ Yes</td>\n<td>API key</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example:</strong><br /><code>https://api.openweathermap.org/geo/1.0/reverse?lat=10.7905&amp;lon=78.7047&amp;appid={{API_KEY}}</code></p>\n","urlObject":{"protocol":"https","path":["geo","1.0","reverse"],"host":["api","openweathermap","org"],"query":[{"key":"lat","value":"10.7905"},{"key":"lon","value":"78.7047"},{"key":"appid","value":"{{API_KEY}}"}],"variable":[]}},"response":[],"_postman_id":"29303b13-1ea1-4b10-935d-953011293228"}],"id":"ff9381e9-8bb5-4952-a640-69e02c781c18","description":"<p>Allows converting city names to coordinates (forward geocoding) and coordinates to city names (reverse geocoding).</p>\n","_postman_id":"ff9381e9-8bb5-4952-a640-69e02c781c18"},{"name":"🔹 Error Handling","item":[{"name":"🔴 401 Unauthorized – Invalid API key","id":"4836e386-ebf3-44cf-b4a7-1a9cbef59324","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.openweathermap.org/data/2.5/weather?q=Trichy&appid=INVALID_KEY&units=metric","description":"<p><strong>Endpoint:</strong></p>\n<p><code>https://api.openweathermap.org/data/2.5/weather?q=Trichy&amp;appid=INVALID_Key&amp;units=metrics</code></p>\n<p>This simulates a user entering a Invalid API key.</p>\n<p>Expected Response:</p>\n<p>{<br />\"cod\": \"401\",</p>\n<p>\"message\": \"Invalid API key. Please see <a href=\"https://openweathermap.org/faq#error401\">https://openweathermap.org/faq#error401</a> for more info.\"</p>\n<p>}</p>\n","urlObject":{"protocol":"https","path":["data","2.5","weather"],"host":["api","openweathermap","org"],"query":[{"key":"q","value":"Trichy"},{"key":"appid","value":"INVALID_KEY"},{"key":"units","value":"metric"}],"variable":[]}},"response":[],"_postman_id":"4836e386-ebf3-44cf-b4a7-1a9cbef59324"},{"name":"🔴 404 Not Found – Invalid City","id":"3f767b5d-7931-4f27-88dc-8a53856c6393","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.openweathermap.org/data/2.5/weather?q=Fakecity&appid={{}}&units=metric","description":"<p><strong>Endpoint:</strong><br /><code>https://api.openweathermap.org/data/2.5/weather?q=InvalidCity&amp;appid={{API_KEY}}</code></p>\n<p><strong>Description:</strong></p>\n<p>This simulates a user entering a non-existent city name.</p>\n<p>Expected Response:</p>\n<p>{<br />\"cod\": \"404\",</p>\n<p>\"message\": \"city not found\"<br />}</p>\n<blockquote>\n<p>&lt;p &gt;&lt;/p&gt;</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["data","2.5","weather"],"host":["api","openweathermap","org"],"query":[{"key":"q","value":"Fakecity"},{"key":"appid","value":"{{}}"},{"key":"units","value":"metric"}],"variable":[]}},"response":[],"_postman_id":"3f767b5d-7931-4f27-88dc-8a53856c6393"},{"name":"🔴 429 Too Many Requests","id":"2acd25e6-24ed-40d5-8413-8ba9cfb5529f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>**Endpoint:**Same as valid request</p>\n<p>Description:</p>\n<p>This error is returned when the API rate limit is exceeded.</p>\n<p>Typical Response:</p>\n<p>{<br />\"cod\": 429,<br />\"message\": \"You have exceeded the rate limit\"<br />}</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"2acd25e6-24ed-40d5-8413-8ba9cfb5529f"}],"id":"fb72f929-40c4-4c14-a490-2c0e935c5d01","description":"<p>Demonstrates how the API handles invalid input, including missing keys, wrong parameters, and rate limits.</p>\n","_postman_id":"fb72f929-40c4-4c14-a490-2c0e935c5d01"}]}