Wikidata QID JSON API
Please use the following format to make a request:
/Q<number>.json
Example:
https://qjson.toolforge.org/Q405.json
https://qjson.toolforge.org/Q405.json?lang=fr