The Meetup API provides a simple interface for accessing the Meetup platform from your own apps. It includes GET methods to query Meetup data, POST methods to create and alter resources, and streaming methods for realtime access to member activity.
Get updates on new features, announcements, and service advisories.
Follow @meetupapiGet your questions answered on the API mailing list.
The API is a set of core methods and a common request format. These are combined to form a URL that returns the information you want. Here's an example of an API call that lists moms groups near Williamsburg, Brooklyn.
http://api.meetup.com/groups1.xml2/?zip=11211&topic=moms3&order=members4&key=ABDE12456AB23244455
In addition, you can specify these parameters for more control:
Most requests must be authenticated. If no format is specified it defaults to json. Details on the formats, parameters and ordering accepted by each method are listed below.
In addition, requests about a specific group can identify the group with either a group_id, or a topic and groupnum. The group_id can be retrieved from the id field from requests to the "Groups" method (detailed below), and the topic and groupnum can be found in the URL for the meetup group - for example, the group with the URL at http://volunteerism.meetup.com/167/ can be accessed with the parameters topic=volunteerism&groupnum=167.
Each API method has multiple ways you can request the data be returned as. All methods support json, and this is the default format used when you don't explicitly supply one. The other formats are supported when it makes sense for the type of data being requested.
JSON JavaScript Object Notation. Learn more here.
XML A simple XML format with the exact same fields as the json response.
KML Keyhole markup language. Learn more here.
RSS RSS 2.0. Learn more here.
ATOM Learn more here.
The default character encoding for all API methods
going forward is UTF-8, while older API methods use
ISO-8859-1. To activate UTF-8 response encoding for all
methods, applications may supply in their requests an
Accept-Charset header for UTF-8.
curl "http://api.meetup.com/2/open_events?topic=dogs&key=ABDE12456AB2324445" \
--header "Accept-Charset: utf-8"
The above command shows how to add the header to a request made with curl. If "utf-8" or "utf8" occurs anywhere in this header (case-insensitive) the response will be UTF-8 encoded. Otherwise, the default encoding for the particular API method is used.
If you request json, and want to play with the API in a web browser -- callbacks are useful. Specifying a callback will allow you to populate sample data using a <script/> tag by returning javascript that calls the function you provide as a query parameter.
http://api.meetup.com/topics.json/?callback=gotIt&page=1&key=ABDE12456AB2324445
gotIt({"results":[...], "meta": {...}})
The context of a successful response to a query depends on the format it was requested in, though there are some broad similarities between the JSON and XML formats. Here's two samples:
curl 'http://api.meetup.com/topics.json/?key=ABDE12456AB2324445&page=1'
{
"results":[
{
"id":"4422",
"updated":"Mon Jun 26 15:01:05 GMT 2006",
"description":"Meet fellow Social Networkers near you! Come to a local Social Networking Meetup to make valuable social connections and cultivate relationships with other elbow-rubbers in your area.",
"name":"Social Networking",
"link":"http:\/\/socialnetwork.meetup.com\/",
"urlkey":"socialnetwork",
"members":"245701"
}
],
"meta":{
"id":"",
"title":"Meetup Topics",
"count":1,
"updated":"",
"description":"API for accessing meetup topics",
"next":"",
"link":"http:\/\/api.meetup.com\/topics\/",
"method":"Topics",
"total_count":3063,
"url":"http:\/\/api.meetup.com\/topics\/\/?order=members&key=1&page=1&format=json&desc=0&offset=0",
"prev":""
}
}
curl 'http://api.meetup.com/topics.xml/?key=ABDE12456AB2324445&page=1'
<?xml version='1.0' encoding='UTF-8'?>
<results>
<head>
<url>http://api.meetup.com/topics/?order=members&key=1&page=1&format=xml&desc=0&offset=0</url>
<link>http://api.meetup.com/topics/</link>
<total_count>3063</total_count>
<description>API for accessing meetup topics</description>
<title>Meetup Topics</title>
<count>1</count>
<next/>
<method>Topics</method>
<id/>
<updated/>
</head>
<items>
<item>
<updated>Mon Jun 26 15:01:05 GMT 2006</updated>
<members>245701</members>
<name>Social Networking</name>
<link>http://socialnetwork.meetup.com/</link>
<description>Meet fellow Social Networkers near you! Come to a local Social Networking Meetup to make valuable social connections and cultivate relationships with other elbow-rubbers in your area.</description>
<urlkey>socialnetwork</urlkey>
<id>4422</id>
</item>
</items>
</results>
The results entity contains a list of the items that match the criteria you supplied. Some methods support optional response fields specified in a fields parameter, separated by commas.
curl 'http://api.meetup.com/2/open_venues?key=yourapikey&zip=10021&fields=taglist'
Many of the query methods in the API require a member_id field for filtering. Sometimes you may want that member_id to be the id of the member owning the api key or who authorized an oauth token. To remove the need for an extra query to access that member_id, you may instead use the self alias in place of the member_id you would have to otherwise query for.
The following is an example of querying the /2/events method for your upcoming Meetup events.
curl 'http://api.meetup.com/2/events/?key=yourapikey&member_id=self'
This entity, meta in JSON and head in XML, supplies information about the response. For query methods, it can be expanded with Geo IP information by specifying a value of geo_ip in the fields parameter.
count is the number of records returnedtotal count is the total number of records that match your criteriaupdated is the last time one of the items in the requesttitle, description some descriptive information about the requestnext if the total count is more than the count, this url will request the next set of recordsurl the url used to generate this requestmethod the API method calledgeo_ip approximate location of the requesting client, if geo_ip is specified in the fields parameter
latlonRSS, ATOM and KML topics don't return the meta information provided by the XML & JSON formats.
When everything goes well, we'll send a 200 response code along with your data. If there was a problem, you will receive a response with error details formatted in either XML or JSON, depending on which format was requested. Except for JSON callbacks as noted below, error responses will have one of the following HTTP status codes:
The 400 BadRequest response is something of a catch-all: sent if you have incorrect or missing parameters, if you exceed your API limits or you request an unsupported format. The response body will have more detail.
JSON requests that specify a callback parameter are treated differently: the API always responds with an HTTP status of 200, so that a client browser will load the response and handle the callback. When an error occurs its corresponding status line is served in a "status" field of the error response object rather than in the response header.
By default we limit users to 200 requests per hour, and 200 max results for each request. If you exceed this number, the platform will return a 400 error response with limit as the code element in the error response body.
The type of authentication used determines how requests are tallied. With OAuth-signed requests, it's the user that authorized the access token. For requests signed by or containing an API Key, the count is distinct to the key owner and the requesting IP address. These methods are designed to scale the rate up with an application's distributed userbase. If your application must perform a large number of non-OAuth requests from a single IP, please get in touch so we can determine an appropriate limit.
API responses to authenticated requests contain information about your current rate limit status in their HTTP headers, as defined here:
X-RateLimit-Limit The total number of requests you are permitted to make per hourX-RateLimit-Remaining The number of requests you have remaining before the beginning the next rate limiting intervalX-RateLimit-Reset The time, in seconds since the unix epoc, when your X-RateLimit-Remaining count will be reset. Note that elsewhere the API uses milliseconds for its timestamps; for this header it conforms to an evolving rate limit standard.curl -I 'http://api.meetup.com/members/?relation=self&key=yourapikey'
Which should result in something like
HTTP/1.1 200 OK
Date: Wed, 26 Jan 2011 19:02:55 GMT
Server: Apache-Coyote/1.1
X-Meetup-server: x.meetup.com
X-RateLimit-Limit: 200
X-RateLimit-Remaining: 199
X-RateLimit-Reset: 1296072175
Content-Type: text/javascript;charset=ISO-8859-1
Content-Length: 2740
Vary: Accept-Encoding,User-Agent
Connection: close
Meetup Everywhere is built to be simple to use and to share. That means it's not only easier for people everywhere to have Meetups, but it allows us to provide a complete API that is easy for developers, too.
The foundations of this platform are the same as the rest of the API, including response formats and authentication. You can supply an API key, OAuth, or key-signed request for authentication as described in the auth documentation. Much of the interaction, parameter names, response fields, and so on will be familiar to experienced Meetup platform developers, while other parts of the API are a fresh take. Give it a whirl, and as always, don't be shy about voicing your questions and suggestions on the Meetup Developers forum.
To make it easy to develop Meetup Everywhere applications that have little or no local storage, the API supports user defined fields for Containers, Communities, Events, RSVPs and Comments. These field names begin with "udf_" followed by a name you choose, and may be assigned any string value.
User defined fields are assigned and queried just as other fields in the API. Include a parameter beginning with "udf_" in a create or edit POST method to assign it as a field. Field names may be up to 35 characters including the "udf_" prefix. For query methods, specify a UDF parameter with a value to limit the results to those that contain that field with a matching value. The match is case-insensitive and no wildcards are supported.
In result items, these fields are returned only when specified in the fields parameter of the request. Specify "all_udf" to retrieve any fields associated with the entity.
Log in to Meetup with your Facebook account.