Carma

FREE
By conorroche
Updated 10 months ago
Travel
0.1/10
Popularity Score
59075ms
Latency
-
Success Rate

Carma API Documentation

Get there together! Shared car seats means a faster, greener and more affordable commute for you and your neighbors. The Carma API provides complete access to developers to build carpool apps and solutions to help solve one of the world's most universal problems. NB we have only included a small subset of the Carma APIs on mashape.com go to api.car.ma to see all of them.

View API Details
GETSearch Users By Alias
GETNearby Users
GETTrip search
GETSearch Users By Alias

NB For the full Carma API listing go to https://api.car.ma/apidoc/ref/index.html Search users by name, the result will be ordered so users who's last known location is closest to the given location are first. Note: This endpoint does NOT require authentication

Authorization:

Carma supports the Implicit, Authorization Code and Password flows of Oauth2

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationOAUTH2
REQUIREDCarma supports the Implicit, Authorization Code and Password flows of Oauth2
AcceptSTRING
REQUIREDThe representation of the content to return, Carma supports json and xml representations.
Required Parameters
client_idSTRING
REQUIREDThe oauth client id of the calling application. Clients should provide this otherwise they may be subject to much lower rate limits and may be blocked in future.
keywordSTRING
REQUIREDThe search keyword. This can be a prefix of a users first name, or a first name and an initial of a surname. e.g. both Bob and Bobby S will match Bobby Sandz. More than 1 character of the surname will not be matched e.g. Bobby Sa will not match Bobby Sandz as surnames are private.
Optional Parameters
userIdNUMBER
OPTIONALThe user id of the user doing the search, optional can be -1 for non logged in users
latNUMBER
OPTIONALThe latitude of the given location in decimal degrees between -90 and 90 (+ for N Lat, - for S Lat), used to order users nearest to this location, optional
lonNUMBER
OPTIONALThe longitude of the given location in decimal degrees between -180 and 180 (+ for E Long, - for W Long), used to order users nearest to this location, optional
pageSizeNUMBER
OPTIONALThe maximum number of users to return.
pageNumNUMBER
OPTIONALWhich page to return, 1-indexed. For example, page=2 with max=50 will get users 51-100.
userfieldsSTRING
OPTIONALA comma-separated list of fields that should be included with the user object. Clients SHOULD ask for the minimum amount of data they require. If this parameter is not included then the default is used. If this is passed in with an empty value as in ?userFields= then this will return just the user id and a flag indicating whether the user account has been deleted. The other supported values are: NAME, ALIAS, REGISTRATION_TIME, EMAIL,PHOTO_URL, HOME_CITY, COUNTRY, WEBPAGE, BIO, LAST_KNOWN_LOCATION, LAST_KNOWN_LOCATION_ADDRESS, LAST_KNOWN_LOCATION_ADDRESS_STREET, IS_CURRENTLY_RIDESHARING, LAST_TRIP_SEARCH, RATING, IS_FAVOURITE, IS_FREE_RIDER, IS_FREE_DRIVER, VALIDATIONS_EMAIL, VALIDATIONS_PHONE, VALIDATIONS_NUM_POSITIVE_REVIEWS, VALIDATIONS_CONNECTED_FACEBOOK, VALIDATIONS_AFFILIATES, LAST_SEEN_TIMESTAMP, LAST_LOGIN_TIMESTAMP, GENDER, CREDIT_BALANCES, LOCALE, TEST_ACCOUNT_STATUS, LAST_CHANGED_TIMESTAMP_BASIC, ACHIEVEMENTS, DISTANCE NOTE: The calling user can see all of their own details but will only see a subset of the public fields of another user
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication