OpenGraph.io

Web Scraper API for Raw HTML Extraction

Scrape any website reliably—handle JavaScript rendering, bypass bot detection, and retrieve full-page HTML with ease.

No credit card required.

GET https://opengraph.io/api/1.1/scrape/:site
// Example API Call
https://opengraph.io/api/1.1/scrape/https%3A%2F%2Freddit.com?app_id=xxxxxx
//Response
<!DOCTYPE html> <html lang="en"> <head> <title>Reddit – Dive into anything</title> <!-- ... HTML content ... --> </head> <body> <!-- ... more HTML ... --> </body> </html>
https://opengraph.io/api/1.1/scrape/https%3A%2F%2Freddit.com

Scrape Any Website Reliably and Efficiently

Instantly fetch raw HTML from any website—no complex setup, no scraping headaches.

Simple API Calls

Get started with just your app ID and target URL - no complex setup required to begin scraping web content.

Quick implementation

Advanced Proxies

Bypass bot detection and scrape restrictive websites with our residential and mobile proxy options.

Access challenging sites

Full JavaScript Rendering

Capture content from SPA and JavaScript-heavy sites with our headless browser rendering option.

Modern web compatible

Smart Caching

Save on API calls with intelligent caching - get fresh data only when you need it for optimal performance.

Cost-effective solution

Scrape any site with ease

Our API handles the hard parts of web scraping—bypassing restrictions, rendering JavaScript, and returning clean HTML—so you can focus on using the data.

  • Simple authentication: Just include your app_id with each request and start scraping instantly.
  • URL-based API design: Clean RESTful API with your target site URL as part of the endpoint path for easier implementation.
  • Raw HTML response: The API returns the raw HTML content of the requested site for direct use in your applications.
Simple API Request
https://opengraph.io/api/1.1/scrape/:site?
app_id=xxxxxx
// Add cache_ok=false for fresh data
// Add full_render=true for JS rendering

Customize your scraping

Powerful query parameters

Fine-tune your scraping experience with a comprehensive set of parameters to handle any scraping scenario.

Cache control: Use cached results for faster responses or fetch fresh data when needed with the cache_ok parameter.

JavaScript rendering: Enable full_render to capture content from JavaScript-heavy sites and single-page applications.

Proxy options: Access restricted sites with use_proxy, use_premium, and use_superior for different levels of scraping capabilities.

cache_ok
true
false
full_render
true
false
use_proxy
true
false

Powerful use cases

Our HTML Scraper API enables a wide range of applications and use cases.

  • Content aggregation: Build content aggregators that collect and display information from multiple sources in a unified format.
  • Market research: Gather data from various websites to analyze market trends, competitor pricing, and product information.
  • Data validation: Verify that your own website's content is displaying correctly and consistently across all pages.

Content Aggregator

Market Research

Developer Friendly

Integrate in Minutes

Use the language you love

import fetch from 'node-fetch';

// HTML Scraper API
const scrapeSite = async () => {
  // Target URL to scrape
  const targetUrl = encodeURIComponent("https://example.com");

  // Replace xxxxxx with your actual app_id
  const url = `https://opengraph.io/api/1.1/scrape/${targetUrl}?app_id=xxxxxx`;

  try {
    const response = await fetch(url);
    
    if (response.status === 200) {
      const htmlContent = await response.text();
      console.log('Raw HTML content:');
      console.log(htmlContent);
    } else {
      const errorText = await response.text();
      console.error(`Error: API request failed with status code ${response.status}`);
      console.error(errorText);
    }
  } catch (error) {
    console.error('Error scraping site:', error);
  }
};

scrapeSite();
Our Clients

Trusted by Thousands

Over 1B Site Previews!

Try it for free today

Get started with 100 free API requests per month. No credit card required. Experience the power of our API with zero commitment.

FAQ

The Web Scraper API lets you programmatically fetch and extract the raw HTML from any public website. It handles anti-bot protections, JavaScript rendering, and complex site structures so you can focus on using the data.
Yes! Our API can fully render JavaScript, allowing you to scrape content from single-page applications and sites that load data dynamically in the browser.
For this you can use our Extract API
Our API uses advanced proxy rotation, browser fingerprinting, and other techniques to bypass most anti-bot protections. However, some sites with advanced CAPTCHAs may still be inaccessible.
Scraping publicly available data is generally legal, but you should always review and comply with each website's terms of service and applicable laws. Our API is designed to respect robots.txt and includes rate limiting to avoid overloading sites.

Still have Questions? 🤔

Can't find the answer you're looking for? Please chat to our friendly team. We usually respond within 24 hours.