API version 1

URLtoJSON API version 1 to convert URLs to beautiful JSON.

Scrape API

GET https://urltojson.com/api/v1/scrape

Parameters

key (required)

Your API key. Get your API key.

url (required)

The URL you want to scrape and turn into JSON.

Example call

curl "https://urltojson.com/api/v1/scrape?key=YOUR_API_KEY&url=https://example.com/beatiful-page"

JSON Response

{
  "url": "https://example.com/beatiful-page",
  "og": {
    "ogLocale": "en_GB",
    "ogType": "article",
    "ogTitle": "Jon Albon 'ends season' with Le Grand Trail des Templiers win in first race since UTMB CCC",
    "ogDescription": "British runner Jon Albon took the win at Le Grand Trail des Templiers as he ended his season with another win after UTMB CCC.",
    "ogUrl": "https://run247.com/running-news/trail/jon-albon-les-grand-trail-des-templiers-2023-utmb-ccc",
    "ogSiteName": "RUN247",
    "articlePublisher": "https://www.facebook.com/Run247com",
    "articlePublishedTime": "2023-10-25T09:52:20+00:00",
    "articleModifiedTime": "2023-10-25T09:52:21+00:00",
    "author": "Patrick Ryan",
    "twitterCard": "summary_large_image",
    "twitterCreator": "@Patrick_EG_Ryan",
    "twitterSite": "@RUN247com",
    "ogImage": [
      {
        "height": "720",
        "type": "image/jpeg",
        "url": "https://run247.com/wp-content/uploads/2022/10/Jon-Albon-CCC-photo-credit-Mathis-Dumas.jpg",
        "width": "1280"
      }
    ],
    "ogDate": "2023-10-25T09:52:20+00:00",
    "favicon": "https://run247.com/wp-content/uploads/2022/05/cropped-run247-512-60x60.jpg",
    "charset": "UTF-8",
    "success": true
  },
  "html": "<!DOCTYPE html><html lang=\"en-GB\"><head>\n\t<meta charset=\"UTF-8\">\n\t<meta name=\"robots\" content=\"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1\">\n<link rel=\"preconnect\" href=\"https://progressier.com\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t<!-- This site is optimized with the Yoast SEO Premium plugin v21.4 (Yoast SEO v21.4) - https://yoast.com/wordpress/plugins/seo/ -->\n\t<title>Jon Albon wins Le Grand Trail des Templiers...",
  "favicon": "https://run247.com/wp-content/uploads/2022/05/cropped-run247-512-60x60.jpg",
  "image": "https://run247.com/wp-content/uploads/2022/10/Jon-Albon-CCC-photo-credit-Mathis-Dumas.jpg",
  "content": {
    "title": "Jon Albon 'ends season' with Le Grand Trail des Templiers win in first race since UTMB CCC",
    "description": "British runner Jon Albon took the win at Le Grand Trail des Templiers as he ended his season with another win after UTMB CCC.",
    "text": "UTMB CCC 2023 champion Jon Albon has spoken about his experience at French race Le Grand Trail des Templiers, where he took the win in his first race since the UTMB World Series Finals.\n\nLe Grand Trail des Templiers, which literally translates to ‘The Great Trail of the Templars’, is an 80.6km race in with 3500m of elevation gain which takes place in Millau in the South of France, north of Montpellier.\n\nAlbon had previously won the race...",
    "html": "<p>UTMB CCC 2023 champion Jon Albon has spoken about his experience at French race Le Grand Trail des Templiers, where he took the win in his first race since the UTMB World Series Finals.</p><p>Le Grand Trail des Templiers, which literally translates to ‘The Great Trail of the Templars’, is an 80.6km race in with 3500m of elevation gain which takes place in Millau in the South of France, north of Montpellier.</p><p>Albon had previously won the race..."
  }
}