AnySchool

AnySchool API reference

Version 1 · Updated 13 October 2026

1. Access

The AnySchool API is part of the Unlimited Data/API plan, sold by annual contract. To add it, email support@any.school.

Base URL: https://any.school/api/v1. Requests and responses are JSON (UTF-8). Times are UTC, in ISO 8601.

2. API keys

  • Owners and admins of your organization create keys in My Account > API keys. A key is shown once, when it is created: copy it then. An organization can have up to 10 active keys.
  • A key acts as the person who created it, inside your organization: the same plan, countries, fields, credits and member allotment as that person has in the web app.
  • A key stops working when it is revoked, when the person who created it leaves your organization, or when your plan no longer includes API access.
  • Keep keys secret. Use them only from your own servers, never in a browser or an app that other people can inspect. To rotate a key, create a new one, switch your systems to it, then revoke the old one.
  • Keys can't manage the account: API keys, your team, billing, your profile and connected apps need a signed-in session.

3. Authentication

Send the key in the Authorization header:

Authorization: Bearer sk_live_...

or in the X-API-Key header:

X-API-Key: sk_live_...
curl https://any.school/api/v1/contacts/credits \
  -H "Authorization: Bearer $ANYSCHOOL_API_KEY"

4. Rate limits

Each key can make 60 requests a minute. Above that, the API answers 429 Too Many Requests with a Retry-After header: the number of seconds to wait before trying again.

5. Credits and masked contacts

  • School data does not use credits.
  • Contacts come back masked: the name (in part or in full), email, phone, LinkedIn profile and bio stay hidden until your organization unmasks the contact. Title, department and school are always shown.
  • Unmasking a contact your organization has not unmasked before costs one credit. Contacts it already unmasked are free and stay unmasked for everyone in your organization.
  • Credits come from your plan's monthly allowance (Unlimited Data/API has no monthly cap) and, if your owner set one, from the key creator's member allotment. When they run out, the API answers 402 and charges nothing.
  • Unmasks made with an API key are recorded as API use.
  • There is no bulk contact download: contact search returns at most 100 contacts a page, an unmask request covers at most 100 contacts, and export only carries contacts your organization has already unmasked.

6. Endpoints

Schools

GET /schools/?skip=0&limit=100
Page through the schools your plan covers, with every field your plan can read (limit up to 1,000).
GET /schools/all-data?country=United%20Kingdom
Every school in one country, with every field your plan can read. Use the country's English name.
GET /schools/{school_id}
One school.
GET /misc/terminal/school/{school_id}/details
One school with every field your plan can read and its contacts, masked unless your organization unmasked them.

Contacts

POST /contacts/query
Search contacts (masked). Body: school_ids (omit it for every school your plan covers), search_terms (matches title or department), titles, departments, min_confidence (0–100), unmasked_only, sort_by (title, department, school_name, confidence_score, created_at, id), sort_dir (asc, desc), limit (up to 100, default 50) and offset. Names and emails can't be searched or sorted on. Returns contacts, total, limit and offset.
POST /contacts/unmask
Body: {"contact_ids": [...]} (1 to 100 ids). Costs one credit per new contact and returns the contacts unmasked, with charged, already_unmasked, skipped_ids (unknown or unavailable ids, never charged) and your credits.
GET /contacts/credits
Your organization's credits this month: monthly_quota, used, remaining, is_unlimited, effective_remaining (what the key's creator can spend now) and resets_at.
GET /contacts/unmasked?limit=100&offset=0
Contacts your organization has unmasked, newest first (limit up to 500).
POST /contacts/export
Body: {"contact_ids": [...], "format": "csv"} (or "xlsx"). A CSV or Excel file of contacts your organization has already unmasked, up to 5,000 a request (omit contact_ids for the 5,000 most recent). Masked contacts are never exported. Needs a plan with export; Unlimited Data/API includes it. The row count is in the X-Export-Row-Count header.
curl -X POST https://any.school/api/v1/contacts/query \
  -H "Authorization: Bearer $ANYSCHOOL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"school_ids": [12345], "titles": ["Head of School"], "limit": 50}'

curl -X POST https://any.school/api/v1/contacts/unmask \
  -H "Authorization: Bearer $ANYSCHOOL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"contact_ids": [987, 988]}'

7. Errors

Errors come back as {"detail": "message"} or, with a code, {"detail": {"code": "...", "message": "..."}}. Messages are in English; send X-AnySchool-Lang: es, pt, zh or ar for Spanish, Portuguese, Chinese or Arabic.

  • 401: the key is missing, invalid or revoked, or the person who created it left the organization.
  • 402: not enough credits (credits_exhausted, quota_exceeded, member_allotment_exhausted). Nothing was charged.
  • 403: your plan doesn't include API access (upgrade_required) or this action (not_entitled), or the route manages the account.
  • 404: not found, or outside the countries your plan covers.
  • 422: the request is not valid; detail says which field.
  • 429: too many requests; wait the Retry-After seconds.

8. Help

Email support@any.school.