Skip to main content
POST
/
api
/
wikimedia_commons
/
files
/
usage
/wikimedia_commons/files/usage
curl --request POST \
  --url https://api.anysite.io/api/wikimedia_commons/files/usage \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "file": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "title": "<string>",
    "@type": "@wikimedia_commons_file_usage",
    "wiki": "",
    "namespace": 123,
    "web_url": ""
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
file
string
required

File name, numeric page id, or a Wikimedia Commons file URL

Minimum string length: 1
Examples:

"File:Felis catus-cat on snow.jpg"

"9437797"

count
integer
required

Number of usages to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

title
string
required
@type
string
default:@wikimedia_commons_file_usage
wiki
string
default:""
namespace
integer | null
web_url
string
default:""