Web page API

Any web page. One request.

Send the address of a public page and get it back in the same response: as the site sent it, as a browser shows it, or as Markdown.

1 credit a page. Failed requests are free. Credits never expire.

One request

cURL

curl "https://gimmepage.com/v1/fetch?url=https%3A%2F%2Fexample.com%2F" \
  -H "Authorization: Bearer YOUR_API_KEY"

Python

# pip install gimmepage
from gimmepage import Gimmepage

client = Gimmepage(api_key="YOUR_API_KEY")
page = client.fetch("https://example.com/")
print(page.site_status, page.cost, page.balance)
print(page.text)

JavaScript

// npm install gimmepage
import { Gimmepage } from "gimmepage";

const client = new Gimmepage({ apiKey: "YOUR_API_KEY" });
const page = await client.fetch("https://example.com/");
console.log(page.siteStatus, page.cost, page.balance);
console.log(page.text);

PHP

<?php
$query = http_build_query(['url' => 'https://example.com/']);
$ch = curl_init('https://gimmepage.com/v1/fetch?' . $query);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer YOUR_API_KEY']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $body;

Go

package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	q := url.Values{}
	q.Set("url", "https://example.com/")
	req, _ := http.NewRequest("GET", "https://gimmepage.com/v1/fetch?"+q.Encode(), nil)
	req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(resp.Header.Get("Gimmepage-Cost"), string(body))
}

Ruby

require "net/http"
require "uri"

uri = URI("https://gimmepage.com/v1/fetch")
uri.query = URI.encode_www_form(url: "https://example.com/")
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "Bearer YOUR_API_KEY"
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |h| h.request(req) }
puts res["Gimmepage-Cost"], res.body

Java

import java.net.URI;
import java.net.http.*;

var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder()
    .uri(URI.create("https://gimmepage.com/v1/fetch?url=https%3A%2F%2Fexample.com%2F"))
    .header("Authorization", "Bearer YOUR_API_KEY")
    .build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.headers().firstValue("Gimmepage-Cost").orElse("") + " " + response.body());

C#

using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", "Bearer YOUR_API_KEY");
var response = await http.GetAsync("https://gimmepage.com/v1/fetch?url=https%3A%2F%2Fexample.com%2F");
Console.WriteLine(response.Headers.GetValues("Gimmepage-Cost").First());
Console.WriteLine(await response.Content.ReadAsStringAsync());

Rust

// reqwest = { version = "0.12", features = ["blocking"] }
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let resp = reqwest::blocking::Client::new()
        .get("https://gimmepage.com/v1/fetch")
        .query(&[("url", "https://example.com/")])
        .bearer_auth("YOUR_API_KEY")
        .send()?;
    println!("{:?}", resp.headers().get("gimmepage-cost"));
    println!("{}", resp.text()?);
    Ok(())
}
The answer
HTTP/1.1 200 OK
Gimmepage-Site-Status: 200
Gimmepage-Final-Url: https://example.com/
Gimmepage-Cost: 1
Gimmepage-Balance: 19999

<!doctype html><html><head><title>Example Domain…
1 credit
  1. 01

    Pay only for pages

    A check page, a refusal, a timeout or an error on our side costs nothing.

  2. 02

    No subscription

    Buy credits from $5 when you need them. They never expire.

  3. 03

    Honest answers

    A check page is never passed off as the page. Every error says why.

Less scraping plumbing.
More building.

  1. 01

    You send an address

    One request with the page's address and your key in a header.

  2. 02

    We get the page

    Blocks, browsers, sessions and retries are our problem, not yours.

  3. 03

    You get it back

    In the same response, with the site's status, the final address and the cost.

The page, the way you need it.

Choose how it is fetched and how it comes back. The price is known before you send.

Explore all parameters
GET /v1/fetch?url=https://example.com/

This request costs 1 credit, and only when the page comes back. Markdown costs nothing extra.

Make your first request count.

Short pages that take you from nothing to your first page.

Documentation

Quick start

Three steps to your first page, with examples in nine languages.

FAQ

Common questions.

Quick answers about how gimmepage works. All questions

What exactly is charged?
A request that brings back the site's own answer: the page, or the site's "not found" page. It costs 1 credit, or 5 credits for a page as a browser shows it; through a residential address 10 credits or 25 credits. Everything else is free: a check page, a refusal, a timeout, an error. Every answer says what it cost.
Do credits expire?
No. There is no subscription and no monthly fee. $1 buys 4,000 credits, so 1,000 pages cost $0.25, and the credits stay until you use them.
Is there a free trial?
No. A new account starts at 0 credits, and the smallest purchase is $5 (20,000 credits). The documentation and the examples show exactly what an answer looks like before you pay.
Why did my request fail?
The answer says why: a stable code, a sentence in plain words, and whether trying again can help. The error list explains every code.

Start in five minutes.

Create an account, buy credits from $5, send your first request.