/v1/search
Search the registry
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/npm-api/v1/search" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/npm-api/v1/search", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/npm-api/v1/search");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/npm-api/v1/search",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"count": 10,
"query": "test framework",
"total": 457412,
"results": [
{
"date": "2026-05-21T11:11:59.551Z",
"name": "mocha",
"links": {
"npm": "https://www.npmjs.com/package/mocha",
"bugs": "https://github.com/mochajs/mocha/issues/",
"homepage": "https://mochajs.org/",
"repository": "git+https://github.com/mochajs/mocha.git"
},
"score": 463.619,
"version": "11.7.6",
"keywords": [
"mocha",
"test",
"bdd",
"tdd",
"tap",
"testing",
"chai",
"assertion",
"ava",
"jest",
"tape",
"jasmine",
"karma"
],
"publisher": "joshuakgoldberg",
"description": "simple, flexible, fun test framework"
},
{
"date": "2018-07-30T13:57:31.472Z",
"name": "should",
"links": {
"npm": "https://www.npmjs.com/package/should",
"bugs": "https://github.com/shouldjs/should.js/issues",
"homepage": "https://github.com/shouldjs/should.js",
"repository": "git+https://github.com/shouldjs/should.js.git"
},
"score": 396.675,
"version": "13.2.3",
"keywords": [
"test",
"bdd",
"assert",
"should"
],
"publisher": "btd",
"description": "test framework agnostic BDD-style assertions"
},
{
"date": "2025-12-22T21:26:03.989Z",
"name": "chai",
"links": {
"npm": "https://www.npmjs.com/package/chai",
"bugs": "https://github.com/chaijs/chai/issues",
"homepage": "http://chaijs.com",
"repository": "git+https://github.com/chaijs/chai.git"
},
"score": 353.317,
"version": "6.2.2",
"keywords": [
"test",
"assertion",
"assert",
"testing",
"chai"
],
"publisher": "GitHub Actions",
"description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic."
},
{
"date": "2023-11-01T12:24:51.600Z",
"name": "@web/test-runner-mocha",
"links": {
"npm": "https://www.np
…