import requestsfrom requests.structures import CaseInsensitiveDict
url = “https://map.ir/routes/route/v1/driving/51.421047%2C35.732936%3B51.422185%2C35.731821?alternatives=true&steps=true”
headers = CaseInsensitiveDict()headers[“x-api-key”] = “eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjcyMThjOTliYWM4OWQzNmM4MmQxMzJlNjRjNDE3MWRmNjRjMzJkZjg2OTE5MGE0ZWQyYzU4Njc2M2M1MmI2OTY4ZTcwNDAyM2I1MTQyOWQzIn0.eyJhdWQiOiIxMDgxMCIsImp0aSI6IjcyMThjOTliYWM4OWQzNmM4MmQxMzJlNjRjNDE3MWRmNjRjMzJkZjg2OTE5MGE0ZWQyYzU4Njc2M2M1MmI2OTY4ZTcwNDAyM2I1MTQyOWQzIiwiaWF0IjoxNTk5NzU5NjIwLCJuYmYiOjE1OTk3NTk2MjAsImV4cCI6MTYwMjQ0MTYyMCwic3ViIjoiIiwic2NvcGVzIjpbImJhc2ljIl19.Xzp9yMI5rvT69XHxcEu4w1wqdesAsl01faKxji33XhnUiI-e8AJOQ_8_GzygMXHfZMfrVenNyIiaSMzsdRPN3ug88ogDkVFPx5QLixpQ1Cg0vHPpfaRYaVRpw2vhzIaessR6YS3HGAVyE1IKq3ECgH2a0Q8Lsj-JIggH7r8JHTCIx-WtUMwZKHLlTubiFdxGKsW3VToZj3Y2ldV0s7SlnXtlD6HD1JMui6zuqeRz36qiEIugAQqFL7mxbP-7-n0wuFiuenU5zDJneaSaQ7VJ9c3XUynvrjbtQPl8Aa0shS8YR9XA5aVXwwS0RPIgCbvYoqSCLp44EpA6BvsCRXujdg”

resp = requests.get(url, headers=headers)
print(resp.status_code)