Enlaces
GET https://qrecc.pl/api/links/
curl --request GET \
--url 'https://qrecc.pl/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://qrecc.pl/api/links/' \
--header 'Authorization: Bearer {api_key}' \
Par谩metros | Detalles | Descripci贸n |
---|---|---|
page | Opcional Entero (Integer) | El n煤mero de p谩gina que quieres obtener. Por defecto 1 . |
results_per_page | Opcional Entero (Integer) | Cu谩ntos resultados deseas por p谩gina. Valores permitidos: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Por defecto 25 . |
{
"data": [
{
"id": 1,
"project_id": null,
"domain_id": 0,
"type": "link",
"url": "example",
"location_url": "https://example.com/",
"settings": {
"password": null,
"sensitive_content": false
},
"pageviews": 10,
"order": 0,
"start_date": null,
"end_date": null,
"datetime": "2025-05-24 19:01:46"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://qrecc.pl/api/links?&page=1",
"last": "https://qrecc.pl/api/links?&page=1",
"next": null,
"prev": null,
"self": "https://qrecc.pl/api/links?&page=1"
}
}
GET https://qrecc.pl/api/links/{link_id}
curl --request GET \
--url 'https://qrecc.pl/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://qrecc.pl/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"project_id": null,
"domain_id": 0,
"type": "link",
"url": "example",
"location_url": "https://example.com/",
"settings": {
"password": null,
"sensitive_content": false
},
"pageviews": 10,
"order": 0,
"start_date": null,
"end_date": null,
"datetime": "2025-05-24 19:01:46"
}
}
POST https://qrecc.pl/api/links
Par谩metros | Detalles | Descripci贸n |
---|---|---|
location_url | Obligatorio Cadena (String) | La URL de destino. |
url | Opcional Cadena (String) | El alias de URL para el enlace generado. D茅jalo vac铆o para generar uno aleatorio. |
domain_id | Opcional Entero (Integer) | - |
project_id | Opcional Entero (Integer) | - |
pixels_ids | Opcional Array Entero (Integer) | - |
schedule | Opcional Booleano (Boolean) | - |
start_date | Opcional Cadena (String) | Disponible cuando: schedule = true |
end_date | Opcional Cadena (String) | Disponible cuando: schedule = true |
pageviews_limit | Opcional Entero (Integer) | - |
expiration_url | Opcional Cadena (String) | - |
password | Opcional Cadena (String) | - |
forward_query_parameters_is_enabled | Opcional Booleano (Boolean) | - |
utm_source | Opcional Cadena (String) | - |
utm_medium | Opcional Cadena (String) | - |
utm_campaign | Opcional Cadena (String) | - |
sensitive_content | Opcional Booleano (Boolean) | - |
http_status_code | Opcional Entero (Integer) | Valores permitidos: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Opcional Booleano (Boolean) | - |
cloaking_is_enabled | Opcional Booleano (Boolean) | - |
cloaking_title | Opcional Cadena (String) | - |
cloaking_favicon | Opcional Archivo (File) | - |
cloaking_opengraph | Opcional Archivo (File) | - |
targeting_type | Opcional Cadena (String) | continent_code , country_code , city_name , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = continent_code |
targeting_continent_code_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = continent_code |
targeting_country_code_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = country_code |
targeting_country_code_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = country_code |
targeting_city_name_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = city_name |
targeting_city_name_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = city_name |
targeting_device_type_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = device_type |
targeting_device_type_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = device_type |
targeting_browser_language_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = browser_language |
targeting_browser_language_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = browser_language |
targeting_rotation_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = rotation |
targeting_rotation_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = rotation |
targeting_os_name_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = os_name |
targeting_os_name_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = os_name |
targeting_browser_name_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = browser_name |
targeting_browser_name_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = browser_name |
curl --request POST \
--url 'https://qrecc.pl/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://qrecc.pl/' \
--url 'https://qrecc.pl/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://qrecc.pl/' \
{
"data": {
"id": 1
}
}
POST https://qrecc.pl/api/links/{link_id}
Par谩metros | Detalles | Descripci贸n |
---|---|---|
location_url | Opcional Cadena (String) | La URL de destino. |
url | Opcional Cadena (String) | El alias de URL para el enlace generado. D茅jalo vac铆o para generar uno aleatorio. |
domain_id | Opcional Entero (Integer) | - |
project_id | Opcional Entero (Integer) | - |
pixels_ids | Opcional Array Entero (Integer) | - |
schedule | Opcional Booleano (Boolean) | - |
start_date | Opcional Cadena (String) | Disponible cuando: schedule = true |
end_date | Opcional Cadena (String) | Disponible cuando: schedule = true |
pageviews_limit | Opcional Entero (Integer) | - |
expiration_url | Opcional Cadena (String) | - |
password | Opcional Cadena (String) | - |
forward_query_parameters_is_enabled | Opcional Booleano (Boolean) | - |
utm_source | Opcional Cadena (String) | - |
utm_medium | Opcional Cadena (String) | - |
utm_campaign | Opcional Cadena (String) | - |
sensitive_content | Opcional Booleano (Boolean) | - |
http_status_code | Opcional Entero (Integer) | Valores permitidos: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Opcional Booleano (Boolean) | - |
cloaking_is_enabled | Opcional Booleano (Boolean) | - |
cloaking_title | Opcional Cadena (String) | - |
cloaking_favicon | Opcional Archivo (File) | - |
cloaking_opengraph | Opcional Archivo (File) | - |
targeting_type | Opcional Cadena (String) | continent_code , country_code , city_name , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = continent_code |
targeting_continent_code_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = continent_code |
targeting_country_code_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = country_code |
targeting_country_code_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = country_code |
targeting_city_name_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = city_name |
targeting_city_name_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = city_name |
targeting_device_type_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = device_type |
targeting_device_type_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = device_type |
targeting_browser_language_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = browser_language |
targeting_browser_language_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = browser_language |
targeting_rotation_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = rotation |
targeting_rotation_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = rotation |
targeting_os_name_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = os_name |
targeting_os_name_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = os_name |
targeting_browser_name_key[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = browser_name |
targeting_browser_name_value[index] | Opcional Cadena (String) | Disponible cuando: targeting_type = browser_name |
curl --request POST \
--url 'https://qrecc.pl/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://qrecc.pl/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://qrecc.pl/api/links/{link_id}
curl --request DELETE \
--url 'https://qrecc.pl/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://qrecc.pl/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \