Flickr user ID (P3267)

From Wikidata
Jump to navigation Jump to search
identifier for a person or organisation, with an account at Flickr
  • Flickr ID
  • Flickr
  • Flickr username
  • Flickr account
  • NSID
  • Flickr NSID
Language Label Description Also known as
English
Flickr user ID
identifier for a person or organisation, with an account at Flickr
  • Flickr ID
  • Flickr
  • Flickr username
  • Flickr account
  • NSID
  • Flickr NSID

Data type

External identifier

Statements

0 references
Turn a username into a user ID with the webform found at https://www.webfx.com/tools/idgettr/ (English)
0 references
https://www.flickr.com/people/$1
0 references
^https?:\/\/(?:www\.|secure\.)?flickr\.com\/(?:photos|people)\/(\d{5,11}@N\d{2})
0 references
^https?:\/\/(?:www\.)?flickr\.com\/mail\/write\/\?to=(\d{5,11}@N\d{2})
0 references
^https?:\/\/(?:www\.|secure\.)?flickr\.com\/(?:photos|people)\/(.+)\/
0 references

Constraints

The following command (when replacing USERNAME) can be used on typical Linux distributions to extract the required ID to use for this property from a user's page on Flickr: wget -q -O - 'https://www.flickr.com/people/USERNAME/' | xmllint --html --recover --nowarning --xpath '//script[@class="modelExport"]' - 2>/dev/null | grep -Po '(?<="nsid":")\d{5,11}@N\d{2}(?=","pathAlias")' (English)
Located from the source of the HTML page by searching the source for string: "nsid": (English)
0 references