LovPics Locations API
The locations API from LovPics — 3 operation(s) for locations.
The locations API from LovPics — 3 operation(s) for locations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/lovpics-com:lovpics-com-locations-api"
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.
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: 3.2.0
info:
title: Virtual Studio Locations API
version: 0.1.0
tags:
- name: Locations
paths:
/api/locations/initial:
get:
tags:
- Locations
summary: Get Initial Data
description: 'Get all countries with nested states for initial dropdown population
This eliminates multiple round trips by sending countries + states in one request
Returns:
{
"countries": [
{
"id": 1,
"name": "Country Name",
"states": [
{"id": 101, "name": "State Name"},
...
]
},
...
]
}'
operationId: get_initial_data_api_locations_initial_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LocationsInitialResponse'
/api/locations/cities:
get:
tags:
- Locations
summary: Get Cities
description: 'Get all cities for a specific state
Args:
state_id: The ID of the state
Returns:
{
"cities": [
{"id": 1001, "name": "City Name"},
...
]
}'
operationId: get_cities_api_locations_cities_get
parameters:
- name: state_id
in: query
required: true
schema:
type: integer
description: State ID to get cities for
title: State Id
description: State ID to get cities for
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CitiesResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/locations/resolve:
get:
tags:
- Locations
summary: Resolve Location Names
description: 'Resolve location IDs to human-readable names
Args:
country_id: Optional country ID
state_id: Optional state ID
city_id: Optional city ID
Returns:
{
"country_name": "Country Name" or null,
"state_name": "State Name" or null,
"city_name": "City Name" or null
}'
operationId: resolve_location_names_api_locations_resolve_get
parameters:
- name: country_id
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
description: Country ID
title: Country Id
description: Country ID
- name: state_id
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
description: State ID
title: State Id
description: State ID
- name: city_id
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
description: City ID
title: City Id
description: City ID
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LocationNamesResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
IdName:
properties:
id:
type: integer
title: Id
examples:
- 1
name:
type: string
title: Name
examples:
- India
additionalProperties: true
type: object
required:
- id
- name
title: IdName
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
LocationNamesResponse:
properties:
country_name:
anyOf:
- type: string
- type: 'null'
title: Country Name
examples:
- India
state_name:
anyOf:
- type: string
- type: 'null'
title: State Name
examples:
- Karnataka
city_name:
anyOf:
- type: string
- type: 'null'
title: City Name
examples:
- Bengaluru
additionalProperties: true
type: object
title: LocationNamesResponse
LocationsInitialResponse:
properties:
countries:
items:
$ref: '#/components/schemas/CountryWithStates'
type: array
title: Countries
additionalProperties: true
type: object
required:
- countries
title: LocationsInitialResponse
CitiesResponse:
properties:
cities:
items:
$ref: '#/components/schemas/IdName'
type: array
title: Cities
additionalProperties: true
type: object
required:
- cities
title: CitiesResponse
CountryWithStates:
properties:
id:
type: integer
title: Id
examples:
- 1
name:
type: string
title: Name
examples:
- India
states:
items:
$ref: '#/components/schemas/IdName'
type: array
title: States
additionalProperties: true
type: object
required:
- id
- name
- states
title: CountryWithStates
securitySchemes:
HTTPBearer:
type: http
scheme: bearer