posts
Posts related operations
List all posts
Success
The page data
The next page URL if exists
The current page
The page size used for pagination
The previous page URL if exists
The total paginated items
const response = await fetch('//www.data.gouv.fr/api/1/posts/', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"data": [
{
"body_type": "markdown",
"content": "text",
"created_at": "2024-12-09T19:32:06.993Z",
"credit_to": "text",
"credit_url": "text",
"datasets": [
{
"acronym": "text",
"archived": "2024-12-09T19:32:06.993Z",
"badges": [
{
"kind": "text"
}
],
"community_resources": [
{
"checksum": {
"type": "sha1",
"value": "text"
},
"created_at": "2024-12-09T19:32:06.993Z",
"description": "text",
"filesize": 0,
"filetype": "file",
"format": "text",
"harvest": {
"created_at": "2024-12-09T19:32:06.993Z",
"modified_at": "2024-12-09T19:32:06.993Z",
"uri": "text"
},
"id": "text",
"internal": {
"created_at_internal": "2024-12-09T19:32:06.993Z",
"last_modified_internal": "2024-12-09T19:32:06.993Z"
},
"last_modified": "2024-12-09T19:32:06.993Z",
"latest": "text",
"mime": "text",
"preview_url": "text",
"schema": {
"name": "text",
"url": "text",
"version": "text"
},
"title": "text",
"type": "main",
"url": "text",
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"contact_point": {
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"created_at": "2024-12-09T19:32:06.993Z",
"deleted": "2024-12-09T19:32:06.993Z",
"description": "text",
"featured": false,
"frequency": "unknown",
"frequency_date": "2024-12-09T19:32:06.993Z",
"harvest": {
"archived": "text",
"archived_at": "2024-12-09T19:32:06.993Z",
"backend": "text",
"ckan_name": "text",
"ckan_source": "text",
"created_at": "2024-12-09T19:32:06.993Z",
"dct_identifier": "text",
"domain": "text",
"last_update": "2024-12-09T19:32:06.993Z",
"modified_at": "2024-12-09T19:32:06.993Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"uri": "text"
},
"id": "text",
"internal": {
"created_at_internal": "2024-12-09T19:32:06.993Z",
"last_modified_internal": "2024-12-09T19:32:06.993Z"
},
"last_modified": "2024-12-09T19:32:06.993Z",
"last_update": "2024-12-09T19:32:06.993Z",
"license": "notspecified",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"page": "text",
"private": false,
"resources": [
{
"checksum": {
"type": "sha1",
"value": "text"
},
"created_at": "2024-12-09T19:32:06.993Z",
"description": "text",
"filesize": 0,
"filetype": "file",
"format": "text",
"harvest": {
"created_at": "2024-12-09T19:32:06.993Z",
"modified_at": "2024-12-09T19:32:06.993Z",
"uri": "text"
},
"id": "text",
"internal": {
"created_at_internal": "2024-12-09T19:32:06.993Z",
"last_modified_internal": "2024-12-09T19:32:06.993Z"
},
"last_modified": "2024-12-09T19:32:06.993Z",
"latest": "text",
"mime": "text",
"preview_url": "text",
"schema": {
"name": "text",
"url": "text",
"version": "text"
},
"title": "text",
"type": "main",
"url": "text"
}
],
"schema": {
"name": "text",
"url": "text",
"version": "text"
},
"slug": "text",
"spatial": {
"geom": {
"coordinates": [],
"type": "Point"
},
"granularity": "other",
"zones": [
"text"
]
},
"tags": [
"text"
],
"temporal_coverage": {
"end": "2024-12-09T19:32:06.993Z",
"start": "2024-12-09T19:32:06.993Z"
},
"title": "text",
"uri": "text"
}
],
"headline": "text",
"id": "text",
"image": "text",
"last_modified": "2024-12-09T19:32:06.993Z",
"name": "text",
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"page": "text",
"published": "2024-12-09T19:32:06.993Z",
"reuses": [
{
"archived": "2024-12-09T19:32:06.993Z",
"badges": [
{
"kind": "text"
}
],
"created_at": "2024-12-09T19:32:06.993Z",
"datasets": [
{
"acronym": "text",
"archived": "2024-12-09T19:32:06.993Z",
"badges": [
{
"kind": "text"
}
],
"community_resources": [
{
"checksum": {
"type": "sha1",
"value": "text"
},
"created_at": "2024-12-09T19:32:06.993Z",
"description": "text",
"filesize": 0,
"filetype": "file",
"format": "text",
"harvest": {
"created_at": "2024-12-09T19:32:06.993Z",
"modified_at": "2024-12-09T19:32:06.993Z",
"uri": "text"
},
"id": "text",
"internal": {
"created_at_internal": "2024-12-09T19:32:06.993Z",
"last_modified_internal": "2024-12-09T19:32:06.993Z"
},
"last_modified": "2024-12-09T19:32:06.993Z",
"latest": "text",
"mime": "text",
"preview_url": "text",
"schema": {
"name": "text",
"url": "text",
"version": "text"
},
"title": "text",
"type": "main",
"url": "text",
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"contact_point": {
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"created_at": "2024-12-09T19:32:06.993Z",
"deleted": "2024-12-09T19:32:06.993Z",
"description": "text",
"featured": false,
"frequency": "unknown",
"frequency_date": "2024-12-09T19:32:06.993Z",
"harvest": {
"archived": "text",
"archived_at": "2024-12-09T19:32:06.993Z",
"backend": "text",
"ckan_name": "text",
"ckan_source": "text",
"created_at": "2024-12-09T19:32:06.993Z",
"dct_identifier": "text",
"domain": "text",
"last_update": "2024-12-09T19:32:06.993Z",
"modified_at": "2024-12-09T19:32:06.993Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"uri": "text"
},
"id": "text",
"internal": {
"created_at_internal": "2024-12-09T19:32:06.993Z",
"last_modified_internal": "2024-12-09T19:32:06.993Z"
},
"last_modified": "2024-12-09T19:32:06.993Z",
"last_update": "2024-12-09T19:32:06.993Z",
"license": "notspecified",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"page": "text",
"private": false,
"resources": [
{
"checksum": {
"type": "sha1",
"value": "text"
},
"created_at": "2024-12-09T19:32:06.993Z",
"description": "text",
"filesize": 0,
"filetype": "file",
"format": "text",
"harvest": {
"created_at": "2024-12-09T19:32:06.993Z",
"modified_at": "2024-12-09T19:32:06.993Z",
"uri": "text"
},
"id": "text",
"internal": {
"created_at_internal": "2024-12-09T19:32:06.993Z",
"last_modified_internal": "2024-12-09T19:32:06.993Z"
},
"last_modified": "2024-12-09T19:32:06.993Z",
"latest": "text",
"mime": "text",
"preview_url": "text",
"schema": {
"name": "text",
"url": "text",
"version": "text"
},
"title": "text",
"type": "main",
"url": "text"
}
],
"schema": {
"name": "text",
"url": "text",
"version": "text"
},
"slug": "text",
"spatial": {
"geom": {
"coordinates": [],
"type": "Point"
},
"granularity": "other",
"zones": [
"text"
]
},
"tags": [
"text"
],
"temporal_coverage": {
"end": "2024-12-09T19:32:06.993Z",
"start": "2024-12-09T19:32:06.993Z"
},
"title": "text",
"uri": "text"
}
],
"deleted": "2024-12-09T19:32:06.993Z",
"description": "text",
"featured": false,
"id": "text",
"image": "text",
"image_thumbnail": "text",
"last_modified": "2024-12-09T19:32:06.993Z",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"page": "text",
"private": false,
"slug": "text",
"tags": [
"text"
],
"title": "text",
"topic": "health",
"type": "api",
"uri": "text",
"url": "text"
}
],
"slug": "text",
"tags": [
"text"
],
"uri": "text"
}
],
"next_page": "text",
"page": 0,
"page_size": 0,
"previous_page": "text",
"total": 0
}
Create a post
HTML or markdown body type
The post content in Markdown
The post creation date
An optional credit line (associated to the image)
An optional link associated to the credits
The post datasets
The post headline
The post identifier
The post image
The post last modification date
The post name
The owner user
The post page URL
The post publication date
The post reuses
The post permalink string
Some keywords to help in search
The post API URI
Success
HTML or markdown body type
The post content in Markdown
The post creation date
An optional credit line (associated to the image)
An optional link associated to the credits
The post datasets
The post headline
The post identifier
The post image
The post last modification date
The post name
The owner user
The post page URL
The post publication date
The post reuses
The post permalink string
Some keywords to help in search
The post API URI
const response = await fetch('//www.data.gouv.fr/api/1/posts/', {
method: 'POST',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"content": "text",
"headline": "text",
"name": "text"
}),
});
const data = await response.json();
{
"body_type": "markdown",
"content": "text",
"created_at": "2024-12-09T19:32:06.993Z",
"credit_to": "text",
"credit_url": "text",
"datasets": [
{
"acronym": "text",
"archived": "2024-12-09T19:32:06.993Z",
"badges": [
{
"kind": "text"
}
],
"community_resources": [
{
"checksum": {
"type": "sha1",
"value": "text"
},
"created_at": "2024-12-09T19:32:06.993Z",
"description": "text",
"filesize": 0,
"filetype": "file",
"format": "text",
"harvest": {
"created_at": "2024-12-09T19:32:06.993Z",
"modified_at": "2024-12-09T19:32:06.993Z",
"uri": "text"
},
"id": "text",
"internal": {
"created_at_internal": "2024-12-09T19:32:06.993Z",
"last_modified_internal": "2024-12-09T19:32:06.993Z"
},
"last_modified": "2024-12-09T19:32:06.993Z",
"latest": "text",
"mime": "text",
"preview_url": "text",
"schema": {
"name": "text",
"url": "text",
"version": "text"
},
"title": "text",
"type": "main",
"url": "text",
"dataset": {
"class": "text",
"id": "text",
"acronym": "text",
"page": "text",
"title": "text",
"uri": "text"
},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"contact_point": {
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
},
"created_at": "2024-12-09T19:32:06.993Z",
"deleted": "2024-12-09T19:32:06.993Z",
"description": "text",
"featured": false,
"frequency": "unknown",
"frequency_date": "2024-12-09T19:32:06.993Z",
"harvest": {
"archived": "text",
"archived_at": "2024-12-09T19:32:06.993Z",
"backend": "text",
"ckan_name": "text",
"ckan_source": "text",
"created_at": "2024-12-09T19:32:06.993Z",
"dct_identifier": "text",
"domain": "text",
"last_update": "2024-12-09T19:32:06.993Z",
"modified_at": "2024-12-09T19:32:06.993Z",
"remote_id": "text",
"remote_url": "text",
"source_id": "text",
"uri": "text"
},
"id": "text",
"internal": {
"created_at_internal": "2024-12-09T19:32:06.993Z",
"last_modified_internal": "2024-12-09T19:32:06.993Z"
},
"last_modified": "2024-12-09T19:32:06.993Z",
"last_update": "2024-12-09T19:32:06.993Z",
"license": "notspecified",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"page": "text",
"private": false,
"resources": [
{
"checksum": {
"type": "sha1",
"value": "text"
},
"created_at": "2024-12-09T19:32:06.993Z",
"description": "text",
"filesize": 0,
"filetype": "file",
"format": "text",
"harvest": {
"created_at": "2024-12-09T19:32:06.993Z",
"modified_at": "2024-12-09T19:32:06.993Z",
"uri": "text"
},
"id": "text",
"internal": {
"created_at_internal": "2024-12-09T19:32:06.993Z",
"last_modified_internal": "2024-12-09T19:32:06.993Z"
},
"last_modified": "2024-12-09T19:32:06.993Z",
"latest": "text",
"mime": "text",
"preview_url": "text",
"schema": {
"name": "text",
"url": "text",
"version": "text"
},
"title": "text",
"type": "main",
"url": "text"
}
],
"schema": {
"name": "text",
"url": "text",
"version": "text"
},
"slug": "text",
"spatial": {
"geom": {
"coordinates": [],
"type": "Point"
},
"granularity": "other",
"zones": [