Skip to main content
POST
Article

Request contract

  • Method and path: POST /apis/v1/wikipedia/articles/lookup
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/wikipedia/articles/lookup
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0001 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
limit
integer
required

Most matching articles to return, 1 to 10. More than one only helps when no project is pinned and the title exists on several wikis.

Provider reference: minimum 1; maximum 10; default 1.

Required range: 1 <= x <= 10
name
string
required

Exact article title as on the wiki, for example Marie_Curie or Marie Curie. Case-sensitive: Wikipedia titles start with a capital letter. From a URL such as https://fr.wikipedia.org/wiki/Marie_Curie, use the part after /wiki/.

body
enum<string>

Article body format when fields is omitted: wikitext (default), html, both, or none. Omit body entirely when using fields, including when no body is needed.

Available options:
wikitext,
html,
both,
none
fields
string[]

Return only the named fields, using dot notation; at most 50 entries. Omit body when using fields. Include article_body.wikitext or article_body.html here to select body content.

Maximum array length: 50
language
string

Wikimedia language code, for example en, fr or zh-yue. Returns the article from any project in that language; combine with project to pin one wiki.

project
string

Wikimedia project identifier: language code plus project code, for example enwiki (English Wikipedia), frwiki, dewiki, enwiktionary or eswikivoyage. Defaults to enwiki when neither project nor language is given. reference/projects lists every identifier.

Response

Returns the tool result directly as an array of article objects. With fields, articles contain only the selected fields. body selects wikitext, html, both, or none. No article property is required because field projection is supported.

Known structure is documented from the official provider descriptors and production calls. Optional fields and additional fields are allowed; field presence is not inferred from a single response.

abstract
string

Short plain-text summary of the article.

additional_entities
object[]

Other Wikidata entities used on the page.

article_body
object

Selected body formats. Omitted with body=none or when excluded by fields.

categories
object[]

Categories the article belongs to: name and url.

date_created
string
date_modified
string

When the current revision was saved.

date_previously_modified
string
event
object

The pipeline event behind this revision: type and date_created.

identifier
number

MediaWiki page ID; not accepted as lookup input.

image
object

Main image: content_url, width, height and thumbnail.

in_language
object

Language: identifier (for example en), name and direction.

is_part_of
object

Project: identifier (for example enwiki), code, name and url.

license
object[]

Licenses for the content, normally CC BY-SA 4.0, with name and url.

main_entity
object

Connected Wikidata item: identifier (QID such as Q7186) and url. Pass the QID to wikidata/item.

name
string

Article title as displayed on the page.

namespace
object

MediaWiki namespace; 0 is the main article namespace.

previous_version
object
protection
object[]

Edit and move protections, absent when unprotected.

redirects
object[]

Titles that redirect to this article: name and url.

templates
object[]

Templates used on the page.

url
string

Canonical article URL, for citation.

version
object

Current revision: identifier, editor, comment, tags, size, and credibility signals under scores (revertrisk, referencerisk, referenceneed) and maintenance_tags.

watchers_count
number