Free Wikipedia and arXiv Search API for AI Agents

```html

Free Wikipedia and arXiv Search API for AI Agents

Building intelligent AI agents requires access to reliable, real-time information sources. Whether you're creating a research assistant, a knowledge-base chatbot, or an autonomous system that needs to verify facts, integrating Wikipedia and arXiv data becomes essential. However, managing multiple API keys, handling rate limits, and building robust search infrastructure takes time away from what matters: building great AI applications.

AiPayGent solves this problem by offering unified, free Wikipedia and arXiv search endpoints through a single pay-per-use API. The first 10 calls per day are completely free, making it perfect for development and testing. When you need more capacity, simply prepay for API credits or use USDC on Base.

The Problem

AI agents need knowledge. When building applications that reason about the world, your agents require fast access to:

Typically, you'd either:

AiPayGent's data endpoints eliminate this friction, offering both Wikipedia and arXiv search through a unified API interface.

Getting Started with Wikipedia Search

Let's search for information about quantum computing on Wikipedia:

curl -X POST "https://api.aipaygent.xyz/data/wikipedia-search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "quantum computing",
    "limit": 5
  }'

Response:

{
  "results": [
    {
      "title": "Quantum computing",
      "snippet": "Quantum computing is a type of computation whose operations can harness the phenomena of quantum mechanics...",
      "url": "https://en.wikipedia.org/wiki/Quantum_computing",
      "extract": "Quantum computers harness quantum phenomena to process information in ways that classical computers cannot..."
    },
    {
      "title": "Quantum algorithm",
      "snippet": "A quantum algorithm is an algorithm designed to run on a quantum computer...",
      "url": "https://en.wikipedia.org/wiki/Quantum_algorithm"
    }
  ],
  "call_count": 1
}

Notice the `call_count` field—this tracks your daily usage toward the 10 free calls.

Python Example: Building a Research Agent

Here's how to integrate Wikipedia search into a Python agent:

import requests
import json

API_KEY = "your_api_key_here"
BASE_URL = "https://api.aipaygent.xyz"

def search_wikipedia(query, limit=3):
    """Search Wikipedia for information about a topic."""
    response = requests.post(
        f"{BASE_URL}/data/wikipedia-search",
        headers={
            "Authorization": f"Bearer {API_KEY}",
            "Content-Type": "application/json"
        },
        json={"query": query, "limit": limit}
    )
    
    if response.status_code == 200:
        data = response.json()
        print(f"Calls used today: {data.get('call_count', 0)}/10 free")
        return data.get("results", [])
    else:
        print(f"Error: {response.status_code}")
        return []

# Usage
results = search_wikipedia("machine learning")
for result in results:
    print(f"Title: {result['title']}")
    print(f"Snippet: {result['snippet']}\n")

Searching arXiv for Research Papers

For AI agents that need access to academic research, use the arXiv endpoint:

curl -X POST "https://api.aipaygent.xyz/data/arxiv-search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "transformer neural networks",
    "limit": 5,
    "sort_by": "relevance"
  }'

Response:

{
  "results": [
    {
      "title": "Attention Is All You Need",
      "authors": ["Ashish Vaswani", "Noam Shazeer", "Parmar Amirudin"],
      "published": "2017-06-12",
      "summary": "The dominant sequence transduction models are based on complex recurrent or convolutional neural networks...",
      "arxiv_id": "1706.03762",
      "url": "https://arxiv.org/abs/1706.03762",
      "pdf_url": "https://arxiv.org/pdf/1706.03762.pdf"
    }
  ],
  "call_count": 2
}

Pricing and Free Tier

AiPayGent offers a generous free tier: 10 calls per day across all endpoints. Each Wikipedia or arXiv search counts as one call. Perfect for development, prototyping, and small-scale applications.

Once you exceed 10 daily calls, you have two payment options:

Visit the /buy-credits endpoint to top up your account in seconds.

Best Practices for AI Agents

What's Next?

AiPayGent provides 140+ endpoints across multiple categories. Explore the full API catalog to integrate image generation, language models, data processing, and more into your AI agents.

Get started today:

Your first 10 API calls are free. Build, test, and scale your AI agents with confidence.

```
Try it free → First 10 calls/day free, no credit card. Browse all 165 tools and 140+ endpoints or buy credits ($5+).

Published: 2026-03-02 · RSS feed