# Wikipedia Backlinks API

Get Wikipedia Backlinks data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Wikimedia, pass parameters such as action, bllimit, blnamespace, and retrieve structured data including linking page identifier, linking page namespace, linking article title, backlink continuation token, and general continuation value to explore incoming references, build a link graph, and collect a larger result set.

Documentation: https://openany.si/wikipedia/wikipedia-article-backlinks/
API ID: 04d2c5c7-54d0-4e52-b85f-73cdd8df6e23
Provider: wikimedia
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/wikimedia/backlinks
Page update time: 2026-12-03T02:36:59.121Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:36:59.121Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Wikipedia Backlinks API

Query list=backlinks with bltitle, blnamespace=0 and bllimit from 1 to 20. Matching main-namespace pages appear in query.backlinks, and continuation values can be passed into the next request.

## What You Can Build

- **Explore incoming references**: Find articles that point to a known topic.
- **Build a link graph**: Store target titles alongside linking page IDs.
- **Collect a larger result set**: Continue through result pages with the returned token pair.

## Returned Data

| Field | Meaning |
| --- | --- |
| `query.backlinks[].pageid` | Linking page identifier |
| `query.backlinks[].ns` | Linking page namespace |
| `query.backlinks[].title` | Linking article title |
| `continue.blcontinue` | Backlink continuation token |
| `continue.continue` | General continuation value |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Wikipedia Backlinks API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "action": {
          "type": "string",
          "description": "Set to query.",
          "enum": [
            "query"
          ]
        },
        "list": {
          "type": "string",
          "description": "Set to backlinks.",
          "enum": [
            "backlinks"
          ]
        },
        "bltitle": {
          "type": "string",
          "description": "Title of the article receiving links.",
          "minLength": 1,
          "maxLength": 255
        },
        "blnamespace": {
          "type": "string",
          "description": "Set to 0.",
          "enum": [
            "0"
          ]
        },
        "bllimit": {
          "type": "integer",
          "description": "Maximum number of backlinks per request.",
          "minimum": 1,
          "maximum": 20
        },
        "format": {
          "type": "string",
          "description": "Set to json.",
          "enum": [
            "json"
          ]
        },
        "formatversion": {
          "type": "string",
          "description": "Set to 2.",
          "enum": [
            "2"
          ]
        },
        "continue": {
          "type": "string",
          "description": "Pass the continue value from the previous response to retrieve the next page."
        },
        "blcontinue": {
          "type": "string",
          "description": "Pass the blcontinue value from the previous response to retrieve the next page."
        }
      },
      "required": [
        "action",
        "list",
        "bltitle",
        "blnamespace",
        "bllimit",
        "format",
        "formatversion"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "batchcomplete": {
      "type": "boolean"
    },
    "continue": {
      "type": "object",
      "properties": {
        "blcontinue": {
          "type": "string"
        },
        "continue": {
          "type": "string"
        }
      }
    },
    "query": {
      "type": "object",
      "properties": {
        "backlinks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "ns": {
                "type": "integer"
              },
              "pageid": {
                "type": "integer"
              },
              "title": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/wikimedia/backlinks?action=query&bllimit=3&blnamespace=0&bltitle=Earth&format=json&formatversion=2&list=backlinks' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "batchcomplete": true,
  "continue": {
    "blcontinue": "0|662",
    "continue": "-||"
  },
  "query": {
    "backlinks": [
      {
        "ns": 0,
        "pageid": 39,
        "title": "Albedo"
      },
      {
        "ns": 0,
        "pageid": 308,
        "title": "Aristotle"
      },
      {
        "ns": 0,
        "pageid": 580,
        "title": "Astronomer"
      }
    ]
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Are these backlinks from the entire web?
No. This operation lists Wikipedia pages linking to the specified article, not external websites linking to it.

### Which namespace is searched?
The contract fixes blnamespace=0, limiting the lookup to the main article namespace.

### How do I retrieve the next page?
Pass both continue and blcontinue from the previous response while retaining the same target title and filters.

### How many records can one request return?
Set bllimit between 1 and 20. Use continuation when the response supplies more results.

### Does this return the text surrounding each link?
No. The documented business records contain page identifiers, namespaces and titles. Article text requires a separate lookup.

### Does an article's backlink count measure its popularity?
Incoming links describe article relationships. They are not pageviews, search volume or a measure of readership.

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
