Welcome, Guest Sign In | Sign Up | Help
Upcoming API Documentation
Currently, the use of these APIs are restricted to non-commercial use only. If you'd like to use it for commercial purposes, please contact us first.
metro.search [HTTP GET]
Searches for metros whose name or "code" matches the search_text.
Arguments
api_key (Required)
Your API application key. If you don't have one, create one.

search_text (Optional)
The search text to use. Supports quoted strings and empty parameter (to display all). Please restrict by another parameter when using blank values.

country_id (Numeric, Optional)
The country_id of the event, used to narrow down the responses. To get a country_id, try the metro.getCountryList function.

state_id (Numeric, Optional)
The state_id of the event, used to narrow down the responses. To get a state_id, try the metro.getStateList function.

Example Response (Search for "Los")
<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="ok" version="1.0">
    <metro id="1" name="Los Angeles" code="la" state_code="ca"
      country_code="us" url="/metro/us/ca/la/" state_id="5" 
      state_name="California" country_id="1"
      country_name="United States"
      />
    <metro id="592" name="Downtown Los Angeles" code="dtla" state_code="ca"
      country_code="us" url="/metro/us/ca/dtla/" state_id="5" 
      state_name="California" country_id="1"
      country_name="United States" />
</rsp>		
Error Codes
404 Not Found:
  • Missing valid api_key - Please create an API key using the above link.
  • Your api_key is inactive or not found - Please contact us for support.
  • Invalid search_text parameter - search_text is required.
Tools
Upcoming Badges for Your Blog/Website | Invite Friends | Groups | Developers API
Help
News Blog | Community Guidelines | FAQ | Contact Us | Suggestion Board