Skip to main content
POST
Get Postal Code Location Info

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-postal-code
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-postal-code
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
city
string

Full city name (case-sensitive) to search for location information. Premium tier required. At least one of postal_code, city, or province must be provided.

Examples:

"Ottawa"

"Toronto"

"Vancouver"

postal_code
string

Canadian postal code (6 or 7 characters with optional space, e.g., 'K1A0B1' or 'K1A 0B1'). At least one of postal_code, city, or province must be provided.

Examples:

"K1A0B1"

"K1A 0B1"

"M5H2N2"

province
string

2-letter Canadian province abbreviation (e.g., 'ON' for Ontario, 'BC' for British Columbia). Premium tier required. At least one of postal_code, city, or province must be provided.

Examples:

"ON"

"BC"

"QC"

"AB"

Response

Tool result data

details
object[]
required