Metadata-Version: 2.5
Name: dataandapis
Version: 0.1.0
Summary: Official Python client for Data and APIs: 128 REST data APIs (VAT validation, barcode lookup, IP intelligence, sanctions screening, company data and more) behind one API key.
Project-URL: Homepage, https://dataandapis.com/?ref=pypi
Project-URL: Documentation, https://dataandapis.com/sdk/python?ref=pypi
Project-URL: API catalog, https://dataandapis.com/apis?ref=pypi
Project-URL: Changelog, https://pypi.org/project/dataandapis/#history
Project-URL: Contact, https://dataandapis.com/contact
Author: Data and APIs
License-Expression: MIT
License-File: LICENSE
Keywords: api,api-client,barcode-lookup,company-enrichment,currency-rates,data,data-and-apis,dataandapis,geocoding,ip-geolocation,ip-intelligence,public-holidays,rest,sanctions-screening,sdk,vat-validation,vies
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# dataandapis

Official Python client for [Data and APIs](https://dataandapis.com/?ref=pypi): 128 REST data APIs behind one API key. VAT validation, barcode lookup, IP intelligence, sanctions screening, company data, holidays, currency rates, geocoding and more.

- One client, one key, every API: `client.vat`, `client.barcode_lookup`, `client.ip_intelligence` and 125 others
- A method for every endpoint, with keyword arguments, docstrings and type hints
- No dependencies: only the Python standard library
- Timeouts, automatic retries, connection reuse and typed errors built in
- Python 3.9 and later

## Install

```bash
pip install dataandapis
```

```bash
uv add dataandapis
```

```bash
poetry add dataandapis
```

## Get an API key

Create a free account at [dataandapis.com/sign-up](https://dataandapis.com/sign-up?ref=pypi) and generate a key on the dashboard. The Free plan includes 500 tokens a month and needs no card. Most calls cost 1 token.

## Quick start

```python
import os

from dataandapis import DataAndApis

client = DataAndApis(os.environ["DATAANDAPIS_API_KEY"])

check = client.vat.validate_vat_number(vat="IE6388047V")
print(check["valid"], check["name"])  # True GOOGLE IRELAND LIMITED
```

If you leave the key out, the client reads the `DATAANDAPIS_API_KEY` environment variable:

```python
client = DataAndApis()
```

## Examples

Look up a product by barcode:

```python
product = client.barcode_lookup.lookup_by_barcode(barcode="3017620422003")
print(product["name"], product["brand"])  # Nutella ...
```

Check an IP address:

```python
ip = client.ip_intelligence.lookup_ip(address="8.8.8.8")
print(ip["country"], ip["asn"]["organization"], ip["is_datacenter"])
```

Screen a name against sanctions lists:

```python
result = client.sanctions.screen_name(name="Viktor Bout", min_score=0.85)
if result["hit"]:
    print(result["matches"][0]["matched_name"], result["matches"][0]["score"])
```

Send a JSON body with `body` (POST endpoints):

```python
batch = client.sanctions.screen_names_batch(
    body={"names": ["Osama bin Laden", "Viktor Bout", "Acme Trading LLC"]},
)
print(batch["hits"])
```

Convert a currency amount. A parameter whose name is a Python keyword takes a trailing underscore, so `from` is `from_`:

```python
fx = client.currency_rates.convert(from_="USD", to="GBP", amount=100)
print(fx["result"])
```

Endpoints that return a file give you `bytes`:

```python
png = client.qr_code_generator.generate_qr_code(data="https://dataandapis.com", size=400)
with open("qr.png", "wb") as f:
    f.write(png)
```

## How it is organised

Every API in the [catalog](https://dataandapis.com/apis?ref=pypi) is an attribute of the client, and every endpoint is a method on it. The API's name is its catalog slug in snake case (`barcode-lookup` is `client.barcode_lookup`) and the method is the endpoint's name in snake case.

Each method takes the endpoint's path and query parameters as keyword arguments, named exactly as the API names them, plus `body` for POST endpoints. It returns the parsed JSON response: a `dict` or a `list`.

Your editor shows the available methods, their parameters with an example value, the token cost and a link to the endpoint's documentation page. In a console, `help(client.vat.validate_vat_number)` shows the same. The [full list of APIs](#apis) is at the end of this page.

## Options

```python
client = DataAndApis(
    api_key="...",    # default: the DATAANDAPIS_API_KEY environment variable
    timeout=30,       # seconds per attempt, default 30
    max_retries=2,    # retries for GET requests, default 2
    headers={},       # extra headers for every request
    on_response=lambda info: print(info.api, info.status, info.tokens_remaining),
)
```

Every method takes per-call options as `options`:

```python
client.vat.validate_vat_number(
    vat="FR40303265045",
    options={"timeout": 45, "max_retries": 0},
)
```

| Option | Meaning |
|---|---|
| `timeout` | Seconds to wait for this call |
| `max_retries` | Retries for this call |
| `headers` | Extra headers for this call |
| `query` | Extra query parameters, for parameters newer than your version of the SDK |

### Retries

GET requests are retried after a network error or a 408, 502, 503 or 504 response, with a growing pause between attempts. POST requests are never retried. Failed calls do not use tokens.

### Connections

The client keeps connections open between calls, so a loop of lookups does not pay for a new TLS handshake each time. One client can be shared between threads. `client.close()` closes the idle connections; you can also use the client in a `with` block.

### Token balance

The APIs report how many tokens are left on your key with each response. `on_response` receives it:

```python
def watch(info):
    if info.tokens_remaining is not None and info.tokens_remaining < 50:
        print("Running low on tokens")

client = DataAndApis(on_response=watch)
```

## Errors

Every failure is an instance of `DataAndApisError`.

| Class | When | Useful attributes |
|---|---|---|
| `AuthenticationError` | 401: the key is missing or not valid | `status`, `body` |
| `PaymentRequiredError` | 402: the subscription is past due | `payment_url` |
| `QuotaExceededError` | 429: the monthly token allowance is used up | `tokens_remaining` |
| `ApiError` | Any other status outside 200 to 299, such as 400 or 404 | `status`, `body`, `api`, `url` |
| `ApiTimeoutError` | No response within the timeout | `__cause__` |
| `ApiConnectionError` | The request never got a response | `__cause__` |

The three classes for 401, 402 and 429 are subclasses of `ApiError`. `ApiTimeoutError` is also a built-in `TimeoutError`.

```python
from dataandapis import ApiError, DataAndApis, QuotaExceededError

try:
    client.barcode_lookup.lookup_by_barcode(barcode="0000000000000")
except QuotaExceededError:
    ...  # upgrade the plan or wait for the monthly reset
except ApiError as err:
    if err.status == 404:
        print("Not in the catalogue:", err.message)
    else:
        raise
```

## Type hints

The package ships its type hints (`py.typed`). mypy and Pyright check your calls, and your editor completes the keys of a response.

Response types are inferred from one sample response per endpoint, so treat them as a guide: a field can be `None` or missing for other inputs. Every body and response type can be imported from `dataandapis.types`, named after the API and the method:

```python
from dataandapis.types import VatValidateVatNumberResponse

def is_valid(check: VatValidateVatNumberResponse) -> bool:
    return check["valid"]
```

## asyncio

The client is synchronous. In async code, run a call in a worker thread:

```python
import asyncio

check = await asyncio.to_thread(client.vat.validate_vat_number, vat="IE6388047V")
```

## Calling an endpoint that is not in the SDK yet

`client.request()` calls any path with the same key, retries and errors:

```python
data = client.request("vat", "/v1/vat/validate", query={"vat": "IE6388047V"})

posted = client.request(
    "sanctions",
    "/v1/screen",
    method="POST",
    body={"names": ["Acme Trading LLC"]},
)
```

The first argument is the API's slug from its catalog URL, or its name on the client.

## Requirements

Python 3.9 or later. Nothing else to install.

Keep your key on the server: in an environment variable or a secrets manager, not in code that ships to users.

## Other languages

JavaScript and TypeScript: [`dataandapis` on npm](https://www.npmjs.com/package/dataandapis). Every API also publishes an OpenAPI document, linked from its page in the [catalog](https://dataandapis.com/apis?ref=pypi).

## APIs

<!-- apis:start -->
### AI

| API | On the client | What it does |
|---|---|---|
| [Image to Text API](https://dataandapis.com/apis/image-to-text?ref=pypi) | `client.image_to_text` | Describe any image, answer questions about it or read its text with an on-platform vision model |
| [Object Detection API](https://dataandapis.com/apis/object-detection?ref=pypi) | `client.object_detection` | Labels, confidence scores and bounding boxes for the objects in any image, with an on-platform model |
| [Sentiment Analysis API](https://dataandapis.com/apis/sentiment-analysis?ref=pypi) | `client.sentiment_analysis` | Positive or negative with a confidence score for any text, from a model that runs on the platform |
| [Text Embeddings API](https://dataandapis.com/apis/text-embeddings?ref=pypi) | `client.text_embeddings` | 768-dimensional text embeddings for semantic search, clustering and RAG, from an on-platform model |

### Business

| API | On the client | What it does |
|---|---|---|
| [Business Patterns API](https://dataandapis.com/apis/business-patterns?ref=pypi) | `client.business_patterns` | Establishments, employment and payroll for every US county, state and ZIP by NAICS industry, Census 2023 |
| [Federal Contracts API](https://dataandapis.com/apis/federal-contracts?ref=pypi) | `client.federal_contracts` | 86,500 active SAM.gov opportunities and 48,000 awards over $1M, searchable and refreshed daily |
| [Federal Grants API](https://dataandapis.com/apis/grants?ref=pypi) | `client.grants` | All 83,000 Grants.gov funding opportunities since 2003 with forecasts, searchable by status and agency |
| [Occupations API](https://dataandapis.com/apis/occupations?ref=pypi) | `client.occupations` | O*NET occupations with 56,495 alternate job titles for normalising any job title to a SOC code |
| [Salary Benchmarks API](https://dataandapis.com/apis/salary-benchmarks?ref=pypi) | `client.salary_benchmarks` | BLS wage benchmarks for every US occupation by state and metro: mean, median and percentiles |
| [Tariff Codes API](https://dataandapis.com/apis/tariff-codes?ref=pypi) | `client.tariff_codes` | All 35,804 lines of the US Harmonized Tariff Schedule with duty rates, searchable |

### Data

| API | On the client | What it does |
|---|---|---|
| [Air Quality API](https://dataandapis.com/apis/air-quality?ref=pypi) | `client.air_quality` | Nearest-station PM2.5, ozone and US AQI readings for any coordinates |
| [Aircraft API](https://dataandapis.com/apis/aircraft?ref=pypi) | `client.aircraft` | 7,259 ICAO aircraft type designators with class, engines, wake category and FAA dimensions for 1,744 types |
| [Airports API](https://dataandapis.com/apis/airports?ref=pypi) | `client.airports` | 85,944 airports, heliports and airfields worldwide by IATA or ICAO code, with runways and frequencies |
| [Animals API](https://dataandapis.com/apis/animals?ref=pypi) | `client.animals` | 2,800 animal species with taxonomy, diet, lifespan, speed, habitat, prey, predators and IUCN status |
| [Astronomy API](https://dataandapis.com/apis/astronomy?ref=pypi) | `client.astronomy` | Sunrise, sunset, twilight, golden hour, moon phase and moonrise for any coordinates and date, computed in-worker |
| [Baby Names API](https://dataandapis.com/apis/baby-names?ref=pypi) | `client.baby_names` | Popularity, gender split and year-by-year trends for every US baby name since 1880 |
| [Cars API](https://dataandapis.com/apis/cars?ref=pypi) | `client.cars` | EPA fuel economy and specs for 50,000 US vehicles since 1984: MPG, CO2, EV range and annual fuel cost |
| [Cats API](https://dataandapis.com/apis/cats?ref=pypi) | `client.cats` | 67 cat breeds with origin, temperament, lifespan, weight and 1-to-5 trait scores, with images |
| [Climate Normals API](https://dataandapis.com/apis/climate-normals?ref=pypi) | `client.climate_normals` | NOAA 1991-2020 climate normals for 15,616 US stations: typical highs, lows, rain, snow and degree days by month |
| [Company Enrichment API](https://dataandapis.com/apis/companies?ref=pypi) | `client.companies` | Turn a domain or work email into company name, industry, size, HQ, tickers and socials |
| [Continents, Countries And Cities API](https://dataandapis.com/apis/continents-countries-and-cities?ref=pypi) | `client.continents_countries_and_cities` | 252 countries, 7 continents and 235,640 cities from GeoNames with coordinates, population, timezone and names |
| [Country Flags API](https://dataandapis.com/apis/country-flags?ref=pypi) | `client.country_flags` | ISO 3166 codes, localized country names, flag emoji and SVG flag URLs for every country |
| [Country Indicators API](https://dataandapis.com/apis/country-indicators?ref=pypi) | `client.country_indicators` | 24 World Bank development indicators for 217 countries since 1960: GDP, life expectancy, internet use and more |
| [Demographics API](https://dataandapis.com/apis/demographics?ref=pypi) | `client.demographics` | 32 Census ACS metrics for every US ZIP, county, metro, city and state: income, age, education, housing |
| [Dictionary API](https://dataandapis.com/apis/dictionary?ref=pypi) | `client.dictionary` | Definitions and examples for 155,000 English words, grouped by part of speech, from WordNet 3.1 |
| [Dogs API](https://dataandapis.com/apis/dogs?ref=pypi) | `client.dogs` | 296 AKC-recognised dog breeds with 14 scored traits, size, coat, colours, history and popularity since 2015 |
| [Earthquakes API](https://dataandapis.com/apis/earthquakes?ref=pypi) | `client.earthquakes` | 311,590 earthquakes of magnitude 4.5 and above since 1900 from USGS, with nearby and largest lookups, daily |
| [Emission Factors API](https://dataandapis.com/apis/emission-factors?ref=pypi) | `client.emission_factors` | 13,000 DEFRA and EPA greenhouse-gas emission factors with gases, units and the published file they came from |
| [EV Chargers API](https://dataandapis.com/apis/ev-chargers?ref=pypi) | `client.ev_chargers` | 105,000 EV charging stations in the US and Canada with connectors, power, networks and hours, synced daily |
| [Federal Register API](https://dataandapis.com/apis/federal-register?ref=pypi) | `client.federal_register` | Search every Federal Register rule, proposed rule, notice and executive order by keyword, agency and date |
| [Geocoding API](https://dataandapis.com/apis/geocoding?ref=pypi) | `client.geocoding` | Place names to coordinates and back for 235,640 cities and towns worldwide, no third-party calls |
| [Hospitals API](https://dataandapis.com/apis/hospitals?ref=pypi) | `client.hospitals` | 5,419 Medicare-certified US hospitals with CMS star ratings, emergency services and coordinates |
| [Hurricanes API](https://dataandapis.com/apis/hurricanes?ref=pypi) | `client.hurricanes` | Every Atlantic and Pacific tropical cyclone NOAA has tracked since 1851: 3,266 storms with six-hourly tracks |
| [IP Intelligence API](https://dataandapis.com/apis/ip-intelligence?ref=pypi) | `client.ip_intelligence` | Country, ASN, datacenter, cloud and Tor detection with an explainable risk score for any IP |
| [Marine Buoys API](https://dataandapis.com/apis/buoys?ref=pypi) | `client.buoys` | Live wave, wind and sea-temperature observations from 1,938 NOAA buoys and coastal stations worldwide |
| [Motorcycles API](https://dataandapis.com/apis/motorcycles?ref=pypi) | `client.motorcycles` | Specs for 42,500 motorcycle models from 607 brands, 1894 to today, with full factory spec sheets and photos |
| [Nonprofits API](https://dataandapis.com/apis/nonprofits?ref=pypi) | `client.nonprofits` | Verify any US nonprofit by EIN: IRS tax-exempt status and whether donations are deductible |
| [Population API](https://dataandapis.com/apis/population?ref=pypi) | `client.population` | UN population estimates and projections for 237 countries, 1950 to 2100, with 20 demographic indicators |
| [Power Plants API](https://dataandapis.com/apis/power-plants?ref=pypi) | `client.power_plants` | 34,936 power plants in 167 countries with capacity, fuel, coordinates and annual generation |
| [Product Recalls API](https://dataandapis.com/apis/product-recalls?ref=pypi) | `client.product_recalls` | Every US consumer product recall since 1973 from the CPSC, searchable and refreshed daily, with UPC lookup |
| [Quotes API](https://dataandapis.com/apis/quotes?ref=pypi) | `client.quotes` | Random and by-id quotes with authors across motivation, wisdom, love and humour |
| [River Conditions API](https://dataandapis.com/apis/rivers?ref=pypi) | `client.rivers` | Live streamflow, gage height and water temperature from 11,605 USGS river gauges, with nearest-gauge lookup |
| [Space Launches API](https://dataandapis.com/apis/space-launches?ref=pypi) | `client.space_launches` | All 7,391 orbital launches since Sputnik plus the live upcoming schedule, with vehicle, site, agency and outcome |
| [Thesaurus API](https://dataandapis.com/apis/thesaurus?ref=pypi) | `client.thesaurus` | Synonyms and antonyms for English words, grouped by part of speech and ranked by sense, from WordNet 3.1 |
| [Tides API](https://dataandapis.com/apis/tides?ref=pypi) | `client.tides` | NOAA tide predictions for 3,499 US stations with nearest-station lookup, straight from CO-OPS |
| [Trending API](https://dataandapis.com/apis/trending?ref=pypi) | `client.trending` | The most-read Wikipedia articles for any day and language, with internal pages filtered out |
| [US Lawyers API](https://dataandapis.com/apis/us-lawyers?ref=pypi) | `client.us_lawyers` | Search 14 state bar directories through one API: verify an attorney's licence, status and admission |
| [VIN Decoder API](https://dataandapis.com/apis/vin-decoder?ref=pypi) | `client.vin_decoder` | Decode any 17-character VIN into make, model, year, engine, body and plant details |
| [Weather API](https://dataandapis.com/apis/weather?ref=pypi) | `client.weather` | Current conditions, 48-hour hourly and 9-day daily forecasts for any coordinates, metric or imperial |
| [Zip & Postal Code API](https://dataandapis.com/apis/zip-postal-code?ref=pypi) | `client.zip_postal_code` | Postal and ZIP code lookup for about 100 countries, with place, region and coordinates |

### Education

| API | On the client | What it does |
|---|---|---|
| [Chemical Elements API](https://dataandapis.com/apis/elements?ref=pypi) | `client.elements` | All 118 chemical elements with NIST properties: mass, configuration, electronegativity, melting points and more |
| [Universities API](https://dataandapis.com/apis/universities?ref=pypi) | `client.universities` | 6,273 US colleges with admission rate, tuition, net price, completion, debt and earnings, plus 10,240 world universities |

### Entertainment

| API | On the client | What it does |
|---|---|---|
| [Anime API](https://dataandapis.com/apis/anime?ref=pypi) | `client.anime` | 24,000 anime titles with episodes, airing schedules, scores and genres, refreshed hourly |
| [Artworks API](https://dataandapis.com/apis/artworks?ref=pypi) | `client.artworks` | 132,739 artworks from the Art Institute of Chicago with artist, medium, dates, flags and IIIF image URLs |
| [Day In History API](https://dataandapis.com/apis/day-in-history?ref=pypi) | `client.day_in_history` | Events, births, deaths and holidays for any day of the year from Wikipedia's On This Day, with thumbnails |
| [Horoscope & Zodiac API](https://dataandapis.com/apis/horoscope-zodiac?ref=pypi) | `client.horoscope_zodiac` | Daily horoscopes for the 12 signs with mood, lucky number and colour, plus sign facts and date-to-sign lookup |
| [Jokes API](https://dataandapis.com/apis/jokes?ref=pypi) | `client.jokes` | 252 original, clean jokes in 12 categories, random, searchable and safe for any audience |
| [Lottery API](https://dataandapis.com/apis/lottery?ref=pypi) | `client.lottery` | Lottery providers and historical draw results with winning numbers, jackpots and prize tiers, searchable |
| [Manga, Manhua And Manhwa API](https://dataandapis.com/apis/manga-manhua-manhwa?ref=pypi) | `client.manga_manhua_manhwa` | Manga, manhua and manhwa catalogue with genres, status and authors, searchable by title |
| [Movies & TV API](https://dataandapis.com/apis/movies?ref=pypi) | `client.movies` | 232,658 movies and TV series from Wikidata, CC0, with IMDb and TMDB ids, cast, genres and runtime |
| [Notable People API](https://dataandapis.com/apis/notable-people?ref=pypi) | `client.notable_people` | 1.93 million notable people from Wikidata with birth and death dates, occupations and a notability rank |
| [Novels API](https://dataandapis.com/apis/novel?ref=pypi) | `client.novel` | East Asian novels catalogue with genres, status and authors, from classics to web novels |
| [Public Domain Books API](https://dataandapis.com/apis/books?ref=pypi) | `client.books` | All 78,037 Project Gutenberg ebooks in 56 languages with full-text search and download links |
| [Riddles API](https://dataandapis.com/apis/riddles?ref=pypi) | `client.riddles` | 176 curated riddles with answers in 8 categories and three difficulties, built for quiz and game UIs |
| [Trivia API](https://dataandapis.com/apis/trivia?ref=pypi) | `client.trivia` | 5,298 multiple-choice and true-or-false trivia questions in 24 categories and three difficulties |
| [Video Games API](https://dataandapis.com/apis/video-games?ref=pypi) | `client.video_games` | 31,336 video games from Wikidata, CC0, with platforms, genres, developers, publishers and Steam app ids |

### Events

| API | On the client | What it does |
|---|---|---|
| [Public Holidays API](https://dataandapis.com/apis/public-holidays?ref=pypi) | `client.public_holidays` | 23,786 public holidays for 204 countries from 2020 to 2028, with regional scope and long weekends |

### Finance

| API | On the client | What it does |
|---|---|---|
| [Banks API](https://dataandapis.com/apis/banks?ref=pypi) | `client.banks` | All 27,833 FDIC-insured banks, 78,075 branches with coordinates and every failure since 1934, refreshed daily |
| [BIN & Card Validator API](https://dataandapis.com/apis/bin-card-validator?ref=pypi) | `client.bin_card_validator` | Card scheme from a BIN and full-number validation with Luhn and length rules, nothing stored |
| [Company Financials API](https://dataandapis.com/apis/company-financials?ref=pypi) | `client.company_financials` | Annual revenue, profit, cash flow and balance sheet for 10,400 SEC filers, up to 25 years back |
| [Crypto Price API](https://dataandapis.com/apis/crypto-prices?ref=pypi) | `client.crypto_prices` | Live Coinbase spot prices for 400+ crypto assets in 170+ currencies, with candles and 24h stats |
| [Currency Exchange Rates API](https://dataandapis.com/apis/currency-rates?ref=pypi) | `client.currency_rates` | ECB reference exchange rates for 30 currencies with conversion, 90-day lookups and history |
| [IBAN & SWIFT/BIC Validator API](https://dataandapis.com/apis/iban-swift-validator?ref=pypi) | `client.iban_swift_validator` | Validate IBANs with the mod-97 checksum and parse SWIFT/BIC codes into bank, country, location and branch |
| [Inflation API](https://dataandapis.com/apis/inflation?ref=pypi) | `client.inflation` | US inflation calculator and CPI data since 1913: what $100 from 1990 is worth today, and why |
| [Mortgage & Loan Calculator API](https://dataandapis.com/apis/mortgage-loan-calculator?ref=pypi) | `client.mortgage_loan_calculator` | Monthly payment, total interest and a full amortisation schedule for any fixed-rate loan or mortgage |
| [Sales Tax & VAT API](https://dataandapis.com/apis/sales-tax-vat?ref=pypi) | `client.sales_tax_vat` | VAT and GST rates for 52 countries, US state sales tax for all 50 states, and a calculator |
| [Sanctions Screening API](https://dataandapis.com/apis/sanctions?ref=pypi) | `client.sanctions` | Screen names against OFAC, UN, EU and UK sanctions lists plus PEPs, with fuzzy matching |
| [Stock Tickers API](https://dataandapis.com/apis/stock-tickers?ref=pypi) | `client.stock_tickers` | Every US-listed symbol, 13,155 of them, with exchange, ETF flag and SEC CIK, refreshed nightly |
| [Trading Calendar API](https://dataandapis.com/apis/trading-calendar?ref=pypi) | `client.trading_calendar` | Is the US stock market open? NYSE and Nasdaq holidays, early closes and trading-day math, 1998 to 2200 |
| [VAT Validation API](https://dataandapis.com/apis/vat?ref=pypi) | `client.vat` | Validate EU VAT numbers against VIES with registered name and address where disclosed |

### Food

| API | On the client | What it does |
|---|---|---|
| [Cocktails API](https://dataandapis.com/apis/cocktails?ref=pypi) | `client.cocktails` | 46 classic cocktails and mocktails with ingredients, measures, glassware, garnish and instructions |
| [Food Nutrition Information API](https://dataandapis.com/apis/food-nutrition-information?ref=pypi) | `client.food_nutrition_information` | Nutrition facts by food name: calories, macronutrients and key micronutrients per serving |
| [Pokemon Unite Pokemons API](https://dataandapis.com/apis/pokemon-unite?ref=pypi) | `client.pokemon_unite` | Every playable Pokémon Unite character with role, stats, abilities and battle items |
| [Recipes API](https://dataandapis.com/apis/recipes?ref=pypi) | `client.recipes` | 115 curated home-cook recipes across 21 cuisines with quantities, steps, timings and dietary flags |

### Gaming

| API | On the client | What it does |
|---|---|---|
| [Hearthstone API](https://dataandapis.com/apis/hearthstone?ref=pypi) | `client.hearthstone` | Every Hearthstone card from Blizzard's data with class, set, cost, rarity, mechanics and text, twice-daily refresh |

### Health

| API | On the client | What it does |
|---|---|---|
| [Calories Burned API](https://dataandapis.com/apis/calories-burned?ref=pypi) | `client.calories_burned` | Calories burned for 1,111 activities from the 2024 Compendium of Physical Activities, by weight and time |
| [Drugs API](https://dataandapis.com/apis/drugs?ref=pypi) | `client.drugs` | 135,000 FDA drug products by NDC, joined with 17,900 recall reports |
| [Food Recalls API](https://dataandapis.com/apis/food-recalls?ref=pypi) | `client.food_recalls` | All 29,316 FDA food and supplement recalls since 2004, with class, reason, firm and distribution, synced nightly |
| [Healthcare Providers API](https://dataandapis.com/apis/healthcare-providers?ref=pypi) | `client.healthcare_providers` | Look up any of 9.37 million US NPIs with specialties resolved to plain names |

### Lifestyle

| API | On the client | What it does |
|---|---|---|
| [Attractions API](https://dataandapis.com/apis/attractions?ref=pypi) | `client.attractions` | 63,938 tourist attractions worldwide with coordinates, Wikipedia articles and 51,500 Commons photos, CC0 |
| [Travel Advisories API](https://dataandapis.com/apis/travel-advisories?ref=pypi) | `client.travel_advisories` | US State Department travel advisory levels for 213 destinations, with summaries and links, refreshed daily |
| [Watches API](https://dataandapis.com/apis/watches?ref=pypi) | `client.watches` | 1,257 watch movements from 320 brands with type, dimensions, jewels, power reserve and beat rate |

### Monitoring

| API | On the client | What it does |
|---|---|---|
| [SSL Checker Api](https://dataandapis.com/apis/ssl-checker-api?ref=pypi) | `client.ssl_checker` | Check any hostname's TLS certificate: validity, issuer, covered names and days until expiry, live |
| [Wildfires API](https://dataandapis.com/apis/wildfires?ref=pypi) | `client.wildfires` | Every active US wildfire from the National Interagency Fire Center, with acres, containment and location, live |

### Religion

| API | On the client | What it does |
|---|---|---|
| [Bible Multi-Translation API](https://dataandapis.com/apis/bible-multi-translation?ref=pypi) | `client.bible_multi_translation` | Verses from multiple Bible translations by book, chapter and verse, with version metadata |

### Technology

| API | On the client | What it does |
|---|---|---|
| [Mobile Devices API](https://dataandapis.com/apis/mobile-devices?ref=pypi) | `client.mobile_devices` | Smartphone, tablet and smartwatch specifications by brand: display, cameras, battery, memory and more |

### Text Processing

| API | On the client | What it does |
|---|---|---|
| [Translation API](https://dataandapis.com/apis/translation?ref=pypi) | `client.translation` | Translate text between about 100 languages with a model that runs on the platform, no third-party keys |

### Tools

| API | On the client | What it does |
|---|---|---|
| [Barcode Lookup API](https://dataandapis.com/apis/barcode-lookup?ref=pypi) | `client.barcode_lookup` | Product name, brand, ingredients and Nutri-Score for 4.3 million barcodes |
| [Colors API](https://dataandapis.com/apis/colors?ref=pypi) | `client.colors` | Name, convert and check contrast for any color, with 31,919 curated names and WCAG math |
| [Disposable Email Checker API](https://dataandapis.com/apis/disposable-email-checker?ref=pypi) | `client.disposable_email_checker` | Check an email or domain against 12,000 disposable mail providers, subdomains included |
| [DNS & WHOIS Lookup API](https://dataandapis.com/apis/dns-whois-lookup?ref=pypi) | `client.dns_whois_lookup` | DNS records over DNS-over-HTTPS and domain registration data over RDAP, in clean JSON |
| [Email Validation API](https://dataandapis.com/apis/email-validation?ref=pypi) | `client.email_validation` | Syntax, live MX check, disposable detection and typo suggestions for any email address |
| [Emoji API](https://dataandapis.com/apis/emoji?ref=pypi) | `client.emoji` | All 3,944 Unicode 17.0 emoji with names, groups, codepoints, shortcodes and keywords, searchable |
| [Language Detection API](https://dataandapis.com/apis/language-detection?ref=pypi) | `client.language_detection` | Detect the language of any text from 180 candidates with confidence scores and ranked alternatives |
| [Logos API](https://dataandapis.com/apis/logos?ref=pypi) | `client.logos` | Every icon a website publishes, scored and served as an image, from just the domain |
| [Lorem Ipsum API](https://dataandapis.com/apis/lorem-ipsum?ref=pypi) | `client.lorem_ipsum` | Words, sentences or paragraphs of Lorem Ipsum on demand for layouts, mockups and test data |
| [Name Intelligence API](https://dataandapis.com/apis/name-intelligence?ref=pypi) | `client.name_intelligence` | Gender inference with real probabilities and popularity history for 105,966 first names and 162,253 surnames |
| [Password Generator API](https://dataandapis.com/apis/password-generator?ref=pypi) | `client.password_generator` | Strong random passwords with the length and character classes you choose, generated with cryptographic randomness |
| [Phone Number Validation API](https://dataandapis.com/apis/phone-validation?ref=pypi) | `client.phone_validation` | Validate, type and format phone numbers for every country in E.164, international and national forms |
| [Random User API](https://dataandapis.com/apis/random-user?ref=pypi) | `client.random_user` | Realistic fake users for ten countries, internally consistent and seedable, never real people |
| [Spell Check API](https://dataandapis.com/apis/spell-check?ref=pypi) | `client.spell_check` | English spell check with ranked did-you-mean suggestions from a 132,729-word dictionary |
| [Tech Stack API](https://dataandapis.com/apis/tech-stack?ref=pypi) | `client.tech_stack` | Detect the CMS, frameworks, analytics, payments, CDN and hosting behind any website |
| [Unit Converter API](https://dataandapis.com/apis/unit-converter?ref=pypi) | `client.unit_converter` | Convert length, mass, volume, temperature, speed, energy, pressure and more between units in one call |
| [URL Metadata API](https://dataandapis.com/apis/url-metadata?ref=pypi) | `client.url_metadata` | Title, description, Open Graph, Twitter Card, canonical and favicon for any public URL |
| [User Agent Parser API](https://dataandapis.com/apis/user-agent-parser?ref=pypi) | `client.user_agent_parser` | Browser, engine, OS, device and CPU from any User-Agent string, or from the caller's own |

### Transportation

| API | On the client | What it does |
|---|---|---|
| [Aircraft Registrations API](https://dataandapis.com/apis/aircraft-registrations?ref=pypi) | `client.aircraft_registrations` | The full FAA registry: 316,483 US aircraft by tail number or Mode S hex, with owner, model and airworthiness |
| [Airlines API](https://dataandapis.com/apis/airlines?ref=pypi) | `client.airlines` | 4,650 airlines past and present with IATA and ICAO codes, callsigns, alliances and hub airports |
| [Airport Status API](https://dataandapis.com/apis/airport-status?ref=pypi) | `client.airport_status` | Live FAA delays for US airports: closures, ground stops, ground delay programs and arrival and departure delays |
| [Fuel Stations API](https://dataandapis.com/apis/fuel-stations?ref=pypi) | `client.fuel_stations` | 14,070 US and Canadian stations for E85, propane, biodiesel, CNG, renewable diesel, hydrogen and LNG |
| [Seaports API](https://dataandapis.com/apis/seaports?ref=pypi) | `client.seaports` | 3,805 seaports in 195 countries from the NGA World Port Index: depths, vessel limits, facilities and UN/LOCODE |
| [Traffic Fatalities API](https://dataandapis.com/apis/traffic-fatalities?ref=pypi) | `client.traffic_fatalities` | Every fatal US road crash from 2016 to 2023: 289,625 crashes with location, conditions and drinking-driver counts |
| [Vehicle Recalls API](https://dataandapis.com/apis/vehicle-recalls?ref=pypi) | `client.vehicle_recalls` | Every NHTSA recall since 1967 and 2.24 million owner complaints by make, model and year |

### Utilities

| API | On the client | What it does |
|---|---|---|
| [Barcode Generator API](https://dataandapis.com/apis/barcode-generator?ref=pypi) | `client.barcode_generator` | Generate Code 128, EAN, UPC, Code 39, ITF-14, Data Matrix, PDF417 and more as SVG or PNG |
| [HTML Render](https://dataandapis.com/apis/html-render?ref=pypi) | `client.html_render` | HTML to PDF, PNG, JPEG or WebP with headless Chromium: full CSS, web fonts and JavaScript |
| [Profanity Filter API](https://dataandapis.com/apis/profanity-filter?ref=pypi) | `client.profanity_filter` | Detect and censor profanity in English and Spanish with three severity tiers, so you filter only what you mean to |
| [QR Code Generator API](https://dataandapis.com/apis/qr-code-generator?ref=pypi) | `client.qr_code_generator` | QR codes for any text or URL as PNG, SVG or base64, with size, margin, error correction and colours |
| [Random Image & Placeholder API](https://dataandapis.com/apis/random-image?ref=pypi) | `client.random_image` | Placeholder images as SVG with solid or gradient backgrounds, a label and automatic contrast text |
| [Timezone & World Time API](https://dataandapis.com/apis/timezone-world-time?ref=pypi) | `client.timezone_world_time` | Current local time, UTC offset and daylight-saving status for any of 400+ IANA timezones |
<!-- apis:end -->

## License

MIT
