WikiRest Docs

GET /v1/meta

Get metadata about the dataset, index statistics, and content source information.

GET https://api.wikirest.com/v1/meta

Try it in Playground

Response

{
  "meilisearch_version": {
    "commitSha": "abc123...",
    "commitDate": "2024-01-10T00:00:00Z",
    "pkgVersion": "1.6.0"
  },
  "indexes": {
    "pages": "enwiki_pages",
    "chunks": "enwiki_chunks"
  },
  "content_source": {
    "name": "Wikipedia, the free encyclopedia",
    "project": "en.wikipedia.org",
    "license": {
      "name": "CC BY-SA 4.0",
      "full_name": "Creative Commons Attribution-ShareAlike 4.0 International",
      "url": "https://creativecommons.org/licenses/by-sa/4.0/"
    }
  },
  "dataset": {
    "created_at": "2024-01-15T00:00:00Z",
    "indexed_pages": 6789012,
    "indexed_chunks": 45678901,
    "skipped_redirects": 123456
  },
  "attribution": {
    "license": {...},
    "modified": true,
    "modifications": [
      "Converted from Wikitext markup to plain text",
      "HTML tags and references removed",
      "Split into sections by heading hierarchy",
      "Chunked into passages for semantic search",
      "Indexed for full-text search"
    ],
    "attribution_notice": "Content derived from Wikipedia, the free encyclopedia...",
    "wikimedia_terms": "https://foundation.wikimedia.org/wiki/Terms_of_Use"
  }
}

Response Fields

Field Type Description
meilisearch_version object Backend search engine version info
indexes object Names of the pages and chunks indexes
content_source object Wikipedia source and license info
dataset object Dataset statistics (if available)
dataset.indexed_pages integer Total Wikipedia pages indexed
dataset.indexed_chunks integer Total text chunks indexed
attribution object Attribution requirements and notices

Use Cases

  • Dataset info: Check how many pages/chunks are indexed
  • Version check: Verify the backend search engine version
  • Compliance: Get attribution requirements for your use case

Example

curl -H "X-API-Key: YOUR_KEY" \
  "https://api.wikirest.com/v1/meta"

Error Responses

Status Error Description
401 unauthorized API key not provided
429 rate_limit_exceeded Too many requests

Was this page helpful?

Help us improve our documentation