Piloterr

Google Countries Finder

GET
/v2/finder/google-countries

Search the list of Google-supported countries by name or country code to use in Google Search API requests.

Autorización

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Parámetros de consulta

query*string

Filters countries based on a search string. The search is non-case-sensitive and returns all countries whose names contain the specified string.

Example:

fr
fields?string

Comma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).

is_async?boolean

Run the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.

Defaultfalse
soft_fail?boolean

Return HTTP 200 even when the request fails; the error is in the error field of the body.

Defaultfalse

Cuerpo de la respuesta

Successful response

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://api.piloterr.com/v2/finder/google-countries?query=string'
Example Response
[  {    "country_code": "fr",    "country_name": "France"  },  {    "country_code": "gf",    "country_name": "French Guiana"  },  {    "country_code": "pf",    "country_name": "French Polynesia"  },  {    "country_code": "tf",    "country_name": "French Southern Territories"  }]