HTML To Markdown

The HTMLToMarkdown API converts HTML to Markdown

URL: https://api.apipip.com/v1/html-to-markdown


Parameters

Name Description
HTML (Required) HTML Code

Headers

Name Description
X-Key (No required)

How to use HTML To Markdown

                
import requests

url = "https://example.com/api/resource"
data = {"key1": "value1", "key2": "value2"}

response = requests.post(url, json=data)

print(response.status_code) # prints the status code of the response
print(response.json()) # prints the JSON content of the response
                
                    
                
const data = {"key1": "value1", "key2": "value2"};

$.ajax({
    type: "POST",
    url: "https://example.com/api/resource",
    data: JSON.stringify(data),
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function(response) {
        console.log(response);
    },
    error: function(response) {
        console.log(response.statusCode);
    }
});
                
                    
                
let url = URL(string: "https://example.com/api/resource")!
let data = ["key1": "value1", "key2": "value2"]

var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.httpBody = try? JSONSerialization.data(withJSONObject: data)

let task = URLSession.shared.dataTask(with: request) { data, response, error in
    if let error = error {
        print(error)
        return
    }

    if let httpResponse = response as? HTTPURLResponse {
        print(httpResponse.statusCode)
    }

    if let data = data, let json = try? JSONSerialization.jsonObject(with: data) {
        print(json)
    }
}

task.resume()
                
                    

API Response

                            
[
  {
    "manufacturer": "Gulfstream Aerospace",
    "model": "G550",
    "engine_type": "Jet",
    "engine_thrust_lb_ft": "15385",
    "max_speed_knots": "590",
    "cruise_speed_knots": "566",
    "ceiling_ft": "51000",
    "takeoff_ground_run_ft": "5910",
    "landing_ground_roll_ft": "2770",
    "gross_weight_lbs": "91000",
    "empty_weight_lbs": "47900",
    "length_ft": "96.417",
    "height_ft": "25.833",
    "wing_span_ft": "93.5",
    "range_nautical_miles": "6750"
  }
]
                            
                                

Note: The API works with all programming languages