user
User API Endpoint: Get details on a user's social media account including linked social networks and social usernames.
User API Endpoint
❗Click the › in the endpoint to view details.
Get user profile details
GET
https://app.ayrshare.com/api/user
Get information on the user or user profile including linked social networks and social usernames.
Query Parameters
Name | Type | Description |
---|---|---|
instagramQuota | boolean | Return the current Instagram quota used - 50 posts over a 24-hour rolling period and the Instagram profile type: creator or business. Default: false. |
validate | boolean | Check if a user profile still exists. If the user profile no longer exists, the delete details will be returned. Must include the Profile Key in the header. Optional. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Format: |
Profile-Key | string | The Profile Key of a user profile. |
If no social accounts are linked, activeSocialAccounts
will not be returned.
Get data for a particular User Profile by adding the Profile-Key in the header.
If your business requires gathering all of your user profile data at once, please use the /user/batch endpoint.
If you need a notification when a user links and unlinks a social account, please see the /webhooks endpoint.
Request Examples
Get Pinterest user board details
GET
https://app.ayrshare.com/api/user/details/:platform
Get the details of a particular platform. Current support for Pinterest Boards.
Currently supported platform values: "pinterest"
https://app.ayrshare.com/api/user/details/pinterest
Premium, Business, or Enterprise Plan required.
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Format: |
Profile-Key | string | The Profile Key of a user profile. |
Request Examples
Batch Get All User Profiles
GET
https://app.ayrshare.com/api/user/batch
Retrieve the user data for all user profiles. Use the batch endpoint as an alternative to calling the /user endpoint for each of your users in rapid succession, which maybe be restricted by rate-limits.
The endpoint will return a pre-signed URL for the file containing all the user profile data. Please note the urlAvailable
field time for when the file will be accessible.
The pre-signed URL will expire in 7 days after creation. A new file may be generated every 3 hours.
You may also be notified when the file is ready via the Batch Action webhook.
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Format: |
Request Examples
Last updated