- Previous: Getting started
- Up: Introduction
- Next: Fundraiser details
Fundraiser search
Page and account creation APIs are now unavailable so please consider your use of our APIs and how this affects you. All other APIs will be available until 18 February. If you have any questions please take a look at our Q&A.
Documentation
Fundraiser search
This API is for searching for fundraisers using their name. The search takes two parameters, one for the surname (which is mandatory) and one for the forename (which is optional). The surname must be at least 3 characters long and up to 100 fundraisers can be returned.
The search returns fundraisers in the following order:
-
Fundraiser that matches the forename and surname.
-
Fundraisers that match the surname and where the forename starts with the characters passed.
-
Fundraisers where the surname and the forename start with the characters passed.
URL
Operation type: GET
https://api.virginmoneygiving.com/fundraisers/v1/search?surname={last name}&forename={first name}&api_key={your API key}
Parameter | Required | Data type | Description |
---|---|---|---|
surname | True | Varchar(50) | This is the full or starting characters for the surname. |
forename | False | Varchar(50) | This is the full or starting characters for the forename. |
api_key | True | Varchar (24) | This is your key that allows you access to the VMG APIs. |
Responses
Outcome | Further information |
---|---|
Success |
|
Error |
Sample error: If no search results exist then the following is returned:
Click here for a full list of API error codes. |
Response description
Data item | Data type | Description |
---|---|---|
fundraiserName | Varchar(122) | This is the title, first and last name of the fundraiser. |
title | Varchar(20) | This is the title of the fundraiser – Mr, Mrs etc. |
forename | Varchar(50) | The first name of the fundraiser. |
surname | Varchar(50) | The last name of the fundraiser. |
resourceId | Varchar(36) | This is the resource ID of the fundraiser. |
fundraiserURI | Varchar(45) | This is the URL link to the fundraiser in the VMG system. |
personalUrl | Varchar(100) | This is the link to the fundraiser details API. |
XML response example
<fundraiserSearchResults> <fundraiserSearchResult> <fundraiserName>Mrs Mel Test</fundraiserName> <title>Mrs</title> <forename>Mel</forename> <surname>Test</surname> <resourceId>04c02572-8d5f-11e2-ad62-005056a8589d</resourceId> <fundraiserURI>https://api.virginmoneygiving.com/fundraisers/v1/account/04c02572-8d5f-11e2-ad62-005056a8589d</fundraiserURI> </fundraiserSearchResult> </fundraiserSearchResults>
JSON response example
{ "fundraiserName": "Mrs Mel Test", "title": "Mrs", "forename": "Mel", "surname": "Test", "resourceId": "04c02572-8d5f-11e2-ad62-005056a8589d", "personalUrl": null, "fundraiserURI": "https://sandbox.api.virginmoneygiving.com/fundraisers/v1/04c02572-8d5f-11e2-ad62-005056a8589d" }
- Previous: Getting started
- Up: Introduction
- Next: Fundraiser details
Docs Navigation
- Introduction
- Getting started
- Fundraiser search
- Fundraiser details
- Fundraiser details V2
- Fundraising page details
- Fundraising page details V2
- Charity search
- Validate URL
- Country code lookup
- Address lookup
- Account Exists
- Create fundraiser account
- Activity lookup
- Event search
- Create fundraiser page
- Event summary
- Event fundraisers
- Event Fundraisers V2
- Event fundraisers 2
- Event fundraisers 2 V2
- Charity fundraisers
- Charity fundraisers V2
- Charity details
- Authentication
- Useful information
- Error codes
- Glossary
- Software development kit