> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.strava.core.GetActivity

- Component: `appmixer.strava.core.GetActivity`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.strava 1.1.4](https://connectors.appmixer.com/connector/appmixer.strava/1.1.4.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.strava/1.1.4/component/appmixer.strava.core.GetActivity>

Retrieve detailed information for a specific activity by its ID.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Activity ID (`activityId`) | number | The ID of the activity. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Activity ID (`id`) | number | - |
| Resource State (`resource_state`) | number | - |
| External Id (`external_id`) | string | - |
| Upload Id (`upload_id`) | number | - |
| Athlete (`athlete`) | object | - |
| Name (`name`) | string | - |
| Distance (`distance`) | number | - |
| Moving Time (`moving_time`) | number | - |
| Elapsed Time (`elapsed_time`) | number | - |
| Total Elevation Gain (`total_elevation_gain`) | number | - |
| Type (`type`) | string | - |
| Sport Type (`sport_type`) | string | - |
| Start Date (`start_date`) | string | - |
| Start Date Local (`start_date_local`) | string | - |
| Timezone (`timezone`) | string | - |
| Utc Offset (`utc_offset`) | number | - |
| Start Latlng (`start_latlng`) | array | - |
| End Latlng (`end_latlng`) | array | - |
| Achievement Count (`achievement_count`) | number | - |
| Kudos Count (`kudos_count`) | number | - |
| Comment Count (`comment_count`) | number | - |
| Athlete Count (`athlete_count`) | number | - |
| Photo Count (`photo_count`) | number | - |
| Map (`map`) | object | - |
| Trainer (`trainer`) | boolean | - |
| Commute (`commute`) | boolean | - |
| Manual (`manual`) | boolean | - |
| Private (`private`) | boolean | - |
| Flagged (`flagged`) | boolean | - |
| Gear Id (`gear_id`) | string | - |
| From Accepted Tag (`from_accepted_tag`) | boolean | - |
| Average Speed (`average_speed`) | number | - |
| Max Speed (`max_speed`) | number | - |
| Average Cadence (`average_cadence`) | number | - |
| Average Temp (`average_temp`) | number | - |
| Average Watts (`average_watts`) | number | - |
| Weighted Average Watts (`weighted_average_watts`) | number | - |
| Kilojoules (`kilojoules`) | number | - |
| Device Watts (`device_watts`) | boolean | - |
| Has Heartrate (`has_heartrate`) | boolean | - |
| Max Watts (`max_watts`) | number | - |
| Elev High (`elev_high`) | number | - |
| Elev Low (`elev_low`) | number | - |
| Pr Count (`pr_count`) | number | - |
| Total Photo Count (`total_photo_count`) | number | - |
| Has Kudoed (`has_kudoed`) | boolean | - |
| Workout Type (`workout_type`) | number | - |
| Suffer Score (`suffer_score`) | null | - |
| Description (`description`) | string | - |
| Calories (`calories`) | number | - |
| Segment Efforts (`segment_efforts`) | array | - |
| Splits Metric (`splits_metric`) | array | - |
| Laps (`laps`) | array | - |
| Gear (`gear`) | object | - |
| Partner Brand Tag (`partner_brand_tag`) | null | - |
| Photos (`photos`) | object | - |
| Highlighted Kudosers (`highlighted_kudosers`) | array | - |
| Hide From Home (`hide_from_home`) | boolean | - |
| Device Name (`device_name`) | string | - |
| Embed Token (`embed_token`) | string | - |
| Segment Leaderboard Opt Out (`segment_leaderboard_opt_out`) | boolean | - |
| Leaderboard Opt Out (`leaderboard_opt_out`) | boolean | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.strava.core.GetActivity",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Retrieve detailed information for a specific activity by its ID.",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:strava"
  },
  "quota": {
    "manager": "appmixer:strava",
    "resources": "requests"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "activityId": {
            "type": "number"
          }
        },
        "required": [
          "activityId"
        ]
      },
      "inspector": {
        "inputs": {
          "activityId": {
            "type": "number",
            "tooltip": "The ID of the activity.",
            "label": "Activity ID",
            "index": 0
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Activity ID",
          "value": "id",
          "schema": {
            "type": "number",
            "example": 12345678987654320
          }
        },
        {
          "label": "Resource State",
          "value": "resource_state",
          "schema": {
            "type": "number",
            "example": 3
          }
        },
        {
          "label": "External Id",
          "value": "external_id",
          "schema": {
            "type": "string",
            "example": "garmin_push_987654321"
          }
        },
        {
          "label": "Upload Id",
          "value": "upload_id",
          "schema": {
            "type": "number",
            "example": 98765432123456780
          }
        },
        {
          "label": "Athlete",
          "value": "athlete",
          "schema": {
            "type": "object",
            "example": {
              "id": 12345678,
              "resource_state": 1
            },
            "properties": {
              "id": {
                "type": "number",
                "title": "Athlete.Id"
              },
              "resource_state": {
                "type": "number",
                "title": "Athlete.Resource State"
              }
            }
          }
        },
        {
          "label": "Name",
          "value": "name",
          "schema": {
            "type": "string",
            "example": "Morning Run"
          }
        },
        {
          "label": "Distance",
          "value": "distance",
          "schema": {
            "type": "number",
            "example": 10045.7
          }
        },
        {
          "label": "Moving Time",
          "value": "moving_time",
          "schema": {
            "type": "number",
            "example": 3240
          }
        },
        {
          "label": "Elapsed Time",
          "value": "elapsed_time",
          "schema": {
            "type": "number",
            "example": 3450
          }
        },
        {
          "label": "Total Elevation Gain",
          "value": "total_elevation_gain",
          "schema": {
            "type": "number",
            "example": 128
          }
        },
        {
          "label": "Type",
          "value": "type",
          "schema": {
            "type": "string",
            "example": "Run"
          }
        },
        {
          "label": "Sport Type",
          "value": "sport_type",
          "schema": {
            "type": "string",
            "example": "Run"
          }
        },
        {
          "label": "Start Date",
          "value": "start_date",
          "schema": {
            "type": "string",
            "example": "2024-07-15T07:30:00Z"
          }
        },
        {
          "label": "Start Date Local",
          "value": "start_date_local",
          "schema": {
            "type": "string",
            "example": "2024-07-15T09:30:00Z"
          }
        },
        {
          "label": "Timezone",
          "value": "timezone",
          "schema": {
            "type": "string",
            "example": "(GMT+01:00) Europe/Prague"
          }
        },
        {
          "label": "Utc Offset",
          "value": "utc_offset",
          "schema": {
            "type": "number",
            "example": 3600
          }
        },
        {
          "label": "Start Latlng",
          "value": "start_latlng",
          "schema": {
            "type": "array",
            "example": [
              50.0755,
              14.4378
            ],
            "items": {
              "type": "number"
            }
          }
        },
        {
          "label": "End Latlng",
          "value": "end_latlng",
          "schema": {
            "type": "array",
            "example": [
              50.0812,
              14.4295
            ],
            "items": {
              "type": "number"
            }
          }
        },
        {
          "label": "Achievement Count",
          "value": "achievement_count",
          "schema": {
            "type": "number",
            "example": 3
          }
        },
        {
          "label": "Kudos Count",
          "value": "kudos_count",
          "schema": {
            "type": "number",
            "example": 12
          }
        },
        {
          "label": "Comment Count",
          "value": "comment_count",
          "schema": {
            "type": "number",
            "example": 2
          }
        },
        {
          "label": "Athlete Count",
          "value": "athlete_count",
          "schema": {
            "type": "number",
            "example": 1
          }
        },
        {
          "label": "Photo Count",
          "value": "photo_count",
          "schema": {
            "type": "number",
            "example": 0
          }
        },
        {
          "label": "Map",
          "value": "map",
          "schema": {
            "type": "object",
            "example": {
              "id": "a12345678987654321",
              "polyline": "abcdefg",
              "resource_state": 3,
              "summary_polyline": "abcde"
            },
            "properties": {
              "id": {
                "type": "string",
                "title": "Map.Id"
              },
              "polyline": {
                "type": "string",
                "title": "Map.Polyline"
              },
              "resource_state": {
                "type": "number",
                "title": "Map.Resource State"
              },
              "summary_polyline": {
                "type": "string",
                "title": "Map.Summary Polyline"
              }
            }
          }
        },
        {
          "label": "Trainer",
          "value": "trainer",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Commute",
          "value": "commute",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Manual",
          "value": "manual",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Private",
          "value": "private",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Flagged",
          "value": "flagged",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Gear Id",
          "value": "gear_id",
          "schema": {
            "type": "string",
            "example": "b12345678"
          }
        },
        {
          "label": "From Accepted Tag",
          "value": "from_accepted_tag",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Average Speed",
          "value": "average_speed",
          "schema": {
            "type": "number",
            "example": 3.1
          }
        },
        {
          "label": "Max Speed",
          "value": "max_speed",
          "schema": {
            "type": "number",
            "example": 4.8
          }
        },
        {
          "label": "Average Cadence",
          "value": "average_cadence",
          "schema": {
            "type": "number",
            "example": 82.5
          }
        },
        {
          "label": "Average Temp",
          "value": "average_temp",
          "schema": {
            "type": "number",
            "example": 22
          }
        },
        {
          "label": "Average Watts",
          "value": "average_watts",
          "schema": {
            "type": "number",
            "example": 185.4
          }
        },
        {
          "label": "Weighted Average Watts",
          "value": "weighted_average_watts",
          "schema": {
            "type": "number",
            "example": 210.3
          }
        },
        {
          "label": "Kilojoules",
          "value": "kilojoules",
          "schema": {
            "type": "number",
            "example": 652.8
          }
        },
        {
          "label": "Device Watts",
          "value": "device_watts",
          "schema": {
            "type": "boolean",
            "example": true
          }
        },
        {
          "label": "Has Heartrate",
          "value": "has_heartrate",
          "schema": {
            "type": "boolean",
            "example": true
          }
        },
        {
          "label": "Max Watts",
          "value": "max_watts",
          "schema": {
            "type": "number",
            "example": 450
          }
        },
        {
          "label": "Elev High",
          "value": "elev_high",
          "schema": {
            "type": "number",
            "example": 345.6
          }
        },
        {
          "label": "Elev Low",
          "value": "elev_low",
          "schema": {
            "type": "number",
            "example": 210.2
          }
        },
        {
          "label": "Pr Count",
          "value": "pr_count",
          "schema": {
            "type": "number",
            "example": 2
          }
        },
        {
          "label": "Total Photo Count",
          "value": "total_photo_count",
          "schema": {
            "type": "number",
            "example": 1
          }
        },
        {
          "label": "Has Kudoed",
          "value": "has_kudoed",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Workout Type",
          "value": "workout_type",
          "schema": {
            "type": "number",
            "example": 0
          }
        },
        {
          "label": "Suffer Score",
          "value": "suffer_score",
          "schema": {
            "type": "null",
            "example": null
          }
        },
        {
          "label": "Description",
          "value": "description",
          "schema": {
            "type": "string",
            "example": "Tempo run with hill repeats"
          }
        },
        {
          "label": "Calories",
          "value": "calories",
          "schema": {
            "type": "number",
            "example": 487.2
          }
        },
        {
          "label": "Segment Efforts",
          "value": "segment_efforts",
          "schema": {
            "type": "array",
            "example": [],
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number",
                  "title": "Segment Efforts.Id"
                },
                "resource_state": {
                  "type": "number",
                  "title": "Segment Efforts.Resource State"
                },
                "name": {
                  "type": "string",
                  "title": "Segment Efforts.Name"
                },
                "activity": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number",
                      "title": "Segment Efforts.Activity.Id"
                    },
                    "resource_state": {
                      "type": "number",
                      "title": "Segment Efforts.Activity.Resource State"
                    }
                  },
                  "title": "Segment Efforts.Activity"
                },
                "athlete": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number",
                      "title": "Segment Efforts.Athlete.Id"
                    },
                    "resource_state": {
                      "type": "number",
                      "title": "Segment Efforts.Athlete.Resource State"
                    }
                  },
                  "title": "Segment Efforts.Athlete"
                },
                "elapsed_time": {
                  "type": "number",
                  "title": "Segment Efforts.Elapsed Time"
                },
                "moving_time": {
                  "type": "number",
                  "title": "Segment Efforts.Moving Time"
                },
                "start_date": {
                  "type": "string",
                  "title": "Segment Efforts.Start Date"
                },
                "start_date_local": {
                  "type": "string",
                  "title": "Segment Efforts.Start Date Local"
                },
                "distance": {
                  "type": "number",
                  "title": "Segment Efforts.Distance"
                },
                "start_index": {
                  "type": "number",
                  "title": "Segment Efforts.Start Index"
                },
                "end_index": {
                  "type": "number",
                  "title": "Segment Efforts.End Index"
                },
                "average_cadence": {
                  "type": "number",
                  "title": "Segment Efforts.Average Cadence"
                },
                "device_watts": {
                  "type": "boolean",
                  "title": "Segment Efforts.Device Watts"
                },
                "average_watts": {
                  "type": "number",
                  "title": "Segment Efforts.Average Watts"
                },
                "segment": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number",
                      "title": "Segment Efforts.Segment.Id"
                    },
                    "resource_state": {
                      "type": "number",
                      "title": "Segment Efforts.Segment.Resource State"
                    },
                    "name": {
                      "type": "string",
                      "title": "Segment Efforts.Segment.Name"
                    },
                    "activity_type": {
                      "type": "string",
                      "title": "Segment Efforts.Segment.Activity Type"
                    },
                    "distance": {
                      "type": "number",
                      "title": "Segment Efforts.Segment.Distance"
                    },
                    "average_grade": {
                      "type": "number",
                      "title": "Segment Efforts.Segment.Average Grade"
                    },
                    "maximum_grade": {
                      "type": "number",
                      "title": "Segment Efforts.Segment.Maximum Grade"
                    },
                    "elevation_high": {
                      "type": "number",
                      "title": "Segment Efforts.Segment.Elevation High"
                    },
                    "elevation_low": {
                      "type": "number",
                      "title": "Segment Efforts.Segment.Elevation Low"
                    },
                    "start_latlng": {
                      "type": "array",
                      "items": {
                        "type": "number"
                      },
                      "title": "Segment Efforts.Segment.Start Latlng"
                    },
                    "end_latlng": {
                      "type": "array",
                      "items": {
                        "type": "number"
                      },
                      "title": "Segment Efforts.Segment.End Latlng"
                    },
                    "climb_category": {
                      "type": "number",
                      "title": "Segment Efforts.Segment.Climb Category"
                    },
                    "city": {
                      "type": "string",
                      "title": "Segment Efforts.Segment.City"
                    },
                    "state": {
                      "type": "string",
                      "title": "Segment Efforts.Segment.State"
                    },
                    "country": {
                      "type": "string",
                      "title": "Segment Efforts.Segment.Country"
                    },
                    "private": {
                      "type": "boolean",
                      "title": "Segment Efforts.Segment.Private"
                    },
                    "hazardous": {
                      "type": "boolean",
                      "title": "Segment Efforts.Segment.Hazardous"
                    },
                    "starred": {
                      "type": "boolean",
                      "title": "Segment Efforts.Segment.Starred"
                    }
                  },
                  "title": "Segment Efforts.Segment"
                },
                "kom_rank": {
                  "type": "null",
                  "title": "Segment Efforts.Kom Rank"
                },
                "pr_rank": {
                  "type": "null",
                  "title": "Segment Efforts.Pr Rank"
                },
                "achievements": {
                  "type": "array",
                  "items": {},
                  "title": "Segment Efforts.Achievements"
                },
                "hidden": {
                  "type": "boolean",
                  "title": "Segment Efforts.Hidden"
                }
              }
            }
          }
        },
        {
          "label": "Splits Metric",
          "value": "splits_metric",
          "schema": {
            "type": "array",
            "example": [],
            "items": {
              "type": "object",
              "properties": {
                "distance": {
                  "type": "number",
                  "title": "Splits Metric.Distance"
                },
                "elapsed_time": {
                  "type": "number",
                  "title": "Splits Metric.Elapsed Time"
                },
                "elevation_difference": {
                  "type": "number",
                  "title": "Splits Metric.Elevation Difference"
                },
                "moving_time": {
                  "type": "number",
                  "title": "Splits Metric.Moving Time"
                },
                "split": {
                  "type": "number",
                  "title": "Splits Metric.Split"
                },
                "average_speed": {
                  "type": "number",
                  "title": "Splits Metric.Average Speed"
                },
                "pace_zone": {
                  "type": "number",
                  "title": "Splits Metric.Pace Zone"
                }
              }
            }
          }
        },
        {
          "label": "Laps",
          "value": "laps",
          "schema": {
            "type": "array",
            "example": [],
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number",
                  "title": "Laps.Id"
                },
                "resource_state": {
                  "type": "number",
                  "title": "Laps.Resource State"
                },
                "name": {
                  "type": "string",
                  "title": "Laps.Name"
                },
                "activity": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number",
                      "title": "Laps.Activity.Id"
                    },
                    "resource_state": {
                      "type": "number",
                      "title": "Laps.Activity.Resource State"
                    }
                  },
                  "title": "Laps.Activity"
                },
                "athlete": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number",
                      "title": "Laps.Athlete.Id"
                    },
                    "resource_state": {
                      "type": "number",
                      "title": "Laps.Athlete.Resource State"
                    }
                  },
                  "title": "Laps.Athlete"
                },
                "elapsed_time": {
                  "type": "number",
                  "title": "Laps.Elapsed Time"
                },
                "moving_time": {
                  "type": "number",
                  "title": "Laps.Moving Time"
                },
                "start_date": {
                  "type": "string",
                  "title": "Laps.Start Date"
                },
                "start_date_local": {
                  "type": "string",
                  "title": "Laps.Start Date Local"
                },
                "distance": {
                  "type": "number",
                  "title": "Laps.Distance"
                },
                "start_index": {
                  "type": "number",
                  "title": "Laps.Start Index"
                },
                "end_index": {
                  "type": "number",
                  "title": "Laps.End Index"
                },
                "total_elevation_gain": {
                  "type": "number",
                  "title": "Laps.Total Elevation Gain"
                },
                "average_speed": {
                  "type": "number",
                  "title": "Laps.Average Speed"
                },
                "max_speed": {
                  "type": "number",
                  "title": "Laps.Max Speed"
                },
                "average_cadence": {
                  "type": "number",
                  "title": "Laps.Average Cadence"
                },
                "device_watts": {
                  "type": "boolean",
                  "title": "Laps.Device Watts"
                },
                "average_watts": {
                  "type": "number",
                  "title": "Laps.Average Watts"
                },
                "lap_index": {
                  "type": "number",
                  "title": "Laps.Lap Index"
                },
                "split": {
                  "type": "number",
                  "title": "Laps.Split"
                }
              }
            }
          }
        },
        {
          "label": "Gear",
          "value": "gear",
          "schema": {
            "type": "object",
            "example": {
              "id": "b12345678",
              "primary": true,
              "name": "Nike Pegasus 40",
              "resource_state": 2,
              "distance": 523412
            },
            "properties": {
              "id": {
                "type": "string",
                "title": "Gear.Id"
              },
              "primary": {
                "type": "boolean",
                "title": "Gear.Primary"
              },
              "name": {
                "type": "string",
                "title": "Gear.Name"
              },
              "resource_state": {
                "type": "number",
                "title": "Gear.Resource State"
              },
              "distance": {
                "type": "number",
                "title": "Gear.Distance"
              }
            }
          }
        },
        {
          "label": "Partner Brand Tag",
          "value": "partner_brand_tag",
          "schema": {
            "type": "null",
            "example": null
          }
        },
        {
          "label": "Photos",
          "value": "photos",
          "schema": {
            "type": "object",
            "example": {
              "primary": null,
              "use_primary_photo": true,
              "count": 0
            },
            "properties": {
              "primary": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "null",
                    "title": "Photos.Primary.Id"
                  },
                  "unique_id": {
                    "type": "string",
                    "title": "Photos.Primary.Unique Id"
                  },
                  "urls": {
                    "type": "object",
                    "properties": {
                      "100": {
                        "type": "string",
                        "title": "Photos.Primary.Urls.100"
                      },
                      "600": {
                        "type": "string",
                        "title": "Photos.Primary.Urls.600"
                      }
                    },
                    "title": "Photos.Primary.Urls"
                  },
                  "source": {
                    "type": "number",
                    "title": "Photos.Primary.Source"
                  }
                },
                "title": "Photos.Primary"
              },
              "use_primary_photo": {
                "type": "boolean",
                "title": "Photos.Use Primary Photo"
              },
              "count": {
                "type": "number",
                "title": "Photos.Count"
              }
            }
          }
        },
        {
          "label": "Highlighted Kudosers",
          "value": "highlighted_kudosers",
          "schema": {
            "type": "array",
            "example": [],
            "items": {
              "type": "object",
              "properties": {
                "destination_url": {
                  "type": "string",
                  "title": "Highlighted Kudosers.Destination Url"
                },
                "display_name": {
                  "type": "string",
                  "title": "Highlighted Kudosers.Display Name"
                },
                "avatar_url": {
                  "type": "string",
                  "title": "Highlighted Kudosers.Avatar Url"
                },
                "show_name": {
                  "type": "boolean",
                  "title": "Highlighted Kudosers.Show Name"
                }
              }
            }
          }
        },
        {
          "label": "Hide From Home",
          "value": "hide_from_home",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Device Name",
          "value": "device_name",
          "schema": {
            "type": "string",
            "example": "Garmin Forerunner 265"
          }
        },
        {
          "label": "Embed Token",
          "value": "embed_token",
          "schema": {
            "type": "string",
            "example": "abc123def456ghi789"
          }
        },
        {
          "label": "Segment Leaderboard Opt Out",
          "value": "segment_leaderboard_opt_out",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Leaderboard Opt Out",
          "value": "leaderboard_opt_out",
          "schema": {
            "type": "boolean",
            "example": false
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
