wikimedia-api-access

Access Wikipedia and Wikimedia APIs with managed user-agent and error handling.

15|6|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/fuzheado/Wikipedia-AI-Skills --skill wikimedia-api-access
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wikimedia-api-access
Source: https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/wikimedia-api-access
Command: npx skills add https://github.com/fuzheado/Wikipedia-AI-Skills --skill wikimedia-api-access

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides seamless access to Wikipedia and Wikimedia APIs, handling rate limiting, error handling, and user-agent requirements, ensuring reliable API interactions.

Core Features & Use Cases

  • User-Agent Management: Automatically manages User-Agent headers for API requests, adhering to Wikimedia policies.
  • Error Handling: Implements robust error handling for common API errors like 429 (Too Many Requests) and 403 (Forbidden).
  • Rate Limiting: Respects rate limits, implementing delays and retries as required by the API.
  • API Selection: Offers guidance on choosing the right API endpoint for various tasks, including REST API, Action API, SPARQL, SQL replicas, EventStreams, and Pywikibot.
  • Use Case: Use this Skill to automate the retrieval of Wikipedia page content, perform structured data queries on Wikidata, or analyze traffic statistics using the Pageviews API.

Quick Start

Use the wikimedia-api-access skill to fetch the wikitext for 'Python (programming language)'.

Frequently Asked Questions about wikimedia-api-access

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle Wikipedia API rate limiting and 429 errors?

You can retrieve Wikipedia page content by identifying the correct API endpoint for your task. This skill guides API selection across the REST API, Action API, and SPARQL to automate content retrieval effectively.

How do I manage User-Agent headers for Wikimedia API requests?

User-Agent headers for Wikimedia API requests are automatically managed to adhere to Wikimedia policies. This compliance mechanism ensures your requests are properly identified and not rejected as unauthorized traffic.

Can I use SPARQL or Pywikibot for structured data queries on Wikidata?

SPARQL and Pywikibot are supported options for performing structured data queries on Wikidata. The skill offers guidance on choosing the right endpoint, including SQL replicas and EventStreams, for various data retrieval workflows.

What is the best way to select the right Wikimedia API endpoint for my task?

Selecting the right Wikimedia API endpoint depends on your specific data retrieval workflow. The skill helps identify whether the REST API, Action API, SPARQL, or EventStreams best suits tasks like fetching wikitext or analyzing pageviews.

Why does my Wikimedia API request return a 403 Forbidden error?

A 403 Forbidden error from the Wikimedia API often relates to improper User-Agent management or request policy violations. This skill implements robust error handling and User-Agent compliance to prevent these access blocks.