Get Insight By Id

from ceic_api_client.api_client import ApiClient
from ceic_api_client.apis.dictionary_api import DictionaryApi
from ceic_api_client.apis.series_api import SeriesApi
from ceic_api_client.apis.insights_api import InsightsApi


access_token = "ENTER YOUR API KEY HERE" example_insight_id = "INSIGHT_ID"
api_client = ApiClient() insights_api = InsightsApi(api_client=api_client)
insights_result = insights_api.get_insight(id=example_insight_id, token=access_token)
# Access insights result data insight = insights_result.data[0] insight_category = insight.category # OR insight = insights_result.to_dict()["data"][0] insight_category = insight["category"]