Find an API

Search public APIs with auth details & Postman guides

← All APIs

PyPI JSON API

pypi.org · Developer Tools

Developer Tools No Auth Free & Open Developer Tools Python Packages

Python Package Index metadata — package info, version history, download stats, and release files for 500,000+ Python packages. Free, no API key required.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET Get package info

Get full metadata for the requests package.

https://pypi.org/pypi/requests/json

Hover any highlighted part to learn what it does

curl -X GET "https://pypi.org/pypi/requests/json"
import requests
response = requests.get(
    "https://pypi.org/pypi/requests/json",
)
print(response.json())
const url = 'https://pypi.org/pypi/requests/json';

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

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

func main() {
	targetURL := "https://pypi.org/pypi/requests/json"
	req, _ := http.NewRequest("GET", targetURL, nil)

	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://pypi.org/pypi/requests/json")

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

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://pypi.org/pypi/requests/json";
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Get specific version

Get metadata for Django 4.2.0 specifically.

https://pypi.org/pypi/django/4.2.0/json

Hover any highlighted part to learn what it does

curl -X GET "https://pypi.org/pypi/django/4.2.0/json"
import requests
response = requests.get(
    "https://pypi.org/pypi/django/4.2.0/json",
)
print(response.json())
const url = 'https://pypi.org/pypi/django/4.2.0/json';

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

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

func main() {
	targetURL := "https://pypi.org/pypi/django/4.2.0/json"
	req, _ := http.NewRequest("GET", targetURL, nil)

	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://pypi.org/pypi/django/4.2.0/json")

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

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://pypi.org/pypi/django/4.2.0/json";
$opts = ["http" => [
    "method" => "GET",
]];
$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. Package info: GET https://pypi.org/pypi/{package_name}/json
  3. Try GET https://pypi.org/pypi/numpy/json
  4. Specific version: GET https://pypi.org/pypi/flask/2.3.0/json
  5. Download stats: use pypistats.org/api/packages/{package}/recent

Open documentation ↗