ClickYourApp Docs
Back to site

Insights API Overview

REST API for app store charts, app details, ratings, reviews, and AI-powered analysis.

The Insights API provides read-only access to Apple App Store and Google Play data. All endpoints return JSON and require no authentication.

Base URL

https://clickyourapp.com/api/insights/

Common Parameters

Most endpoints accept these query parameters:

ParameterTypeDefaultDescription
countrystringus (Apple) / US (Google)ISO 3166-1 alpha-2 country code
langstringenLanguage code for localized content

If country is omitted, the API uses a smart fallback: query param > Cloudflare CF-IPCountry header > bundle ID prefix inference > default.

Response Format

All successful responses return the data directly as the JSON body:

[{ "type": "free", "title": "Top Free Apps", "apps": [...] }]

Error responses use this format:

{ "error": "Error description" }

Caching

Responses include Cache-Control headers for Cloudflare edge caching:

  • Charts: s-maxage=3600 (1 hour edge cache)
  • App details, ratings, reviews, comparison: s-maxage=86400 (24 hour edge cache)
  • Analysis: private, max-age=7200 (2 hour server-side only)

All cacheable endpoints include stale-while-revalidate=7200 — stale content is served instantly while the edge revalidates in the background.

Stores

The {store} path parameter accepts:

  • apple — Apple App Store
  • google — Google Play Store