import requests from time import sleep api_key = "" hats = ["Herald's Helm", "Brotherhood of Arms", "Hole Modest Pile of Hat"] print("Parameters in query string:") for item in hats: print(requests.get("https://backpack.tf/api/classifieds/search/v1", params={"key": api_key, "item": item}).json()) sleep(5) print("Parameters in body:") for item in hats: print(requests.get("https://backpack.tf/api/classifieds/search/v1", data={"key": api_key, "item": item}).json())