Agify.io · JSON Structure

Agify Io Age Prediction Structure

Age prediction result for a first name from the Agify.io API.

Type: object Properties: 4 Required: 2
Age PredictionName AnalysisDemographicsREST API

AgePrediction is a JSON Structure definition published by Agify.io, describing 4 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

count name age country_id

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

agify-io-age-prediction-structure.json Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/agify-io/refs/heads/main/json-structure/agify-io-age-prediction-structure.json",
  "name": "AgePrediction",
  "description": "Age prediction result for a first name from the Agify.io API.",
  "type": "object",
  "properties": {
    "count": {
      "type": "int32",
      "description": "Number of data points used to make the prediction. Higher count indicates greater confidence.",
      "example": 12345
    },
    "name": {
      "type": "string",
      "description": "The first name that was evaluated.",
      "example": "John"
    },
    "age": {
      "type": "int32",
      "description": "Predicted age for the given name. Null if there is insufficient data for a prediction.",
      "example": 42
    },
    "country_id": {
      "type": "string",
      "description": "The ISO 3166-1 alpha-2 country code used for localization, if provided in the request.",
      "example": "US"
    }
  },
  "required": [
    "count",
    "name"
  ]
}