Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chuckreynolds/95d29fa946aa61c3a0fbed15ec59e71c to your computer and use it in GitHub Desktop.
Save chuckreynolds/95d29fa946aa61c3a0fbed15ec59e71c to your computer and use it in GitHub Desktop.
As of 08-2024 fields unique and similar in On-demand API production endpoint v2/articles/ vs beta v2/structured-contents/ endpoints. https://enterprise.wikimedia.com/docs/on-demand/

/v2/articles/{name}

  • name, identifier, abstract, date_created, date_modified, date_previously_modified, version, previous_version, url, watchers_count, namespace, in_language, main_entity, additional_entities, categories, templates, redirects, is_part_of, article_body, license, event, image

Fields unique to v2/articles:

•	date_previously_modified
•	previous_version
•	watchers_count
•	namespace
•	categories
•	templates
•	redirects
•	article_body
•	license
•	event

/v2/structured-contents/{name}

  • name, identifier, abstract, version, url, date_created, date_modified, main_entity, is_part_of, additional_entities, in_language, image, description, infobox, article_sections

Fields unique to v2/structured-contents:

•	description
•	infobox
•	article_sections

Common Fields in both endpoints:

•	name
•	identifier
•	abstract
•	date_created
•	date_modified
•	version
•	url
•	main_entity
•	is_part_of
•	additional_entities
•	in_language
•	image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment