title: Cannot change the parameters in the API endpoint key
body: <p>I am a new Xamarin developer. I am trying to integrate a data API to my Xamarin forms cross-platform mobile app.
  Following is the site that I get my URL endpoint: <a href="https://tidesandcurrents.noaa.gov/api-helper/url-generator.html" rel="nofollow noreferrer">navigate to the website</a></p>
  <p>Following is the API endpoint I get from the above site: <code>https://api.tidesandcurrents.noaa.gov/api/prod/datagetterdate=latest&amp;station=8518750&amp;product=air_temperature&amp;datum=MTL&amp;time_zone=gmt&amp;units=metric&amp;format=json</code></p>
  <p>The API endpoint URL sends back data when based on the <code>weather station ID</code>parameter in the API endpoint. The problem is that it is hardcoded in the API endpoint itself. Therefore, I must change the whole API endpoint when I need to request data from another <code>weather station ID</code>.</p>
  <p>I have no idea how to send the stationID as a variable in the same URL, like in following end point I got from <strong>openweather API service</strong>:</p>
  <p><code>http://api.openweathermap.org/data/2.5/weatherlat{location.Latitude}&amp;lon{location.Longitude}&amp;appid=d6533ef259a2c612eb50836b198fc366&amp;units=metric</code></p>
  <p>In the above API, I can send the <code>longitude</code> and <code>latitude</code> as parameters via the API key and get relevant information. But in my API key, I cannot see such a way to send a 'StationID' as a parameter.</p>
  <p>Can somebody please help me to modify my following code to send the 'stationID' as a variable and get data dynamically based on the <code>station ID</code> please?</p>
  <p><em><strong>Following is my code for getting API data send them to the .xaml front end.</strong></em></p>
  <pre><code>private async void GetTideInfo()
      {
          var url = $&quot;https://api.tidesandcurrents.noaa.gov/api/prod/datagetter?date=latest&amp;station=8518750&amp;product=air_temperature&amp;datum=MTL&amp;time_zone=gmt&amp;units=metric&amp;format=json&quot;;
  
          var result = await ApiCaller.Get(url);
  
          if (result.Successful)
          {
  
                      var tidalInfo = JsonConvert.DeserializeObject&lt;TidleRoot&gt;(result.Response);
  
                      meanTideTxt.Text = tidalInfo.data[0].v + &quot; m&quot;;
          }
          else
          {
              await DisplayAlert(&quot;Tidal data&quot;, &quot;No tidal data found&quot;, &quot;OK&quot;);
          }
      }
  </code></pre>
  <p>Thanks in advance for everybody who volunteer to solve my problem.</p>