WikiRest Docs

GET /v1/license

Get detailed license and attribution requirements for using Wikipedia content from this API.

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

Try it in Playground

Response

{
  "content_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/",
    "summary": "You are free to share and adapt this content for any purpose, including commercially, as long as you provide appropriate credit, indicate if changes were made, and distribute your contributions under the same license."
  },
  "source": {
    "name": "Wikipedia, the free encyclopedia",
    "project": "en.wikipedia.org",
    "terms_url": "https://foundation.wikimedia.org/wiki/Terms_of_Use",
    "reuse_info": "https://en.wikipedia.org/wiki/Wikipedia:Reusing_Wikipedia_content"
  },
  "modifications": {
    "modified": true,
    "changes_made": [
      "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"
    ],
    "note": "This API serves content derived from Wikipedia. The original Wikitext has been processed and transformed as described above."
  },
  "attribution_requirements": {
    "credit": "You must give appropriate credit by linking to the source Wikipedia article",
    "license_notice": "You must indicate that the content is available under CC BY-SA 4.0",
    "changes": "You must indicate if you made additional changes beyond those listed",
    "share_alike": "If you remix or transform the content, you must distribute under the same license",
    "no_additional_restrictions": "You may not apply legal terms that restrict others"
  },
  "api_service_note": "This API service may be commercial/proprietary, but the Wikipedia-derived content it returns remains under CC BY-SA 4.0.",
  "trademark_disclaimer": "Wikipedia and Wikimedia are registered trademarks of the Wikimedia Foundation, Inc. This service is not affiliated with or endorsed by the Wikimedia Foundation."
}

Response Fields

Field Type Description
content_license object License details and summary
source object Wikipedia source information and links
modifications object List of changes made to the original content
attribution_requirements object What you need to do when using the content

Attribution Best Practices

When using content from this API, provide attribution like:

Content from "Albert Einstein" on Wikipedia
https://en.wikipedia.org/wiki/Albert_Einstein
Licensed under CC BY-SA 4.0

Key Requirements

  • • Link to the source Wikipedia article
  • • Indicate content is under CC BY-SA 4.0
  • • Note if you made additional changes
  • • Share derivatives under the same license

Example

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

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