§ 100k Collection of usage data from digital services — StPO

Germany: Code of Criminal Procedure

(1) If certain facts justify the suspicion that someone has committed, in cases in which the attempt is punishable, has attempted to commit, or has prepared by a criminal offence a criminal offence of also considerable significance in the individual case, in particular a criminal offence designated in § 100a paragraph 2, usage data (§ 2 paragraph 2 number 3 of the Telecommunications-Digital Services-Data Protection Act) may be collected from the person who professionally makes available own or third-party digital services for use or mediates access to their use, insofar as this is necessary for the investigation of the facts and the collection of the data is proportionate to the significance of the matter. The collection of stored (retrograde) location data is only permissible under the conditions of § 100g paragraph 2. In all other respects, the collection of location data is only permissible for usage data accruing in the future or in real time, insofar as it is necessary for the investigation of the facts or the determination of the whereabouts of the accused.

(2) Insofar as the criminal offence is not covered by paragraph 1, usage data may also be collected if certain facts justify the suspicion that someone has committed as perpetrator or participant by means of telemedia one of the following criminal offences and the investigation of the facts would otherwise be hopeless:
1. from the Criminal Code a)Use of symbols of unconstitutional organisations pursuant to § 86a,b)Instructions for the commission of a serious violent offence endangering the state pursuant to § 91,c)Public incitement to criminal offences pursuant to § 111,d)Criminal offences against public order pursuant to §§ 126, 131 and 140,e)Insult of creeds, religious societies and ideological associations pursuant to § 166,f)Dissemination, acquisition and possession of child pornographic content pursuant to § 184b,g)Insult, defamation and libel pursuant to §§ 185 to 187 and disparagement of the memory of the deceased pursuant to § 189,h)Violations of the personal sphere of life and secrecy pursuant to §§ 201a, 202a and 202c,i)Stalking pursuant to § 238,j)Threat pursuant to § 241,k)Preparation of computer fraud pursuant to § 263a paragraph 3,l)Data manipulation and computer sabotage pursuant to §§ 303a and 303b paragraph 1,

2. from the Act on Copyright and Related Rights criminal offences pursuant to §§ 106 to 108b,

3. from the Federal Data Protection Act pursuant to § 42.
Sentence 1 does not apply to the collection of location data.

(3) By way of derogation from paragraphs 1 and 2, the public prosecutor’s office may, exclusively for the identification of the user, request information about the data collected pursuant to § 2 paragraph 2 number 3 letter a of the Telecommunications-Digital Services-Data Protection Act if the content of the use of the digital service pursuant to § 1 paragraph 4 number 1 of the Digital Services Act is already known to it.

(4) The collection of usage data pursuant to paragraphs 1 and 2 is only permissible if, on the basis of facts, the assumption is justified that the person concerned uses the digital service pursuant to § 1 paragraph 4 number 1 of the Digital Services Act that the person against whom the order is directed professionally makes available for use or to which he mediates access for use.

(5) If the collection of usage data or content of the use of a digital service pursuant to § 1 paragraph 4 number 1 of the Digital Services Act does not take place at a service provider that professionally makes digital services available for use, it shall be determined after completion of the communication process in accordance with the general provisions.

1950-09-12 
BGBl 1950, 455, 629
Neugefasst durch Bek. v. 7.4.1987 I 1074, 1319;; zuletzt geändert durch Art. 15 Abs. 16 G v. 3.7.2026 I Nr. 199; Mittelbare Änderung durch Art. 154a Nr. 3 Buchst. a G v. 20.11.2019 I 1626 ist nicht ausführbar, da das geänderte G v. 21.6.2019 I 846 zum Zeitpunkt des Inkrafttretens des mittelbaren Änderungsgesetzes bereits zum 1.11.2019 in Kraft getreten war