# Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID

#### Obtaining Account and Project IDs

Account and project IDs are required in URLs when you call some APIs.

#### Obtaining Log Group and Log Stream IDs

- Obtain the IDs from the console.
  1. Log in to the LTS console.
  2. On the Log Management page, obtain the log group ID.
  3. Click the name of a log group and obtain the log stream ID on the page displayed.
- Obtain the IDs by calling APIs.
  - Querying All Log Groups of an Account
  - Querying All Log Streams in a Specified Log Group

Parent topic: Public Parameters