KeyVex Foreign Agents API

The Foreign Agents API from KeyVex — 1 operation(s) for foreign agents.

GitHub OpenAPI

Operations 1

GET /v1/foreign-agents Returns FARA registrations — US persons and firms registered with the DOJ as… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/keyvex-com:keyvex-com-foreign-agents-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

keyvex-com-foreign-agents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: KeyVex Foreign Agents API
  version: 0.102.0
  termsOfService: https://keyvex.com/terms
  description: 'US public financial-disclosure data — congressional trades, insider filings (Form 4), lobbying, Treasury auctions, member profiles. Requires an API key — create a free one at https://keyvex.com and send it as the header `x-api-key: `. A free key returns most public-record datasets (one year of history; no market-price data and a few heavy datasets are on paid plans only), capped at 60 requests/day; paid plans raise the caps. The daily allowance resets at midnight Eastern.'
servers:
- url: https://api.keyvex.com
security:
- ApiKeyAuth: []
tags:
- name: Foreign Agents
paths:
  /v1/foreign-agents:
    get:
      operationId: get_foreign_agents
      summary: Returns FARA registrations — US persons and firms registered with the DOJ as…
      description: 'Returns FARA registrations — US persons and firms registered with the DOJ as agents of a foreign principal under the Foreign Agents Registration Act. Use this when the user asks about: who is a registered foreign agent, which US firms work for a particular foreign government, recently-registered foreign agents, or to add a ''foreign- influence'' flag to a lobbying firm, law firm, or PR firm. Each record is one registrant ↔ foreign-principal relationship — a registrant representing three foreign principals appears as three records. The single highest-signal filter is foreign_principal_country: foreign_principal_country=''CHINA'' → every US agent acting for a Chinese principal Source: efile.fara.gov (DOJ National Security Division). v1A covers ACTIVE registrations. The registrant↔principal linkage is included; per-document filing detail and compensation figures are not — follow source_url to FARA eFile for those. Cross-source pairing pattern: FARA + get_lobbying_filings — FARA is foreign-principal representation; LDA is domestic lobbying. A firm in both is lobbying Congress on behalf of a foreign government. FARA + get_fec_contributions — foreign-agent firms whose people also make political contributions. FARA + get_congressional_trades — influence-and-trades overlay. Identifier: registration_number is the FARA registration number. has_foreign_principal=false records are registrants with no currently- active foreign principal (still queryable as registered agents). History: registrations that LEAVE DOJ''s active list are kept with status:''terminated'' (+ termination_observed_date) rather than deleted — a terminated registration is still real history. Default queries return BOTH; filter status:''active'' for the current roster only.'
      parameters:
      - name: registration_number
        in: query
        required: false
        description: Exact FARA registration number. Fastest lookup.
        schema:
          type: string
      - name: registrant_name
        in: query
        required: false
        description: Case-insensitive substring against the US registrant (agent) name.
        schema:
          type: string
      - name: foreign_principal_name
        in: query
        required: false
        description: Case-insensitive substring against the foreign principal's name.
        schema:
          type: string
      - name: foreign_principal_country
        in: query
        required: false
        description: Country of the foreign principal, matched uppercase (e.g. 'CHINA', 'RUSSIA', 'SAUDI ARABIA'). The key foreign-influence filter.
        schema:
          type: string
      - name: has_foreign_principal
        in: query
        required: false
        description: Filter to records that carry a foreign-principal relationship (true) or registrants with no active foreign principal (false).
        schema:
          type: boolean
      - name: status
        in: query
        required: false
        description: 'Registration status: ''active'' = currently on DOJ''s list; ''terminated'' = left the list since ingestion (kept as history). Omit for both.'
        schema:
          type: string
          enum:
          - active
          - terminated
      - name: since
        in: query
        required: false
        description: ISO date (YYYY-MM-DD). Only records on or after this date, by sort_by.
        schema:
          type: string
      - name: until
        in: query
        required: false
        description: ISO date (YYYY-MM-DD). Only records on or before this date.
        schema:
          type: string
      - name: sort_by
        in: query
        required: false
        description: 'Default: registration_date.'
        schema:
          type: string
          enum:
          - registration_date
          - foreign_principal_reg_date
      - name: sort_order
        in: query
        required: false
        description: 'Default: desc (most recent first).'
        schema:
          type: string
          enum:
          - desc
          - asc
      - name: limit
        in: query
        required: false
        description: Maximum records to return. Default 50, max 500.
        schema:
          type: integer
      responses:
        '200':
          description: 'JSON envelope: { results: [...], count, has_more }.'
        '400':
          description: Invalid parameter.
        '401':
          description: Missing or invalid API key.
        '402':
          description: This tool requires a higher plan (upgrade_required). Retrying will not help.
        '429':
          description: Tier rate/quota limit reached (rate_limited). Retry-After points at the reset.
      tags:
      - Foreign Agents
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key