GET accounts/:account_id/cards/website¶
Retrieve card information about website cards for a given account.
Resource URL¶
GET accounts/:account_id/cards/website
Resource Information¶
| Response formats | JSON |
| Requires authentication? | Yes (user context only) |
| Rate limited? | Yes |
Parameters¶
| Name | Required | Description | Default Value | Example |
| account_id | required | The identifier for the leveraged account. Appears within the resource’s path and is generally a required parameter for all Advertising API requests excluding GET accounts . The specified account must be associated with the authenticating user. | 43853bhii879 | |
| card_ids | optional | Include specific cards in your request. | g9z | |
| with_deleted | optional | Include deleted results in your request. Defaults to false. | true | |
| count | optional | Specifies the number of records to try and retrieve, up to a maximum of 1000 per distinct request. | ||
| cursor | optional | Specifies a cursor to get the next page of results. See Pagination for more information. | gc-ddf4a | |
| sort_by | optional | Sorts by supported attribute in ascending or descending order. See Sorting for more information. | created_at-asc updated_at-desc |
Example Request¶
GET https://ads-api.twitter.com/1/accounts/abc1/cards/website
Example Response¶
{
"data": [
{
"image": "https://pbs.twimg.com/peacock/398520248267071488/image.jpg",
"website_url": "https://support.twitter.com/",
"updated_at": "2014-05-18T21:29:18Z",
"website_cta": "READ_MORE",
"website_title": "Twitter Help Center",
"name": "Test Website Card 1",
"created_at": "2014-05-18T21:29:18Z",
"account_id": "abc1",
"card_type": "WEBSITE",
"preview_url": "https://cards.twitter.com/cards/abc1/g9z",
"id": "g9z"
}
],
"total_count": 1,
"data_type": "card",
19.20.21.22.23.24.25.26."request": {
"params": {
"account_id": "abc1",
"card_type": "website"
}
},
"next_cursor": null
}