I have an electronic component which has no letter or number on it. It has 2 legs and when you shake it there is something moving inside up and down. I am searching for it for hour still have no clue. Here is the photo I've just taken:
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
It's a tilt switch.
It has a ball in it which breaks a contact when it rolls away or moves away from contacts.
Try measuring the resistance with it in various orientations
The image below is copied from here
This page says about one similar:
Tiny tilt switch type BT411-2 has a built in rolling ball (instead of mercury) so it doesn’t have the environmental health hazards that mercury tilt switches have.
These and similar types are used in vibration car alarms, sneakers that blink, toys, etc.
Re your link:
Strøm: 2mA maks.
Størrelse: housing Ø5.2 × 14mm (leads + 15mm)
Maks. temperature: 100°C
non-active contact: 10 Mohm
active contact: +/- 5 ohm
2 mA current rating.
10 megohm open circuit
5 Ohms operated.
5.2 mm dia x 14mm long with 15mm leads.
Maximum temperature 100 C.
Looks like a crystal oscillator , probably the 32.768Khz. Where did you get it from ?