title: How to create a post request in python with payload request?
body: <p>I want to create a post request like the following picture in python that return data as I received in a browser :</p>
  <p><a href="https://i.stack.imgur.com/I7fLD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I7fLD.png" alt="enter image description here" /></a></p>
  <p>And cookie is as follow:
  <a href="https://i.stack.imgur.com/Uak80.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uak80.png" alt="enter image description here" /></a>
  For this, I have written the following code:</p>
  <pre><code>import requests
  
  url = &quot;https://flight-api-v1.utravs.com/Flight/statistic/FlightPriceStatistics&quot;
  data = {
      &quot;minimumPriceStatisticRequest&quot;: {
          &quot;$id&quot;: 1,
          &quot;availabilityRequest&quot;: {
              &quot;$id&quot;: 2,
              &quot;segments&quot;: {
                  &quot;$id&quot;: 3,
                  &quot;$values&quot;: [
                      {
                          &quot;$id&quot;: 4,
                          &quot;destination&quot;: &quot;KIH-Kish-all&quot;,
                          &quot;origin&quot;: &quot;THR-Tehran-all&quot;,
                          &quot;departureDateTime&quot;: &quot;2021-12-02T00:00:00.000Z&quot;,
                          &quot;uniqueIndex&quot;: 0
                      }
                  ]
              },
              &quot;passengers&quot;: {
                  &quot;$id&quot;: 5,
                  &quot;$values&quot;: [
                      {
                          &quot;$id&quot;: 6,
                          &quot;type&quot;: 1,
                          &quot;quantity&quot;: 1,
                          &quot;optionalServices&quot;: {
                              &quot;$id&quot;: 7,
                              &quot;$values&quot;: []
                          }
                      }
                  ]
              },
              &quot;travelDetails&quot;: {
                  &quot;$id&quot;: 8,
                  &quot;cabinType&quot;: 1,
                  &quot;airTripType&quot;: 1,
                  &quot;stopQuantityType&quot;: 3,
                  &quot;pricingSourceType&quot;: 3
              },
              &quot;availabilityType&quot;: 0
          },
          &quot;minRange&quot;: 10,
          &quot;maxRange&quot;: 10
      }
  }
  x = requests.post(url, data=data)
  print(x.text)
  </code></pre>
  <p>But I don't receive the right information from the server.</p>