{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":null,"catalogType":"api","categories":["search-research"],"dataPlatform":"wikipedia","dataPlatformLogoUrl":"","dataPlatformTranslations":{"ar":"ويكيميديا","ja":"ウィキメディア","zh":"维基媒体"},"dataProduct":"media","description":"Search Wikimedia Commons File via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Wikimedia, pass parameters such as action, format, formatversion, and retrieve structured data including commons page identifier, file page title, and search-result index to discover source media, build an editorial shortlist, and connect to file metadata.","descriptionTranslations":{"ar":"اعثر على صفحات ملفات Wikimedia Commons بالكلمات المفتاحية عبر OpenAny REST لإعداد قائمة وسائط مرشحة للبحث أو التحرير. استخدم عناوين الملفات ومعرّفات الصفحات لتنظيم المصادر ومراجعتها على Commons، واجلب روابط الوسائط المباشرة وبيانات المبدعين وتراخيص الملفات عبر طلب بيانات وصفية منفصل عند الحاجة.","ja":"OpenAny REST で Wikimedia Commons のファイルページをキーワード検索し、調査や編集に使うメディア候補を絞り込めます。ファイル名とページ ID で出典を整理して Commons 上で確認を続け、メディアの直接 URL、作者表記、個別のライセンス情報が必要な場合は、別のメタデータ取得を利用します。","zh":"通过 OpenAny REST 按关键词查找 Wikimedia Commons 文件页面，为研究或编辑流程筛选候选素材。利用文件标题与页面 ID 整理来源记录，再到 Commons 继续查看；需要媒体直链、创作者署名及具体许可证时，另行查询文件元数据。"},"effectContentHtml":"","executionMode":"sync","id":"c0967425-5e95-4bc7-b102-f85adbbb6620","includedContentHtml":"","inputs":[{"description":"Set to query.","enum_values":["query"],"location":"query","name":"action","nullable":false,"required":true,"type":"string"},{"description":"Set to search.","enum_values":["search"],"location":"query","name":"generator","nullable":false,"required":true,"type":"string"},{"description":"Set to 6.","enum_values":["6"],"location":"query","name":"gsrnamespace","nullable":false,"required":true,"type":"string"},{"description":"Maximum number of files to return.","location":"query","maximum":"10","minimum":"1","name":"gsrlimit","nullable":false,"required":true,"type":"integer"},{"description":"Search keywords.","location":"query","max_length":255,"min_length":1,"name":"gsrsearch","nullable":false,"required":true,"type":"string"},{"description":"Set to json.","enum_values":["json"],"location":"query","name":"format","nullable":false,"required":true,"type":"string"},{"description":"Set to 2.","enum_values":["2"],"location":"query","name":"formatversion","nullable":false,"required":true,"type":"string"}],"logoUrl":"https://upload.wikimedia.org/wikipedia/commons/4/4a/Commons-logo.svg","method":"GET","name":"Wikimedia Commons File Search API","nameTranslations":{"ar":"API للبحث عن ملفات Wikimedia Commons","ja":"Wikimedia Commons ファイル検索 API","zh":"Wikimedia Commons 文件搜索 API"},"overviewHtml":"\u003ch2\u003eWikimedia Commons File Search API\u003c/h2\u003e\n\u003cp\u003eThis Action API request uses generator=search within file namespace 6. Matching pages appear under query.pages with titles and page identifiers; the request limit is between 1 and 10.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eQuery: action=query, generator=search, gsrnamespace=6, gsrsearch, gsrlimit (1–10), format=json and formatversion=2.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003ewikimedia · Wikimedia Commons File Search\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eDiscover source media\u003c/strong\u003e: Find file pages relevant to a topic before reviewing media details.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eBuild an editorial shortlist\u003c/strong\u003e: Keep page IDs and file titles with research notes.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eConnect to file metadata\u003c/strong\u003e: Use the discovered file title in a separate metadata workflow for URLs and rights information.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003equery.pages[].pageid\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCommons page identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003equery.pages[].title\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eFile page title\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003equery.pages[].ns\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNamespace identifier; 6 denotes files\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003equery.pages[].index\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSearch-result index\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/wikimedia/commons/search \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode action=query \\\n  --data-urlencode format=json \\\n  --data-urlencode formatversion=2 \\\n  --data-urlencode generator=search \\\n  --data-urlencode gsrlimit=2 \\\n  --data-urlencode gsrnamespace=6 \\\n  --data-urlencode \u0026#39;gsrsearch=Isaac Newton\u0026#39;\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The request below is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/c0967425-5e95-4bc7-b102-f85adbbb6620\"\u003ePublished Wikimedia Commons File Search API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eDoes this endpoint return direct image downloads?\u003c/h3\u003e\n\u003cp\u003eIt returns matching Commons file-page records. Direct media URLs are outside the documented business fields of this operation.\u003c/p\u003e\n\u003ch3\u003eHow many file pages can I request?\u003c/h3\u003e\n\u003cp\u003eUse gsrlimit from 1 to 10.\u003c/p\u003e\n\u003ch3\u003eIs a search result proof that a file is free to reuse?\u003c/h3\u003e\n\u003cp\u003eNo. Check the individual file page for its license, attribution and other reuse requirements.\u003c/p\u003e\n\u003ch3\u003eCan I filter by image dimensions or license?\u003c/h3\u003e\n\u003cp\u003eThe current request contract provides keyword search and a file namespace constraint, not size or license filters.\u003c/p\u003e\n\u003ch3\u003eCan I use the returned continuation token?\u003c/h3\u003e\n\u003cp\u003eThe reference response includes continuation data, but this implementation declares no continuation request input.\u003c/p\u003e\n\u003ch3\u003eDoes namespace 6 contain only photographs?\u003c/h3\u003e\n\u003cp\u003eIt is the file namespace. Search results can refer to different media types rather than photographs alone.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/wikipedia/wikipedia-article-search-capability\"\u003eWikipedia Article Search API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/wikipedia/wikidata-entity-search\"\u003eWikidata Entity Search API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/wikipedia/wikimedia-commons-file-search","providerId":"wikimedia","publicPath":"/v1/agent-apis/wikimedia/commons/search","requestContentType":"none","revision":7,"samples":[{"http_status":200,"name":"Documentation example","request":{"body":null,"headers":{},"path":{},"query":{"action":"query","format":"json","formatversion":"2","generator":"search","gsrlimit":2,"gsrnamespace":"6","gsrsearch":"Isaac Newton"}},"response_body":{"batchcomplete":true,"continue":{"continue":"gsroffset||","gsroffset":2},"query":{"pages":[{"index":1,"ns":6,"pageid":6364764,"title":"File:Sir Isaac Newton by Sir Godfrey Kneller, Bt.jpg"},{"index":2,"ns":6,"pageid":62394615,"title":"File:Sir Isaac Newton bust in METU Campus Ankara Turkey.jpg"}]}}}],"seoDescription":"Search Wikimedia Commons File via REST or MCP powered by Wikimedia. Pay per call, no subscription. Get commons page identifier and file page title in JSON.","updatedAt":"2026-12-03T02:36:40.006Z","usageInstructionsHtml":""}}