<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Zakariya khan on Medium]]></title>
        <description><![CDATA[Stories by Zakariya khan on Medium]]></description>
        <link>https://medium.com/@zak786khan?source=rss-876a7afb7170------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kKlJUG8FRLRXVXjhBeoqCA.png</url>
            <title>Stories by Zakariya khan on Medium</title>
            <link>https://medium.com/@zak786khan?source=rss-876a7afb7170------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 11:24:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zak786khan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Complete Guide to App Store Connect Analytics]]></title>
            <link>https://medium.com/@zak786khan/the-complete-guide-to-app-store-connect-analytics-662f096d7ec4?source=rss-876a7afb7170------2</link>
            <guid isPermaLink="false">https://medium.com/p/662f096d7ec4</guid>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[data-ingestion]]></category>
            <category><![CDATA[appstore-connect]]></category>
            <category><![CDATA[app-store-optimization]]></category>
            <category><![CDATA[appstore-analytics]]></category>
            <dc:creator><![CDATA[Zakariya khan]]></dc:creator>
            <pubDate>Sun, 20 Sep 2026 07:58:35 GMT</pubDate>
            <atom:updated>2026-09-20T07:58:35.406Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OSyzu6DPNuvhYhajJdIp5g.png" /></figure><blockquote><strong>The problem I was handed<br></strong> I was given the opportunity to build an ASO analytics dashboard where every number had to come from the client’s own App Store Connect account. Not scraped, not estimated by any third party tool but their real, first-party Apple data: <strong>impressions, product page views, downloads, installs, sessions, crashes</strong>, broken down by <strong>traffic source</strong> and <strong>territory</strong>.</blockquote><blockquote>On paper it sounded like a week of work. Connect to an API, pull some numbers, draw some charts. In practice, Apple’s Analytics API turned out to be nothing like a normal <strong>REST API</strong>, and most of what I needed to know wasn’t in one place anywhere on the internet. I spent far more time discovering how the thing actually behaves than writing the code that consumed it. This guide is the path I wish someone had drawn for me. It walks from “<strong>I have a client who says yes</strong>” all the way to a <strong>running scheduler</strong> that <strong>ingests</strong> their history and keeps itself current in the order you’ll actually hit each problem.</blockquote><h3><strong>Prerequisites: What to know</strong></h3><p>You don’t need to be a Software engineer, but a few concepts will make everything below land faster. If any of these are unfamiliar, spend few minutes on them first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0IZs5HTV1JTOMEJ7XhYyg.png" /></figure><p>On the client’s side, the only thing you truly need from them is an API key with the right role. Everything else is yours to build.</p><h3><strong>Why this exists: One guide instead of twenty tabs</strong></h3><p>Apple documents each endpoint in isolation, and each page is accurate. What no page tells you is the order, the waiting, or the gotchas. Nothing warns you that reports must be provisioned before they exist, that provisioning takes around 48hours to bear fruit, that a “<strong>report</strong>” is really a tree you have to walk four levels deep before you touch a single number, or that the default set of reports is large enough to melt a modest server.</p><p>So I have stitched the whole journey together end to end: <strong>the keys, the token, the report model</strong>, the <strong>exact call sequence</strong>, and then the two rounds of optimisation that took the pipeline from “<strong>times out</strong>” to “runs on a <strong>schedule</strong>.” Follow it top to bottom and you shouldn’t need to go searching mid build.</p><h3>Chapter 1: The key is the whole kingdom</h3><p>Everything starts with a key, and getting the key wrong costs you a day of confusing failures.</p><p>In App Store Connect, keys are created under <br><strong>Users and Access → Integrations</strong>.</p><p>When you <strong>create</strong> one you <strong>choose a role</strong>, and that <strong>role</strong> <strong>decides</strong> <strong>whether the analytics endpoints will answer you at all. </strong>For the analytics reports API you want a key with <strong>Admin/App Manager </strong>access. Lesser roles can authenticate perfectly well and will happily list your apps, then refuse the analytics report endpoints with a <strong>403</strong> that never actually says “FORBIDDEN_ERROR” I lost real time to exactly that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*M0KHXwb6uL-e8Fix3d6N3w.png" /></figure><p>Creating the key gives you three pieces of information, and you need all three:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eA-12R7wpO-a4mFCPUybmQ.png" /></figure><blockquote><strong>NOTE: </strong>Apple lets you download the <strong>.p8 exactly one time</strong>. Lose it and there is no recovery path: you revoke the key and generate a new one. Treat it like a production database password from the moment it lands in your Downloads folder.</blockquote><p><strong>Validate the key the moment it arrives</strong></p><p>Because that file is a private key, storing it as is anywhere is a liability. In my pipeline it’s encrypted with symmetric encryption before it ever reaches the database, and decrypted only in memory at the moment of signing. It’s also validated on the way in. If the upload isn’t genuinely an EC private key, I want to know at onboarding with a clear message, not three hours later inside a background job.</p><pre># Validate at ingestion, not at signing time.<br>from cryptography.hazmat.primitives.serialization import load_pem_private_key<br>from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePrivateKey<br><br>MAX_P8_SIZE_BYTES = 8192 # a real .p8 is well under 1 KB<br><br>def validate_p8(p8_content: bytes) -&gt; tuple[bool, str]:<br>  if not p8_content:<br>    return False, &quot;Private key file is required&quot;<br>  if len(p8_content) &gt; MAX_P8_SIZE_BYTES:<br>    return False, f&quot;File exceeds {MAX_P8_SIZE_BYTES} bytes&quot;<br>  try:<br>    key = load_pem_private_key(p8_content, password=None)<br>  except Exception:<br>      # Never echo the key material back in the error.<br>      return False, &quot;Not a valid private key in PEM format&quot;<br>  if not isinstance(key, EllipticCurvePrivateKey):<br>    return False, &quot;Key is not an elliptic curve (EC) private key&quot;<br>  return True, &quot;&quot;</pre><p><strong>Encrypting it before it touches storage</strong></p><p>Symmetric encryption is enough here, and keeping it behind a tiny interface means you can swap in a managed KMS later without touching the calling code.</p><pre>from cryptography.fernet import Fernet<br><br>class FernetSecretProvider:<br>&quot;&quot;&quot;Encrypts .p8 material at rest. Swap for a KMS provider later.&quot;&quot;&quot;<br><br>  def __init__(self, encryption_key: str) -&gt; None:<br>    self._fernet = Fernet(encryption_key.encode())<br><br>def encrypt(self, plaintext: bytes) -&gt; bytes:<br>  return self._fernet.encrypt(plaintext)<br><br>def decrypt(self, ciphertext: bytes) -&gt; bytes:<br>  return self._fernet.decrypt(ciphertext)<br><br># On upload: validate, then encrypt, then store the ciphertext.<br>ok, err = validate_p8(p8_content)<br><br>if not ok:<br>  raise ValueError(err)<br>encrypted_key = secret_provider.encrypt(p8_content)<br># store (issuer_id, key_id, encrypted_key), never the raw bytes</pre><h3>Chapter 2: A map of the endpoints you’re about to meet</h3><p>Before going deeper, here’s the territory. All of these live under <a href="https://developer.apple.com/documentation/appstoreconnectapi">https://developer.apple.com/documentation/appstoreconnectapi</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wt3swE40eIy84ke5Mdz3hg.png" /></figure><blockquote>A key with insufficient privileges will often pass the easy test. GET /v1/apps returns a tidy list, you conclude your credentials are fine, and then the analytics endpoints reject you. If authentication clearly works but anything under analyticsReport* returns 401 or 403, stop debugging your JWT code and go re-check the key’s role. That is almost always the answer.</blockquote><h3>Chapter 3: Three files, one token, every request</h3><p>Apple doesn’t authenticate you with a static secret in a header. Instead you mint a short lived JSON Web Token, sign it with your private key, and attach it as a bearer token. This is where the three pieces from Section 1 finally come together, and it explains why you need all of them:</p><ul><li><strong>Issuer ID</strong>: becomes the <strong>iss</strong> claim. It tells Apple which account is calling.</li><li><strong>Key ID</strong> goes in the JWT header as <strong>kid</strong> . It tells Apple which of your public keys to verify against.</li><li>.<strong>p8 file</strong>: private key does the actual signing, using ES256</li></ul><p>Apple holds the matching public key for that Key ID. When a request arrives it reads <strong>kid</strong> , looks up the <strong>public key</strong>, and <strong>verifies the signature</strong>. That is the <strong>whole handshake</strong>, which is why a token cannot be forged without the .p8 , and why every single API call needs a valid one attached.</p><pre>import jwt, time<br><br>def generate_token(issuer_id: str, key_id: str, private_key: bytes) -&gt; str:<br>  <br>  now = int(time.time())<br>  payload = {<br>    &quot;iss&quot;: issuer_id,<br>    &quot;iat&quot;: now,<br>    &quot;exp&quot;: now + 1200, # 20 min, Apple&#39;s hard ceiling<br>    &quot;aud&quot;: &quot;appstoreconnect-v1&quot;,<br>  }<br>  headers = {&quot;alg&quot;: &quot;ES256&quot;, &quot;kid&quot;: key_id, &quot;typ&quot;: &quot;JWT&quot;}<br>  <br>  return jwt.encode(payload, private_key, algorithm=&quot;ES256&quot;, headers=headers)<br><br># Then, on every request:<br>headers = {&quot;Authorization&quot;: f&quot;Bearer {token}&quot;}</pre><p><strong>The twenty minute problem</strong></p><p>Apple caps token lifetime at <strong>1200 seconds</strong>. That is fine for a quick script and a real problem for a full ingest, which can easily run longer than twenty minutes. If you sign one token at the start and reuse it throughout, calls in the back half of the run begin failing with 401 for no apparent reason.</p><p>The fix is to <strong>cache the token</strong> <strong>alongside its expiry</strong> and <strong>regenerate it</strong> before it dies rather than reacting to a failure. Keying that cache by <strong>(issuer_id, key_id)</strong> also makes the whole thing <strong>multi tenant</strong> for free, which matters the moment you onboard a second client:</p><pre>class AscJwtSigner:<br>    MAX_EXPIRY_SECONDS = 1200  # Apple&#39;s limit<br>    REFRESH_BUFFER_SECONDS = 60  # regenerate while 60s still remain<br><br>    def __init__(self, secret_provider) -&gt; None:<br>        self._secret_provider = secret_provider<br><br>        # (issuer_id, key_id) -&gt; (token, expiry_timestamp)<br>        self._cache: dict[tuple[str, str], tuple[str, float]] = {}<br><br>    def generate_token(<br>        self,<br>        issuer_id,<br>        key_id,<br>        encrypted_private_key,<br>    ) -&gt; str:<br>        cache_key = (issuer_id, key_id)<br><br>        # Reuse only if comfortably alive.<br>        cached = self._cache.get(cache_key)<br>        if cached and cached[1] &gt; time.time() + self.REFRESH_BUFFER_SECONDS:<br>            return cached[0]<br><br>        # Decrypt only at the moment of signing.<br>        private_key = self._secret_provider.decrypt(encrypted_private_key)<br><br>        try:<br>            now = int(time.time())<br>            exp = now + self.MAX_EXPIRY_SECONDS<br><br>            token = jwt.encode(<br>                {<br>                    &quot;iss&quot;: issuer_id,<br>                    &quot;iat&quot;: now,<br>                    &quot;exp&quot;: exp,<br>                    &quot;aud&quot;: &quot;appstoreconnect-v1&quot;,<br>                },<br>                private_key,<br>                algorithm=&quot;ES256&quot;,<br>                headers={<br>                    &quot;alg&quot;: &quot;ES256&quot;,<br>                    &quot;kid&quot;: key_id,<br>                    &quot;typ&quot;: &quot;JWT&quot;,<br>                },<br>            )<br>        finally:<br>            del private_key  # drop the reference promptly<br><br>        self._cache[cache_key] = (token, exp)<br>        return token<br><br>    def invalidate(self, issuer_id, key_id) -&gt; None:<br>        &quot;&quot;&quot;Call this when a key is rotated or revoked.&quot;&quot;&quot;<br>        self._cache.pop((issuer_id, key_id), None)</pre><blockquote>Refresh on a buffer, never on a 401. Waiting for the failure costs you a wasted round trip on the hot path and puts a confusing error in your logs for something that isn’t actually a problem</blockquote><h3>Chapter 4: Reports don’t exist until you ask for them</h3><p><em>This is the section that reframes everything, and the part I most wish I had understood on day one.</em></p><p>By default, there is no analytics data waiting for you. You cannot query “impressions for last week” out of the box. You must first tell Apple to <strong>generate reports </strong>for a given app, and only then, after a real and substantial wait, does data begin to exist for you to fetch.</p><p><strong>Two access types, two very different purposes</strong></p><p>When you create a report request you choose an <strong>accessType</strong> , and the choice matters enormously, below you can find the Reports that can be generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3XHi-9qzky1zCMhtZdU_A.png" /></figure><p>In practice you want both, and you provision both at onboarding:</p><ul><li>The snapshot to populate history, this is a one time fetch</li><li>ongoing to keep the dashboard alive. This needs to be fetched daily or based on business requirements.</li></ul><p>But from that moment on, every subsequent read must filter strictly by access type. If you forget the filter then your daily job will cheerfully re-download the entire historical snapshot every single morning.</p><p><strong>here’s how you actually raise a request to apple to generate a report.</strong></p><pre>POST /v1/analyticsReportRequests<br>Authorization: Bearer &lt;token&gt;<br>Content-Type: application/json<br>  {<br>     &quot;data&quot;: {<br>      &quot;type&quot;: &quot;analyticsReportRequests&quot;,<br>      &quot;attributes&quot;: { &quot;accessType&quot;: &quot;ONGOING&quot; },<br>      &quot;relationships&quot;: {<br>      &quot;app&quot;: { &quot;data&quot;: { &quot;type&quot;: &quot;apps&quot;, &quot;id&quot;: &quot;&lt;app_id&gt;&quot; } <br>     }<br>   }<br>}</pre><p><strong>And here’s what you get as response</strong></p><pre>{<br>    &quot;data&quot;: {<br>      &quot;type&quot;: &quot;analyticsReportRequests&quot;,<br>      &quot;id&quot;: &quot;e9137b2e-97a7-4b7b-80f5-29a615572e15&quot;, &lt;-- store this<br>      &quot;attributes&quot;: {<br>      &quot;accessType&quot;: &quot;ONGOING&quot;,<br>      &quot;stoppedDueToInactivity&quot;: false<br>    }<br>  }<br>}</pre><blockquote>After you create a report request, nothing useful appears immediately. <strong>Apple needs around two days to actually generate the reports properly</strong>. This is not a bug and there is no way to hurry it. Plan your onboarding flow around it. If a client connects their account on Monday, do not promise them a populated dashboard on Monday.</blockquote><p><strong>The shape of a report: a tree, not a table</strong></p><p>Once generation completes, here is what you are dealing with. A report is not a file. It is the top of a four level hierarchy, and the data you actually want sits at the very bottom:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kb26eHXPoz4l-AvhiWmPrw.png" /></figure><p>Read that bottom line again, because it is the punchline of the entire API: the numbers are not in any JSON response. Every endpoint you call is just navigation. The real payload sits inside gzip compressed tab separated files behind signed URLs, and a single segment can hold hundreds of thousands of rows. Your job is to walk the tree, collect the links, download the files, and parse them.</p><p>One instance can also have several segments, because Apple chunks large days across multiple files. <strong>Miss the extra segments and you will silently undercount that day without a single error in your logs.</strong></p><h3>Chapter 5: There is no single endpoint, only a sequence</h3><p>If you take one thing from this guide, take this: Apple provides no endpoint that hands you analytics in one call. Getting data is an ordered sequence of requests, with a two day wait sitting in the middle of it.</p><p>Here is the whole choreography.</p><p><strong>Step 1: Provision the reports</strong></p><p>Create your report requests. Send <strong>ONE_TIME_SNAPSHOT</strong> if you want history and <strong>ONGOING</strong> if you want current and future data. As established, you usually want both, so that is <strong>two POSTs per app</strong>. Make this step <strong>idempotent</strong> from the start. <br>Before creating a request, check whether one already exists for that app and access type and return it if so. Otherwise a retried onboarding produces duplicate requests and quiet confusion later.</p><pre>async def provision_analytics(<br>    app_id: str,<br>    access_type: str = &quot;ONGOING&quot;,<br>) -&gt; dict:<br>    &quot;&quot;&quot;Create a report request. Safe to call repeatedly.&quot;&quot;&quot;<br><br>    # Idempotency: reuse an existing request for this (app, access_type).<br>    existing = await db.get_report_request(<br>        app_id=app_id,<br>        access_type=access_type,<br>    )<br><br>    if existing:<br>        return existing<br><br>    body = {<br>        &quot;data&quot;: {<br>            &quot;type&quot;: &quot;analyticsReportRequests&quot;,<br>            &quot;attributes&quot;: {<br>                &quot;accessType&quot;: access_type,<br>            },<br>            &quot;relationships&quot;: {<br>                &quot;app&quot;: {<br>                    &quot;data&quot;: {<br>                        &quot;type&quot;: &quot;apps&quot;,<br>                        &quot;id&quot;: app_id,<br>                    }<br>                },<br>            },<br>        }<br>    }<br><br>    resp = await call_asc_api(<br>        &quot;POST&quot;,<br>        &quot;/v1/analyticsReportRequests&quot;,<br>        token=token,<br>        json_body=body,<br>    )<br><br>    request_id = resp.json()[&quot;data&quot;][&quot;id&quot;]<br><br>    # Persist it so the next run skips straight to reading.<br>    return await db.upsert_report_request(<br>        app_id=app_id,<br>        request_id=request_id,<br>        access_type=access_type,<br>    )<br><br><br># At onboarding, provision both so history and freshness are covered.<br>await provision_analytics(app_id, &quot;ONE_TIME_SNAPSHOT&quot;)  # backfill the past<br>await provision_analytics(app_id, &quot;ONGOING&quot;)  # keep current</pre><p><strong>Step 2: Wait, and poll to find out when you are ready</strong></p><p>Now you wait roughly <strong>48 hours(maybe more depends on app size)</strong>. The useful part is that you can tell whether generation has finished by polling for instances. Ask a report for its instances, and <strong>if the list comes back empty the reports aren’t generated yet</strong>. When instances start appearing, you are live</p><pre>async def is_report_ready(report_id: str) -&gt; bool:<br>    &quot;&quot;&quot;Empty instance list means Apple is still generating.&quot;&quot;&quot;<br><br>    resp = await call_asc_api(<br>        &quot;GET&quot;,<br>        f&quot;/v1/analyticsReports/{report_id}/instances&quot;,<br>        token=token,<br>        params={<br>            &quot;filter[granularity]&quot;: &quot;DAILY&quot;,<br>            &quot;limit&quot;: 200,<br>        },<br>    )<br><br>    instances = resp.json().get(&quot;data&quot;, [])<br><br>    if not instances:<br>        print(&quot;still generating, check again later&quot;)<br>        return False<br><br>    dates = sorted(<br>        instance[&quot;attributes&quot;][&quot;processingDate&quot;]<br>        for instance in instances<br>    )<br><br>    print(<br>        f&quot;ready: {len(instances)} instances, &quot;<br>        f&quot;{dates[0]} to {dates[-1]}&quot;<br>    )<br><br>    return True</pre><p>This is also a genuinely useful health check long after onboarding. A report showing one lone instance usually just means it was provisioned recently and hasn’t accumulated history yet, not that anything is broken.</p><p><strong>Step 3: Walk the chain down to the data</strong></p><p>Once instances exist, every fetch follows the same path. Each call feeds an ID into the next:</p><pre>1. GET /v1/apps/{app_id}/analyticsReportRequests?filter[accessType]=ONGOING<br>   → Gives you the request_id<br><br>2. GET /v1/analyticsReportRequests/{request_id}/reports?filter[category]=COMMERCE<br>   → Gives you the report_id for each named report<br><br>3. GET /v1/analyticsReports/{report_id}/instances?filter[granularity]=DAILY<br>   → Gives you the instance_id and processingDate for each day<br><br>4. GET /v1/analyticsReportInstances/{instance_id}/segments<br>   → Gives you the signed file URL<br><br>5. GET the signed URL<br>   → Gunzip the response, parse the TSV, and you finally have the actual rows</pre><blockquote><strong>Note: </strong>Instance and segment listings are paginated. One call returns only the first page plus a links.next cursor. If you don’t follow it you will drop whole dates and whole chunks of days, and nothing will raise an error, so your charts will simply be wrong. This was the single most dangerous bug I hit, precisely because it was silent.</blockquote><pre>async def collect_all_pages(<br>    path: str,<br>    params: dict | None = None,<br>    max_pages: int = 500,<br>) -&gt; list[dict]:<br>    &quot;&quot;&quot;Walk links.next until exhausted. Returns every item, not page one.&quot;&quot;&quot;<br><br>    items: list[dict] = []<br>    next_path, next_params = path, params<br><br>    for _ in range(max_pages):<br>        if not next_path:<br>            break<br><br>        resp = await call_asc_api(<br>            &quot;GET&quot;,<br>            next_path,<br>            token=token,<br>            params=next_params,<br>        )<br><br>        payload = resp.json()<br>        items.extend(payload.get(&quot;data&quot;, []))<br><br>        next_url = payload.get(&quot;links&quot;, {}).get(&quot;next&quot;, &quot;&quot;)<br>        next_path = (<br>            next_url.replace(BASE_URL, &quot;&quot;)<br>            if next_url<br>            else None<br>        )<br><br>        # The next URL is absolute and carries its own cursor,<br>        # so drop the original params or you clobber it.<br>        next_params = None<br>    else:<br>        logger.warning(<br>            f&quot;hit max_pages on {path}, data may be truncated&quot;<br>        )<br><br>    return items</pre><h3>Chapter 6: Turning it into a scheduler</h3><p>Once the sequence worked, the next realisation arrived fast. This can never be a runtime API call. Think about the volume. Raw Apple analytics is granular to an almost absurd degree: one row per date, per event, per traffic source, per territory, per device, per platform version.</p><p>A single app across all reports runs into millions of rows. You cannot have a user tap “show me my dashboard” and then go walk a four level tree and download hundreds of gzip files while they wait. No HTTP timeout in the world is that patient.</p><p>So the architecture splits in two. A <strong>scheduler ingests</strong> <strong>from Apple</strong> into your own database on its own time. Your dashboard then reads from your database, fast, and never talks to Apple at all. Everything from here on is about that scheduler</p><h4>What you are actually signing up for: 52 reports</h4><p>Here is where the scale problem becomes concrete. Apple organises <strong>reports into categories</strong>, and when I enumerated everything available for a single app the result was far larger than expected. Across the categories there were <strong>52 reports</strong> generated and offered to me:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gFsUMzaor1Ebwj2aWhziKg.png" /></figure><p>Reading that list, the problem announces itself. I was building an acquisition and engagement dashboard. Most of those 52 reports, things like Bluetooth session durations and neural footprints, have nothing whatsoever to do with it. But my first implementation faithfully ingested all of them, simply because they were there. <strong>Chapter 7</strong> is how I fixed that.</p><p><strong>Detaching the job from the request lifecycle</strong></p><p>Even when triggered by an HTTP call, the work must not run inside the request. Accept the trigger, hand the job to the <strong>event loop</strong>, and answer immediately with <strong>202 Accepted and a job ID(Fire and Forget)</strong>:</p><pre># Module-level set. This is load-bearing; see the note below.<br>_FIRE_AND_FORGET_TASKS: set[asyncio.Task] = set()<br><br><br>@router.get(&quot;/analytics/sync&quot;)<br>async def sync_analytics(<br>    app_id: str = &quot;&quot;,<br>    country_code: str = &quot;&quot;,<br>    access_type: str = &quot;ONGOING&quot;,<br>):<br>    job_id = f&quot;analytics_sync_{int(datetime.now().timestamp())}&quot;<br><br>    task = asyncio.create_task(<br>        run_sync_in_background(<br>            app_id=app_id,<br>            country_code=country_code,<br>            access_type=access_type,<br>        )<br>    )<br><br>    # asyncio keeps only a WEAK reference to tasks. Without a strong one,<br>    # the garbage collector can kill a running job mid-flight.<br>    _FIRE_AND_FORGET_TASKS.add(task)<br>    task.add_done_callback(_FIRE_AND_FORGET_TASKS.discard)<br><br>    return JSONResponse(<br>        status_code=202,<br>        content={<br>            &quot;status&quot;: &quot;success&quot;,<br>            &quot;job_id&quot;: job_id,<br>            &quot;message&quot;: &quot;Sync started in background&quot;,<br>        },<br>    )</pre><blockquote>Use <strong>asyncio.create_task</strong> rather than your framework’s “<strong>background task</strong>” helper. Those often still run inside the request scope, so the request timeout still applies and quietly kills your job at exactly the timeout boundary. And keep that strong reference, or the garbage collector will collect a task that is still working.</blockquote><p><strong>Making re-runs safe</strong></p><p>Cron fires twice sometimes. Networks retry. A scheduler that double ingests is one you cannot trust, so check before you pull:</p><pre>async def sync_analytics(<br>  app_id: str, <br>  country_code: str,<br>  target_date: str | None = None) -&gt; dict:<br>  # Skip work that is already done.<br>  if target_date:<br>    target = date.fromisoformat(target_date)<br>  <br>    if await model.has_data_for_date(app_id, country_code, target):<br>      return {&quot;skipped&quot;: True, &quot;target_date&quot;: target_date}<br>  <br>  return await pull_analytics(app_id=app_id, country_code=country_code)</pre><p>Pair that check with a storage engine that <strong>collapses duplicate rows</strong> on <strong>merge</strong>, and you get two independent layers of protection: the check avoids the work, and storage catches anything that slips past it. <br>Insert in batches while you are here, because row by row inserts of millions of records will dominate your runtime.</p><h3>Chapter 7: Why 52 reports was a mistake, and how I got to 12</h3><p>The first full run was brutal. Long processing times, a server visibly straining under the ingest, and a database filling with rows nobody would ever query. Pulling every report Apple offers is technically correct and practically useless.</p><p>There was no clever algorithmic fix for this, and I want to be honest about that, because it is the kind of unglamorous work these articles usually skip. I went through the reports manually, one by one. For each, I fetched a sample, looked at the columns, and asked a single question: does this feed a metric my dashboard will actually show?</p><p>The answer was No far more often than Yes. I ended up <strong>keeping 4 categories and 12 reports</strong>, and explicitly excluding everything else. Here is the final keep list:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gYxtV4eVnfz4ErHgUZ3QWQ.png" /></figure><p>Twelve reports covering every metric the dashboard needed, including <strong>impressions, page views, downloads split</strong> into <strong>first time and redownloads</strong>, <strong>installs, deletions, sessions</strong> and <strong>crashes</strong>, instead of 52 covering things nobody asked about.</p><p><strong>Implementing it as an exclusion list</strong></p><p>One design decision here proved genuinely useful. I <strong>implemented this as an exclusion list rather than an inclusion list</strong>. The pipeline iterates the four categories and processes everything it finds except the names it is told to skip.</p><p>The reason is that Apple adds new reports over time. With an inclusion list, <strong>a newly added report stays invisible until someone remembers to update the code</strong>. With an exclusion list it shows up in the next run and I get to make a deliberate decision about it. It fails toward visibility instead of toward silence.</p><pre># Only these four categories are ever iterated.<br>ASC_REPORT_CATEGORIES: list[str] = [<br>    &quot;APP_STORE_ENGAGEMENT&quot;,  # impressions, page views, taps (by source)<br>    &quot;COMMERCE&quot;,              # downloads: first time + redownloads<br>    &quot;PERFORMANCE&quot;,           # install performance<br>    &quot;APP_USAGE&quot;,             # installs, deletions, sessions, crashes<br>]<br><br><br># Everything named here is skipped: subscriptions, device diagnostics,<br># niche framework usage. Trimmed for space, the real set is ~40 names.<br>ASC_EXCLUDED_REPORTS: frozenset[str] = frozenset(<br>    {<br>        &quot;Retention Messaging&quot;,<br>        &quot;App Store Pre-Orders Standard&quot;,<br>        &quot;App Store Pre-Orders Detailed&quot;,<br>        &quot;App Store Purchases Standard&quot;,<br>        &quot;App Store Purchases Detailed&quot;,<br>        &quot;App Store Subscription Event Report Standard&quot;,<br>        &quot;App Store Subscription State Report Standard&quot;,<br>        &quot;App Clip Usage Standard&quot;,<br>        &quot;App Clip Usage Detailed&quot;,<br>        &quot;Platform App Installs&quot;,<br>        &quot;Shortcut App Usage&quot;,<br>        &quot;CarPlay App Usage&quot;,<br>        &quot;App Crashes Expanded&quot;,<br>        &quot;Bluetooth System Wakes&quot;,<br>        &quot;Audio Overloads&quot;,<br>        &quot;AirPlay Errors&quot;,<br>        &quot;App Neural Footprint&quot;,<br>        # ... and so on<br>    }<br>)<br><br><br># Applied immediately after fetching the report list for a category.<br>reports = [<br>    r<br>    for r in reports<br>    if r.get(&quot;attributes&quot;, {}).get(&quot;name&quot;, &quot;&quot;) not in ASC_EXCLUDED_REPORTS<br>]<br><br>if not reports:<br>    return {<br>        &quot;status&quot;: &quot;success&quot;,<br>        &quot;message&quot;: f&quot;all reports in {category} excluded&quot;,<br>    }</pre><h3>Chapter 8: Four workers, and the rate limit that keeps you honest</h3><p>Trimming to 12 reports helped a lot. It wasn’t enough. The run was still slower than I wanted, and this time the reason wasn’t volume. It was that I was doing everything one thing at a time.</p><p>I profiled it, and the answer was unsurprising in hindsight. Almost all the time was spent waiting on the network. Every segment is a round trip to Apple’s storage: connection, transfer, decompress. Done sequentially, the CPU sits idle for the overwhelming majority of the run. This is a textbook <strong>I/O bound workload</strong> written serially, and the fix isn’t a faster algorithm. It is overlapping the waiting.</p><p>The natural seam was already in the design. The <strong>four categories are completely independent</strong>, since engagement data has no relationship to downloads data. So I gave each category its own worker and ran all four concurrently.</p><p>Async was the right tool here rather than threads or processes. There is negligible CPU work to parallelise, because gzip decompression is cheap next to transfer time, so there is no thread pool to size and no shared state locking to get wrong.</p><pre>async def pull_all_categories(<br>    app_id: str,<br>    access_type: str,<br>) -&gt; dict:<br>    &quot;&quot;&quot;One worker per category, all four in flight at once.&quot;&quot;&quot;<br><br>    tasks = [<br>        pull_category(<br>            app_id=app_id,<br>            category=category,<br>            access_type=access_type,<br>        )<br>        for category in ASC_REPORT_CATEGORIES<br>    ]<br><br>    # return_exceptions=True is essential. By default, gather cancels every<br>    # sibling the moment one raises, so a transient failure in COMMERCE<br>    # would throw away the ENGAGEMENT data already fetched.<br>    results = await asyncio.gather(<br>        *tasks,<br>        return_exceptions=True,<br>    )<br><br>    all_records = []<br>    failed = []<br><br>    for category, result in zip(<br>        ASC_REPORT_CATEGORIES,<br>        results,<br>    ):<br>        if isinstance(result, Exception):<br>            logger.error(<br>                f&quot;category {category} failed: {result}&quot;<br>            )<br>            failed.append(category)<br>            continue<br><br>        all_records.extend(result)<br><br>    # Partial beats nothing, but say so honestly.<br>    return {<br>        &quot;status&quot;: &quot;success&quot; if not failed else &quot;partial&quot;,<br>        &quot;records&quot;: all_records,<br>        &quot;failed_categories&quot;: failed,<br>    }</pre><p><strong>Where I deliberately stopped</strong></p><p>The obvious next move is to also <strong>fan out every instance</strong> and <strong>every segment into its own task</strong>. Don’t. That spawns hundreds of simultaneous downloads and you will be rate limited almost immediately, while also exhausting your connection pool.</p><blockquote><strong>Apple applies rate limits per API key</strong>, and it tells you where you stand. Responses carry a rate limit header reporting your hourly ceiling and how much of it remains.</blockquote><p>Four way concurrency at the <strong>category level</strong> turned out to be the sweet spot: enough overlap to hide most of the latency, few enough in flight requests to stay comfortably inside the limit. Within each category, instances and segments are still processed in a controlled sequence.</p><blockquote>Concurrency is a dial, not a switch. You want just enough in flight work to saturate the bottleneck, which here is Apple’s tolerance, and not one request more.</blockquote><p><strong>Handle 429 properly anyway</strong></p><p>You will still hit 429 occasionally, so the retry logic needs to distinguish failures worth retrying from failures that are permanent. Blanket retrying everything just wastes time and hides real problems.</p><p>Two habits that saved me repeatedly. First, make the <strong>backoff base</strong> an <strong>environment variable</strong> <strong>rather than a constant</strong>, so you can tune aggressiveness per environment without a redeploy.</p><p>Second, <strong>retry at the individual request level</strong>, never the whole job. If segment 200 of 420 fails after its retries, log it, count it, and carry on. Mark the run as partial rather than success so you keep the data integrity signal, but never throw away the 99% that worked.</p><h3>Chapter 9: Reading the metrics: dimensions, Standard vs Detailed, and wobbly numbers</h3><p>You have the data flowing. Before you build anything on top of it, there are a few properties of Apple’s analytics that will otherwise cost you a confusing afternoon.</p><p><strong>Every metric is multi dimensional</strong></p><p>There is no such thing as “<strong>impressions</strong>” as a single number in these files. There is a count plus a set of <strong>dimensions</strong> <strong>it is sliced by</strong>, and one day’s file contains the <strong>cross product</strong> of all of them. The common dimensions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q-PR8mTSVC3Img_L2piXyw.png" /></figure><p>A few rows from a real engagement file make this concrete. Notice that one date and one event produce many rows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_U-RlU5F4lHjR2x2dXx0TQ.png" /></figure><blockquote>This is why the raw row count explodes, and why you almost certainly want <strong>a second pre aggregated table</strong> for your dashboard to read from rather than scanning raw data live. Conditional sums let you compute every slice you need in a single pass over the raw rows:</blockquote><p><strong>Standard vs Detailed</strong></p><p>Most reports come in two variants, and the difference is dimensional depth rather than different metrics:</p><ul><li><strong>Standard</strong> gives you the metric with the core breakdowns. It is smaller, faster, and usually what your top line KPIs should be built on.</li><li><strong>Detailed</strong> gives you the same metric with additional dimensions, including finer source attribution, campaign level information, page titles, and browser details for web preview. Richer, and meaningfully larger.</li></ul><blockquote><strong>Don’t Add them together: </strong>They describe overlapping data at different grains, so adding them double counts. Pick one variant per metric as your source of truth. I aggregate my headline KPIs from the Standard reports and keep Detailed for drill downs, which is exactly why the aggregation query above filters on a whitelist of Standard report names.</blockquote><p><strong>Semantic quirks worth writing down</strong></p><ul><li>In <strong>Commerce</strong>, “<strong>unique counts</strong>” means distinct first time acquirers, not a device level deduplication of total downloads. So redownloads equals total minus unique, which is how you derive that metric rather than reading it directly.</li><li><strong>Install performance reports always report zero uniques</strong>. Unique installs come only from the App Usage reports. Total and unique installs therefore originate in different files, so don’t assume one table has both.</li><li><strong>Browse traffic</strong> is sometimes labelled <strong>Unavailable</strong> rather than “<strong>App Store browse</strong>.” You have to map raw source strings into your own buckets deliberately and consistently, or your source split will quietly lose a chunk of traffic.</li></ul><p><strong>And yes, the numbers will wobble</strong></p><p><strong>Expect small discrepancies</strong> between what the <strong>API gives you and what the App Store Connect dashboard shows</strong>, impressions especially. This is not a bug in your pipeline, and I spent a while assuming it was.</p><p>The cause is <strong>user privacy</strong>. Apple applies privacy protections to analytics, and where a slice of data is too small to report without risking identification of individuals, it gets withheld or bucketed rather than reported precisely. That is also part of why you see values like Unavailable in source columns.</p><p>The practical implication: treat these numbers as authoritative for trends, comparisons and proportions, which is what they are good at and what dashboards are actually used for. Don’t promise anyone reconciliation to the last impression against the Apple UI, because you will not always win that argument. Set that expectation with stakeholders early and everyone stays happy.</p><h3>Thanks for reading</h3><p>If you made it this far, genuinely, thank you. This guide exists because I couldn’t find it when I needed it, and I kept notes mostly out of frustration at how scattered the information was.</p><p>If you are about to build this, the short version of everything above: get an <strong>Admin key</strong>, keep the three credential pieces safe, <strong>provision your reports</strong> early and expect to <strong>wait two days</strong>, remember that the numbers live in <strong>gzipped files</strong> at the bottom of a <strong>four level tree</strong>, follow the pagination, <strong>don’t ingest all 52 reports</strong>, and <strong>parallelise at the category level</strong> while respecting the rate limit.</p><p>Most of the hard parts weren’t clever algorithms. They were discovering undocumented behaviour and correcting my own wrong assumptions. If this saves you even a few of the hours it cost me, it did its job. Good luck, and do budget more time than you think for that first provisioning wait.</p><h3>References</h3><p>All of the following are official Apple sources unless noted. Where I describe endpoint behaviour, access types, generation delays or metric definitions, these are authoritative, so always defer to them since Apple updates the API over time.</p><p><strong>Getting Started and Authentication</strong></p><ul><li><a href="https://developer.apple.com/app-store-connect/api/"><strong>App Store Connect API overview</strong></a><strong>:</strong> entry point for the REST API.</li><li><a href="https://developer.apple.com/help/app-store-connect/get-started/app-store-connect-api"><strong>Get started with the App Store Connect API</strong></a><strong>:</strong> creating role-based keys, key management, revocation.</li><li><a href="https://developer.apple.com/documentation/appstoreconnectapi/generating-tokens-for-api-requests"><strong>Generating tokens for API requests</strong></a><strong>:</strong> ES256 JWT construction, required claims, the kid header, and the 20-minute expiry cap.</li><li><a href="https://developer.apple.com/documentation/appstoreconnectapi/identifying-rate-limits"><strong>Identifying rate limits</strong></a><strong>:</strong> how limits apply per key and how to read the rate-limit response header.</li></ul><p><strong>Analytics Reports API</strong></p><ul><li><a href="https://developer.apple.com/documentation/analytics-reports"><strong>Analytics Reports</strong></a><strong>:</strong> the report catalogue and data dictionary.</li><li><a href="https://developer.apple.com/help/app-store-connect/view-sales-and-trends/download-analytics-reports"><strong>Download Analytics Reports</strong></a><strong>:</strong> overview of bulk analytics export.</li><li><a href="https://developer.apple.com/help/app-store-connect/view-app-analytics/app-analytics-overview"><strong>App Analytics overview</strong></a><strong>:</strong> dashboard concepts that map onto the API’s categories.</li><li><a href="https://developer.apple.com/help/app-store-connect/view-app-analytics/filters-and-dimensions"><strong>Filters and dimensions</strong></a><strong>:</strong> how source, device and territory breakdowns work.</li></ul><p><strong>Endpoint References (the Call Sequence)</strong></p><ol><li><a href="https://developer.apple.com/documentation/appstoreconnectapi/post-v1-analyticsreportrequests">POST /v1/analyticsReportRequests</a> Create a report request, where accessType is set.</li><li><a href="https://developer.apple.com/documentation/appstoreconnectapi/get-v1-analyticsreportrequests-_id_-reports">GET /v1/analyticsReportRequests/{id}/reports</a> List reports for a request.</li><li><a href="https://developer.apple.com/documentation/appstoreconnectapi/get-v1-analyticsreports-_id_-instances">GET /v1/analyticsReports/{id}/instances</a> List dated instances.</li><li><a href="https://developer.apple.com/documentation/appstoreconnectapi/get-v1-analyticsreportinstances-_id_-segments">GET /v1/analyticsReportInstances/{id}/segments</a> List downloadable segment URLs.</li><li><a href="https://developer.apple.com/documentation/appstoreconnectapi/list-apps">GET /v1/apps</a> List apps, useful as a credential smoke test.</li></ol><p><strong>Metric Definitions and Privacy</strong></p><ul><li><a href="https://developer.apple.com/help/app-store-connect/view-app-analytics/measure-app-performance"><strong>Measuring app performance</strong></a><strong>:</strong> official definitions of Total Downloads, First-Time Downloads and Redownloads.</li><li><a href="https://developer.apple.com/help/app-store-connect/view-app-analytics/app-usage-engagement-metrics"><strong>App usage engagement metrics</strong></a><strong>:</strong> definitions behind sessions, active devices and installs.</li><li><a href="https://www.apple.com/privacy/"><strong>Apple Privacy</strong></a><strong>:</strong> background on the privacy protections that cause small slices to be withheld or bucketed.</li></ul><p><strong>Community Sources (Useful for Undocumented Edges)</strong></p><ul><li><a href="https://developer.apple.com/forums/thread/731014"><strong>Apple Developer Forums, rate limit header discussion</strong></a><strong>:</strong> reports the x-rate-limit header exposing an hourly ceiling and remaining budget per key. Community sourced, so verify against current behaviour.</li><li><a href="https://developer.apple.com/forums/"><strong>Apple Developer Forums</strong></a><strong>:</strong> the practical place to find others hitting the same ONE_TIME_SNAPSHOT availability delays after provisioning.</li></ul><blockquote><strong>A Note on Links</strong></blockquote><blockquote>Apple periodically restructures its documentation URLs. If one returns a 404, search the Apple Developer documentation portal for the resource name, for example analyticsReportRequests, and you will land in the right place.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=662f096d7ec4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[.env variables “undefined”.]]></title>
            <link>https://medium.com/@zak786khan/env-variables-undefined-78cf218dae87?source=rss-876a7afb7170------2</link>
            <guid isPermaLink="false">https://medium.com/p/78cf218dae87</guid>
            <category><![CDATA[dotenv]]></category>
            <category><![CDATA[next]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[environment-variables]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Zakariya khan]]></dc:creator>
            <pubDate>Mon, 07 Feb 2022 14:46:03 GMT</pubDate>
            <atom:updated>2024-03-30T03:02:35.174Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever stuck in a scenario when you’re building an application whether it is a <a href="https://vitejs.dev/">VITE</a>, <a href="https://react.dev/">REACT</a> or <a href="https://nextjs.org/">NEXT</a> based but don’t know how to set your environment variables?</p><p>Well I was in the same situation as you were and I have literally searched the entire Internet to get a solution to my problem which will work in my <strong>“case”</strong>.</p><p>We all have our projects which have functionalities that don’t match cases written in the official docs of the package/module that we have installed. Therefore this post is about environment variables and how you can get it to work in your <strong>“case”.</strong></p><p><strong>What is environment variables exactly?</strong></p><p>Environment variables are simply variables that we want to use globally in our file system of the project but we don’t want to reveal or show them to people on the internet. Basically these are sensitive variables or keys like “SECRET_KEY” or “PUBLISHABLE_KEY”. These kind of keys/variables are written inside a file named as .env.</p><p><strong>How to make this .env file?</strong></p><p>locate your package.json file and its hierarchy in you project folder. Right click to create a new file and write the name of the file as “.env” , this has to be exact and that’s it your environment variables file has been created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/1*TwsEVaZQYt3Qa_g0daXywg.png" /></figure><p><strong>How to write environment variables in .env file?</strong></p><ol><li>In case you want environment variables in your <a href="https://vitejs.dev/">Vite</a> application(frontend) the you don’t need to install any package(dotenv). You only need to create this .env file and you are good to go.</li></ol><pre>VITE_YOUR_VARIABLE_NAME=SOMETHING</pre><p>2. Similarly in case you want environment variables in your React application(frontend) the you don’t need to install any package(dotenv). You only need to create this .env file.</p><p>3. This is the syntax for declaring a variable for <a href="https://react.dev/">REACT</a> app. The variable must have a prefix of ‘‘REACT_APP_’’ otherwise the variable will not work properly.</p><pre>REACT_APP_YOUR_VARIABLE_NAME=SOMETHING</pre><p>4. In case of declaring the environment variables in <a href="https://nextjs.org/">NEXT</a> app then the variable should look like. It must have a prefix of “NEXT_PUBLIC_” else it won’t work properly.</p><pre>NEXT_PUBLIC_YOUR_VARIABLE_NAME=SOMETHIN</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*GCyoBaM8Ul6TqjU6vrV90A.png" /></figure><p>5. In case you are declaring environment variables in the backend(server) folder in that case you will need a package called as <a href="https://www.npmjs.com/package/dotenv">dotenv</a>.</p><p><strong>Installation</strong></p><p><a href="https://yarnpkg.com/">yarn</a> and <a href="https://www.npmjs.com/">npm</a> both are package manager which helps us to download packages from the internet in order to use those packages in our project and make something cool.</p><pre>npm i dotenv</pre><p>or</p><pre>yarn add dotenv</pre><p>5. Now in your index.js(root file/entry point) of your server side folder, then you need to configure this package you just installed.</p><pre>const dotenv = require(&quot;dotenv&quot;)<br>dotenv.config()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*1tBVCpbStsM7osXMVUOJeg.png" /></figure><p>Up next we do same procedure as mentioned in <strong><em>How to make this .env file?</em></strong>. But in the backend you have the liberty to name environment variables as you want</p><pre>MONGO_URL=SDAHKAFHKLJAHFLA<br>JWT_KEY=FHALKHFLAHF</pre><p><strong>How to access those variables in our components files?</strong></p><p><strong>Frontend</strong></p><ul><li>For Vite app</li></ul><pre>const VARIABLE_NAME = import.meta.env.VITE_YOUR_KEY_VARIABLE_NAME</pre><ul><li>For React App</li></ul><pre>const VARIABLE_NAME=process.env.REACT_APP_YOUR_KEY_VARIABLE_NAME</pre><ul><li>For Next App</li></ul><pre>const VARIABLE_NAME = process.env.NEXT_PUBLIC_YOUR_VARIABLE_NAME</pre><p><strong>Backend</strong></p><ul><li>You need to use process.env.VARIABLE_NAME to access the variables you want.</li></ul><pre>const VARIABLE_NAME = process.env.YOUR_VARIABLE_NAME</pre><p><strong>Final Notes:</strong></p><ul><li>Casing of VARIABLE_NAME is up to you but it is a good practice to write them in capitalized.</li><li>Avoid using spaces, commas, or semicolons when declaring environment variables.</li></ul><p>With this, you’ve mastered the art of setting up environment variables for both frontend and backend. Should you encounter any roadblocks, feel free to reach out to me via <a href="https://github.com/Ardent10">GitHub</a> or links in my profile.</p><p>Lastly, Adhering to standard best practices enhances your development skills and demonstrates your professionalism to others so avoid using uppercase of lowercase variable names in this “<strong>case</strong>”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78cf218dae87" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>