Skip to content

mw analytics mediarequests

Releasev0.35.0 · cfeceb67

mw analytics mediarequests [flags]

Get media file request counts. Start and end dates are inclusive and use UTC; periods without activity may be omitted by the API.

--agent <string>
Agent: all-agents, user, or spider Default: all-agents.
--end <string>
End date in YYYYMMDD format (default: yesterday)
--format <string>
Format the specified output
--granularity <string>
Data granularity: daily or monthly Default: daily.
--graph-width <int>
Graph width in columns (0 detects the terminal; otherwise 24–1000)
--media-type <string>
Media type: all-media-types, image, video, audio, document, or other Default: all-media-types.
-o, --output <string>
Output format (csv|graph|jq|json|table) Default: auto.
--referer <string>
Request origin: Wikimedia project host, all-referers, internal, external, search-engine, unknown, or none Default: all-referers.
--start <string>
Start date in YYYYMMDD format (default: 30 days ago)
--timeout <duration>
HTTP request timeout Default: 20s.
--help
Help for this command
--no-interaction
Do not ask any interactive questions
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Terminal window
mw analytics mediarequests --media-type image --start 20250101 --end 20250131
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.