apyhub
Back
▣ STANDARD DATA

Get Language Breakdown Used on Web

What it does

Language Distribution provides web-usage statistics showing the distribution of languages detected across web content for a country. Send a country_code to scope results to a specific country, or leave it out to get the broader distribution.

Use it when you need web-language statistics for web analytics, content research, market analysis, or understanding language usage across web content. The response schema is open-ended, so the service returns a structured language distribution payload without exposing a fixed set of fields in the spec.

limit defaults to 30 and accepts values from 1 to 200, so you can keep responses small when you only need the top entries. country_code accepts a 2- or 3-character country code. The endpoint returns language distribution statistics that can be used in dashboards, web analytics, and data-enrichment workflows.

GET
Language distribution
https://api.eu.apyhub.com/dosvak/language-distribution

QUICKSTART

GUIDE

Quickstart

Get a language distribution list, optionally narrowed by country and capped with a limit.

curl -X GET "https://api.eu.apyhub.com/dosvak/language-distribution?limit=30&country_code=us" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

Returns a JSON object with additional properties. The schema does not declare fixed top-level fields, so the response shape may vary.

{
  "country_code": null,
  "total": 108110583,
  "page_languages": [
    { "val": "en", "count": 1934 },
    { "val": "de", "count": 279 },
    { "val": "fr", "count": 179 },
    { "val": "es", "count": 139 },
    { "val": "ja", "count": 125 }
  ],
  "content_languages": [
    { "val": "eng", "count": 7795 },
    { "val": "deu", "count": 1081 },
    { "val": "fra", "count": 903 },
    { "val": "spa", "count": 755 },
    { "val": "jpn", "count": 631 }
  ],
  "attribution": [
  ]
}
TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.

About this endpoint

What it does

Returns a language distribution result as a JSON object. The exact response fields are not defined in the schema, so the endpoint’s output shape is not yet documented beyond being an object.

Query Parameter(s)

AttributeTypeMandatoryDescription
limitIntegerNoMaximum number of results to return. Default: 30. Minimum: 1. Maximum: 200.
country_codeStringNoCountry code filter. When provided, it must be a string with length between 2 and 3 characters.

Response

Returns a JSON object. The response schema is an object with additional properties allowed, but it does not declare any fixed top-level fields, so the specific response structure is not yet captured in the schema.

Response

FieldTypeMandatoryDescription
country_codeStringNoCountry code used for the requested language distribution.
totalIntegerNoTotal number of records/pages represented by the dataset.
page_languagesArrayNoLanguage distribution based on page-level language information.
page_languages[].valStringNoISO 639-1 language code, such as en, zh, or es.
page_languages[].countIntegerNoNumber of pages associated with the language.
content_languagesArrayNoLanguage distribution based on detected content language.
content_languages[].valStringNoISO 639-3 language code, such as eng, zho, or spa.
content_languages[].countIntegerNoNumber of pages with the detected content language.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.