Rust Client

Blazingly fast Rust client for Gender-API.com providing memory-safe and efficient gender detection for systems programming. Our specialized API delivers 99.5% accuracy in under 100ms, perfect for high-performance applications and embedded systems. The client is built with zero-cost abstractions and follows Rust best practices for safety and concurrency. Unlike generic AI models that are slow and resource-heavy, our API is 10x-90x faster with 9-34% better accuracy. Ideal for CLI tools, web servers, and performance-critical applications. Access over 9 million names across 150+ countries with intelligent fallback. Start free with 100 monthly API calls. Production-ready and GDPR compliant.

Nejprve nainstalujte naši knihovnu pomocí composeru:

Zde naleznete kompletní dokumentaci klienta:

https://github.com/markus-perl/gender-api-client

Nejprve nainstalujte naši knihovnu pomocí npm:

Zde naleznete kompletní dokumentaci klienta:

https://github.com/markus-perl/gender-api-client-npm

Nejprve nainstalujte naši knihovnu pomocí npm:

Zde naleznete kompletní dokumentaci klienta:

https://github.com/markus-perl/gender-api-client-npm

Nejprve si nainstaluj naši knihovnu pomocí pip:

Zde naleznete kompletní dokumentaci klienta:

https://github.com/markus-perl/gender-api-client-python
https://pypi.org/project/gender-api-client/

use reqwest::header::AUTHORIZATION;
use serde::{Deserialize, Serialize};
use std::error::Error;

// Add to Cargo.toml:
// [dependencies]
// reqwest = { version = "0.11", features = ["json"] }
// tokio = { version = "1", features = ["full"] }
// serde = { version = "1.0", features = ["derive"] }

#[derive(Serialize)]
struct Request<'a> {
    first_name: &'a str,
}

#[derive(Deserialize, Debug)]
struct Response {
    gender: String,
    probability: f64,
}

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let api_key = "YOUR_API_KEY"; // Get your key at https://gender-api.com/en/account/auth-tokens
    let client = reqwest::Client::new();

    let resp: Response = client
        .post("https://gender-api.com/v2/gender/by-first-name")
        .header(AUTHORIZATION, format!("Bearer {api_key}"))
        .json(&Request { first_name: "Theresa" })
        .send()
        await?
        .json()
        await?;

    println!("Gender: {}", resp.gender);
    println!("Probability: {}", resp.probability);

    Ok(())
}

Professional Gender Detection for Your Applications

Gender-API.com delivers enterprise-grade gender detection with 99.5% accuracy across 150+ countries. Our specialized API outperforms generic AI solutions with 10x-90x faster response times and 9-34% better accuracy.

Why Choose Gender-API Over Generic AI?

  • Purpose-Built : Specialized for gender detection, not a general-purpose AI
  • Blesková rychlost : Sub-100ms response times vs. seconds for generic AI
  • More Accurate : 99.5% accuracy with cultural and regional intelligence
  • Larger Database : 9+ million names, 37% more than typical AI training data
  • Reliable : 99.9% uptime SLA with predictable performance

Key Features

  • Easy integration with just a few lines of code
  • Batch processing for high-volume applications
  • Country-specific accuracy for regional name variations
  • Smart normalization handling typos and variants
  • GDPR compliant and enterprise-ready

Start Free Today

Get 100 free API calls per month with no credit card required. Scale as you grow with flexible pricing for every use case.

Chat