Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 643 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 643 Bytes

A small python library for idealista.com API

# import the module
import idealista_api as iapi

APYKEY = 'YOUR_API_KEY'
secret = 'YOUR_API_SECRET'

# client object to use the api
client = iapi.Client(APYKEY, secret)
# set up your data
data = {'center': '41.394554,2.175153',
        'distance': 10000,
        'operation': 'sale',
        'propertyType': 'homes',
        'locale': 'en',
        'maxItems': 50,
        'order': 'publicationDate',
        'numPage': 0} # change this number for each request

# request the data and parse the data as dictionary
r = client.api_search('es', data)