title: How to fetch specific response from api response and use it with deep linking swift 5
body: <p>I'm Receiving Response from api using post method like this <br /></p>
  <p>'Success{ <br />
  shortlink = pAHJt7;<br />
  status = 200;<br />
  } '<br /></p>
  <p>I want to use only shortlink with my url to share using deep linking concept.<br />
  Here is my code of post method in which I'm getting response from api<br /></p>
  <pre><code>    func postRequest(latitude:Double,longitude:Double) {
          guard let url = URL(string: &quot;http://i.Mallangtech.com/api/Url&quot;) else{
              
              return
          }
          var request = URLRequest(url: url)
          request.httpMethod = &quot;POST&quot;
          request.setValue(&quot;application/Json&quot;, forHTTPHeaderField: &quot;Content-Type&quot;)
          let body:[String: AnyHashable] = [
              &quot;status&quot;: 200,
              &quot;shortlink&quot;:&quot;okko&quot;]
          request.httpBody = try? JSONSerialization.data(withJSONObject: body, options: .fragmentsAllowed)
          
          //hiting api
          
          let task = URLSession.shared.dataTask(with: request) { data, _, Error in
              guard let data = data, Error == nil else {
                  return
              }
  
                  do{
              
                  let response = try JSONSerialization.jsonObject(with: data, options: .allowFragments)
              print(&quot;Success\(response)&quot;)
                  
              }
              catch{
                  print (error)
              }
              }
          task.resume()
    
      }
  
    
  
       ```
  
  </code></pre>