# 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/market/apis/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
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
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
}
```

## 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.

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