Find an API

Search public APIs with auth details & Postman guides

← All APIs

Wikipedia REST API

en.wikipedia.org · Data

Data No Auth Free & Open Knowledge Encyclopedia Open Data

Wikipedia article summaries, full content, page views, and related topics. Access 60M+ articles in 300+ languages. Free, no API key. Set User-Agent.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET Get article summary

Get a concise summary of the AI Wikipedia article.

https://en.wikipedia.org/api/rest_v1/page/summary/Artificial_intelligence

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
User-Agent MyApp/1.0 ([email protected])
curl -X GET "https://en.wikipedia.org/api/rest_v1/page/summary/Artificial_intelligence" \
  -H "User-Agent: MyApp/1.0 ([email protected])"
import requests
headers = {
    "User-Agent": "MyApp/1.0 ([email protected])"
}
response = requests.get(
    "https://en.wikipedia.org/api/rest_v1/page/summary/Artificial_intelligence",
    headers=headers,
)
print(response.json())
const url = 'https://en.wikipedia.org/api/rest_v1/page/summary/Artificial_intelligence';

const response = await fetch(url, {
  headers: {
    'User-Agent': 'MyApp/1.0 ([email protected])'
  },
}); 
const data = await response.json();
console.log(data);
package main

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

func main() {
	targetURL := "https://en.wikipedia.org/api/rest_v1/page/summary/Artificial_intelligence"
	req, _ := http.NewRequest("GET", targetURL, nil)
	req.Header.Set("User-Agent", "MyApp/1.0 ([email protected])")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://en.wikipedia.org/api/rest_v1/page/summary/Artificial_intelligence")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)
req["User-Agent"] = "MyApp/1.0 ([email protected])"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://en.wikipedia.org/api/rest_v1/page/summary/Artificial_intelligence";
$opts = ["http" => [
    "method" => "GET",
    "header" => implode("\r\n", [
        "User-Agent: MyApp/1.0 ([email protected])"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Today's featured article

Get featured article, on this day events, and top-read articles.

https://en.wikipedia.org/api/rest_v1/feed/featured/2026/06/08

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
User-Agent MyApp/1.0
curl -X GET "https://en.wikipedia.org/api/rest_v1/feed/featured/2026/06/08" \
  -H "User-Agent: MyApp/1.0"
import requests
headers = {
    "User-Agent": "MyApp/1.0"
}
response = requests.get(
    "https://en.wikipedia.org/api/rest_v1/feed/featured/2026/06/08",
    headers=headers,
)
print(response.json())
const url = 'https://en.wikipedia.org/api/rest_v1/feed/featured/2026/06/08';

const response = await fetch(url, {
  headers: {
    'User-Agent': 'MyApp/1.0'
  },
}); 
const data = await response.json();
console.log(data);
package main

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

func main() {
	targetURL := "https://en.wikipedia.org/api/rest_v1/feed/featured/2026/06/08"
	req, _ := http.NewRequest("GET", targetURL, nil)
	req.Header.Set("User-Agent", "MyApp/1.0")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://en.wikipedia.org/api/rest_v1/feed/featured/2026/06/08")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)
req["User-Agent"] = "MyApp/1.0"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://en.wikipedia.org/api/rest_v1/feed/featured/2026/06/08";
$opts = ["http" => [
    "method" => "GET",
    "header" => implode("\r\n", [
        "User-Agent: MyApp/1.0"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. No API key needed
  2. Set User-Agent header (good practice)
  3. Summary: GET https://en.wikipedia.org/api/rest_v1/page/summary/Python_(programming_language)
  4. Full article: GET /page/html/Python_(programming_language)
  5. Other languages: replace en.wikipedia.org with fr.wikipedia.org, de., es., etc.

Open documentation ↗